WO2016119301A1 - 一种终端、图像拍摄方法及装置 - Google Patents

一种终端、图像拍摄方法及装置 Download PDF

Info

Publication number
WO2016119301A1
WO2016119301A1 PCT/CN2015/075559 CN2015075559W WO2016119301A1 WO 2016119301 A1 WO2016119301 A1 WO 2016119301A1 CN 2015075559 W CN2015075559 W CN 2015075559W WO 2016119301 A1 WO2016119301 A1 WO 2016119301A1
Authority
WO
WIPO (PCT)
Prior art keywords
camera
preview image
image
angle
focusing
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.)
Ceased
Application number
PCT/CN2015/075559
Other languages
English (en)
French (fr)
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.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen 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 Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Publication of WO2016119301A1 publication Critical patent/WO2016119301A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/69Control of means for changing angle of the field of view, e.g. optical zoom objectives or electronic zooming

Definitions

  • the present invention relates to the field of communications, and in particular, to a terminal, an image capturing method and apparatus.
  • the invention provides a terminal, an image capturing method and a device, which are used for solving the problem that the image is captured in the existing zoom mode or the video cannot ensure the sharpness of the image while the subject is enlarged.
  • an image capturing method comprising: acquiring a focusing parameter of a first preview image received by a current first camera, according to the adjustment
  • the focus parameter calculates a focus angle, calculates a focus angle according to the focus parameter, adjusts a photographing angle of the second camera according to the focus angle, and controls the first camera and the second camera to acquire a second preview image and a third preview image based on the same view image.
  • the obtaining a focusing parameter of the first preview image received by the current first camera, and calculating the focusing angle according to the focusing parameter includes: acquiring a central pixel coordinate corresponding to the to-be-focused image area in the first preview image Calculating the orientation and angle of the offset of the center pixel coordinate with respect to the center of the first preview image, and determining the focus angle according to the orientation and angle of the offset of the center pixel coordinate with respect to the center of the first preview image.
  • the second camera is connected to the pan/tilt via the pan-tilt axis, and the pan-tilt is fixedly connected with the terminal, and the shooting angle of the second camera is adjusted according to the focusing angle, including: controlling the pan-tilt axis to drive the second camera to rotate according to the focusing angle, The shooting angle of the second camera is made equal to the focusing angle.
  • the method further includes: after adjusting the shooting angle of the second camera such that the similarity between the second preview image and the same image content included in the third preview image is equal to the preset value, simultaneously displaying the first preview image and the second Preview the image.
  • an image capturing apparatus includes a first camera and a second camera.
  • the device includes: an acquiring module, configured to acquire a tone of a first preview image received by the current first camera.
  • the focus parameter calculates a focus angle according to the focus parameter;
  • the control module is configured to adjust the photographing angle of the second camera according to the focus angle, and control the first camera and the second camera to obtain the second preview image and the third preview based on the same view image
  • An image capturing module is configured to calculate a similarity between the second preview image and the same image content included in the third preview image, and adjust a shooting angle of the second camera according to the calculated similarity, so that the second preview image and the second preview image
  • the similarity of the same image content included in the three preview images is equal to a preset value, and the second camera is controlled to capture an image based on the current viewing range.
  • the obtaining module includes: an acquiring unit, configured to acquire a central pixel coordinate corresponding to the to-be-focused image area in the first preview image; and a calculating unit, configured to calculate an orientation of the offset of the central pixel coordinate relative to the center of the first preview image And an angle, the focus angle is determined according to an orientation and an angle of the offset of the center pixel coordinate with respect to the center of the first preview image.
  • the second camera is connected to the pan/tilt via the pan-tilt shaft, and the pan-tilt is fixedly connected with the terminal.
  • the control module is configured to control the pan-tilt shaft to rotate the second camera according to the focusing angle, so that the shooting angle of the second camera is equal to the adjustment. Focal angle.
  • the device further includes: a display module, configured to adjust a shooting angle of the second camera such that a similarity between the second preview image and the same image content included in the third preview image is equal to a preset After the value, the first preview image and the second preview image are displayed in synchronization.
  • a display module configured to adjust a shooting angle of the second camera such that a similarity between the second preview image and the same image content included in the third preview image is equal to a preset After the value, the first preview image and the second preview image are displayed in synchronization.
  • a terminal including: a terminal includes a first camera and a second camera; and a controller, configured to acquire a focus adjustment parameter of the first preview image currently received by the first camera, according to The focusing parameter calculates a focusing angle; adjusting the shooting angle of the second camera according to the focusing angle, controlling the first camera and the second camera to acquire the second preview image and the third preview image based on the same framing image; calculating the second preview image and the second Comparing the similarity of the same image content included in the preview image, adjusting the shooting angle of the second camera according to the calculated similarity, so that the similarity between the second preview image and the same image content included in the third preview image is equal to the pre- Set a value to control the second camera to capture an image based on the current viewing range.
  • the second camera is connected to the pan/tilt via the pan-tilt rotating shaft, and the pan-tilt is fixedly connected with the terminal, and the pan-tilt drives the second camera to rotate according to the received control signal of the controller, so that the shooting angle of the second camera is equal to the focusing angle.
  • the second camera is provided with a telescope.
  • the shooting angle of the second camera of the terminal is determined according to the focusing parameter, and the same image content is obtained from the preview image acquired by the second camera and the preview image acquired by the first camera.
  • the similarity to continue to adjust the shooting angle of the second camera, improving the sharpness of the image obtained by focusing shooting.
  • Embodiment 1 is a flow chart of a method for image capturing according to Embodiment 1 of the present invention
  • FIG. 2 is an effect diagram of a preview image acquired by two cameras using a terminal according to Embodiment 1 of the present invention
  • FIG. 3 is a schematic diagram of a preview image acquired by a terminal according to Embodiment 2 of the present invention.
  • FIG. 4 is a schematic structural view of a camera according to Embodiment 3 of the present invention.
  • FIG. 5 is a schematic diagram showing the operation of image capturing according to Embodiment 3 of the present invention.
  • Fig. 6 is a block diagram showing the configuration of an image pickup apparatus according to a fourth embodiment of the present invention.
  • the present invention provides a terminal, an image capturing method and an apparatus.
  • the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
  • Fig. 1 is a flow chart showing an image capturing method according to a first embodiment of the present invention.
  • the method may be applied to a terminal, the terminal includes a first camera and a second camera, and the zoom magnification of the second camera is greater than a zoom factor of the first camera.
  • the image side of the second camera is used. Set up a telescope to achieve a larger zoom factor.
  • the method includes the following processing:
  • Step 101 Acquire a focusing parameter of the first preview image received by the current first camera, and calculate a focusing angle according to the focusing parameter;
  • the focusing parameter obtained in this step may specifically be a focus signal input by the user based on the input device of the terminal, for example, a focus signal input by touching the display screen input or the focus button.
  • this step can calculate the focusing angle in the following manner:
  • Obtaining a central pixel coordinate corresponding to the to-be-focused image area in the first preview image first determining an image area to be focused, which may be a center point pixel coordinate for zooming in a portion of the preview image, if the user inputs through the touch screen Focusing the signal, then obtaining a corresponding center pixel coordinate based on the touch signal input by the user;
  • calculating a vertical offset angle of the center pixel coordinate with respect to the center of the first preview image and a horizontal offset angle the obtained vertical offset angle and the horizontal offset angle are focus angles; specifically, due to the known image
  • the coordinates of a certain pixel point can calculate the horizontal offset angle and the vertical offset angle of the pixel point coordinate with respect to the center of the image, and the horizontal offset angle corresponding to each pixel point coordinate and the vertical offset can be stored in advance.
  • the angle is shifted, when the offset angle information corresponding to the coordinates of a certain pixel point needs to be acquired, the pixel point coordinate can be used as an index for searching.
  • Step 102 Adjust a shooting angle of the second camera according to the focusing angle, and control the first camera and the second camera to acquire the second preview image and the third preview image based on the same framing image;
  • the second camera in this embodiment may be specifically connected to the pan/tilt via the pan-tilt axis, and the pan-tilt is fixedly connected to the terminal. Based on this, the shooting angle of the second camera is adjusted according to the focus angle, including: The pan head rotation is controlled according to the focus angle to drive the second camera to rotate, so that the shooting angle of the second camera is equal to the focusing angle, and the horizontal offset angle and the vertical offset angle calculated according to step 101.
  • Step 103 Calculate a similarity between the second preview image and the same image content included in the third preview image, and adjust a shooting angle of the second camera according to the calculated similarity, so that the second preview image and the third preview image are in the second preview image.
  • the similarity of the same image content included is equal to the preset value
  • the similarity of the same image content part in the second preview image and the third preview image may be calculated by using the image difference operation in the prior art, and the greater the calculated result, the similarity of the image is illustrated.
  • the lower the degree is, in the case that the calculated similarity reaches the preset similarity value, preferably, the second preview image and the third preview image may be simultaneously displayed on the terminal, and the same display screen may be simultaneously displayed on the same display screen.
  • FIG. 2 is an effect diagram of the preview image acquired by the two cameras of the terminal according to Embodiment 1 of the present invention, from the figure It can be seen that the subject obtained by the focus image area of the second preview image is clearer.
  • Step 104 Control the second camera to capture an image based on the current viewing range.
  • the embodiment of the invention realizes the function of amplifying a part of the photographed picture by a common camera and a rotatable camera, and improves the sharpness of the enlarged image.
  • a camera of the terminal works normally to realize normal preview/photo/recording functions
  • FIG. 3 is a schematic diagram of a preview image acquired by a terminal according to Embodiment 2 of the present invention.
  • a zoom request of a user is detected by an input device, and a pixel point coordinate corresponding to a specific position that needs to be enlarged is acquired (x, y ), as shown in FIG.
  • the pan/tilt is adjusted according to the obtained horizontal offset angle and the vertical offset angle, so that the second camera is aimed at the target shooting area, and the second camera preview function is turned on to display the preview image acquired by the second camera.
  • the embodiment provides a terminal, the terminal includes the following components: a first camera and a second camera, the second camera is rotatably connected to the terminal, and the controller is configured to acquire the first preview image currently received by the first camera.
  • Focusing parameter calculating a focusing angle according to the focusing parameter; adjusting a shooting angle of the second camera according to the focusing angle, controlling the first camera and the second camera to acquire the second preview image and the third preview image based on the same view image; Comparing the similarity between the preview image and the same image content included in the third preview image, adjusting the shooting angle of the second camera according to the calculated similarity, so that the second preview image is similar to the same image content included in the third preview image
  • the degree is equal to the preset value, and the second camera is controlled to capture an image based on the current viewing range, wherein the relationship between the components is as follows: the first camera and the second camera are fixed on the terminal by the fixed base, and the two are placed side by side on the fixed base.
  • the base is equipped with a telescope-effect lens.
  • the power interface, data transmission interface and pan/tilt control interface of the two cameras are reserved on the base to facilitate docking with other devices, and the movement of the pan/tilt shaft is adjusted through the pan/tilt control interface. , you can control the angle of the second camera.
  • the terminal may further include a device for displaying an image, such as a display screen or the like, and a device for acquiring input information, such as a mouse, a keyboard, a touch screen, and the like.
  • a device for displaying an image such as a display screen or the like
  • a device for acquiring input information such as a mouse, a keyboard, a touch screen, and the like.
  • FIG. 4 is a schematic structural view of a camera according to Embodiment 3 of the present invention.
  • the second camera is connected to the pan/tilt via the pan-tilt shaft, and the pan-tilt is fixedly connected to the terminal, and the pan-tilt is controlled according to the received controller.
  • the second camera can be connected to the terminal through a fixed base.
  • FIG. 5 is a schematic diagram of a working principle of taking a picture using a terminal according to Embodiment 3 of the present invention.
  • the processor is responsible for receiving image data of the dual camera and simultaneously displaying it in the display module, and simultaneously controlling the camera through the interface. status.
  • the processor can control the rotation of the gimbal through the pan/tilt control interface.
  • the user interacts with the processor through the input device to send instructions such as focusing.
  • An image similarity comparison module is integrated in the processor, and the module may be an image processing related hardware device or a software simulation module for measuring the similarity between the two images.
  • Embodiment 4 of the present invention provides an image capturing device, which may be used to implement the image capturing method described above, and the device may specifically be a functional module in the terminal.
  • FIG. 6 is a block diagram showing the structure of an image capturing apparatus according to Embodiment 4 of the present invention.
  • the apparatus can be applied to a photographing terminal.
  • the photographing terminal includes a first camera and a second camera.
  • the apparatus 50 includes the following components:
  • the obtaining module 51 is configured to acquire a focusing parameter of the first preview image received by the current first camera, and calculate a focusing angle according to the focusing parameter;
  • the control module 52 is configured to adjust a shooting angle of the second camera according to the focusing angle, and control the first camera and the second camera to acquire the second preview image and the third preview image based on the same framing image;
  • the photographing module 53 is configured to calculate a similarity between the second preview image and the same image content included in the third preview image, and adjust a photographing angle of the second camera according to the calculated similarity, so that the second preview image and the third preview image
  • the similarity of the same image content contained in the preview image is equal to a preset value; controlling the second camera to capture an image based on the current viewing range.
  • the obtaining module 51 may specifically include the following components:
  • An acquiring unit configured to acquire a central pixel coordinate corresponding to the to-be-focused image area in the first preview image
  • a calculating unit configured to calculate an orientation and an angle of the offset of the central pixel coordinate with respect to the center of the first preview image, according to an offset of the central pixel coordinate with respect to a center of the first preview image
  • the orientation and angle determine the focus angle.
  • the vertical offset angle of the center pixel coordinate with respect to the center of the first preview image and the horizontal offset angle may be calculated, and the obtained vertical offset angle and the horizontal offset angle are the focus angles.
  • the second camera is connected to the pan/tilt via the pan-tilt shaft, and the pan-tilt is fixedly connected with the terminal.
  • the control module is configured to control the pan-tilt shaft to rotate the second camera according to the focusing angle, so that the shooting angle of the second camera is equal to the adjustment. Focal angle.
  • the device further includes: a display module, configured to: after adjusting a shooting angle of the second camera, so that the similarity between the second preview image and the same image content included in the third preview image is equal to a preset value, A preview image and a second preview image.
  • a display module configured to: after adjusting a shooting angle of the second camera, so that the similarity between the second preview image and the same image content included in the third preview image is equal to a preset value, A preview image and a second preview image.
  • the shooting angle of the second camera of the terminal is determined according to the focusing parameter, and the same image content is obtained from the preview image acquired by the second camera and the preview image acquired by the first camera.
  • the similarity to continue to adjust the shooting angle of the second camera, improving the sharpness of the image obtained by focusing shooting.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

本发明提出了一种终端、图像拍摄方法及装置,用以解决现有变焦方式拍摄图像或视频不能在放大拍摄对象的同时保证画面清晰度的问题,该终端包括第一摄像头以及第二摄像头,该方法包括:获取对当前第一摄像头接收到的第一预览图像的调焦参数,根据调焦参数计算调焦角度;根据调焦角度调整第二摄像头的拍摄角度,控制第一摄像头以及第二摄像头基于同一取景图像获取图像;计算两摄像头获取到的图像中包含的相同图像内容的相似度,根据计算得到的所述相似度调整第二摄像头的拍摄角度,使两摄像头获取到的图像中包含的相同图像内容的相似度等于预设值,控制第二摄像头基于当前取景范围拍摄图像,该方案提高了拍摄得到的图像的清晰度。

Description

一种终端、图像拍摄方法及装置
本申请要求于2015年1月30日提交中国专利局、申请号为201510050058.1,发明名称为“一种终端、图像拍摄方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及通讯领域,特别是涉及一种终端、图像拍摄方法及装置。
背景技术
在照片或视频的拍摄过程中,拍摄者在希望获得更加清晰的拍摄对象时,会采用变焦拍摄方式,大多数拍摄设备均采用数字变焦的方式来在原有影像上做单纯的放大处理,其基本原理是通过拍摄设备中的运算器对所拍摄的图像数据进行插值计算,从而放大图像中的被摄物体,达到变焦的效果,即该方式仅是将取景图像进行了放大,图像的清晰度不会变化,甚至会出现由于图像被放大,导致图片的清晰度降低的问题。此外,在图像放大的过程中,图像的噪点也被显著地放大了,严重影响到拍摄画面的质量,可见,采用传统的变焦方式拍摄照片不能在放大拍摄对象的同时保证图像的清晰度。
发明内容
本发明提出了一种终端、图像拍摄方法及装置,用以解决以现有的变焦方式拍摄图像或视频不能在放大拍摄对象的同时保证画面清晰度的问题。
根据本发明的一个方面,提供了一种图像拍摄方法,该终端包括第一摄像头以及第二摄像头,该方法包括:获取对当前第一摄像头接收到的第一预览图像的调焦参数,根据调焦参数计算调焦角度,根据调焦参数计算调焦角度;根据调焦角度调整第二摄像头的拍摄角度,控制第一摄像头以及第二摄像头基于同一取景图像获取第二预览图像以及第三预览图像;计算第二预览图像与第三预览图像中包含的相同图像内容的相似度,根据计算得到的所述相似度调整第二摄像头的拍摄角度,使第二预览图像与第三预览图像中包含的相同图像内容的相似度等于预设值,控制第二摄像头基于当前取景范围拍摄图像。
其中,获取对当前第一摄像头接收到的第一预览图像的调焦参数,根据调焦参数计算调焦角度,包括:获取所述第一预览图像中的待调焦图像区域对应的中心像素坐标;计算中心像素坐标相对于第一预览图像中心的偏移的方位及角度,根据中心像素坐标相对于第一预览图像中心的偏移的方位及角度确定调焦角度。
其中于,第二摄像头通过云台转轴与云台连接,云台与终端固定连接,根据调焦角度调整第二摄像头的拍摄角度,包括:根据调焦角度控制云台转轴带动第二摄像头旋转,使第二摄像头的拍摄角度等于调焦角度。
其中,上述方法还包括:在调整第二摄像头的拍摄角度,使第二预览图像与第三预览图像中包含的相同图像内容的相似度等于预设值之后,同步显示第一预览图像以及第二预览图像。
根据本发明的另一个方面,提供了一种图像拍摄装置,终端包括第一摄像头以及第二摄像头,该装置包括:获取模块,用于获取对当前第一摄像头接收到的第一预览图像的调焦参数,根据调焦参数计算调焦角度;控制模块,用于根据调焦角度调整第二摄像头的拍摄角度,控制第一摄像头以及第二摄像头基于同一取景图像获取第二预览图像以及第三预览图像;拍摄模块,用于计算第二预览图像与第三预览图像中包含的相同图像内容的相似度,根据计算得到的所述相似度调整第二摄像头的拍摄角度,使第二预览图像与第三预览图像中包含的相同图像内容的相似度等于预设值,控制第二摄像头基于当前取景范围拍摄图像。
其中,获取模块包括:获取单元,用于获取第一预览图像中的待调焦图像区域对应的中心像素坐标;计算单元,用于计算中心像素坐标相对于第一预览图像中心的偏移的方位及角度,根据所述中心像素坐标相对于所述第一预览图像中心的偏移的方位及角度确定调焦角度。
其中,上述第二摄像头通过云台转轴与云台连接,云台与终端固定连接,控制模块用于,根据调焦角度控制云台转轴带动第二摄像头旋转,使第二摄像头的拍摄角度等于调焦角度。
进一步的,上述装置还包括:显示模块,用于在调整第二摄像头的拍摄角度,使第二预览图像与第三预览图像中包含的相同图像内容的相似度等于预设 值之后,同步显示第一预览图像以及第二预览图像。
根据本发明的再一个方面,还提供了一种终端,包括:终端包括第一摄像头以及第二摄像头;控制器,用于获取第一摄像头当前接收到的第一预览图像的调焦参数,根据调焦参数计算调焦角度;根据调焦角度调整第二摄像头的拍摄角度,控制第一摄像头以及第二摄像头基于同一取景图像获取第二预览图像以及第三预览图像;计算第二预览图像与第三预览图像中包含的相同图像内容的相似度,根据计算得到的所述相似度调整第二摄像头的拍摄角度,使第二预览图像与第三预览图像中包含的相同图像内容的相似度等于预设值,控制第二摄像头基于当前取景范围拍摄图像。
其中,上述第二摄像头通过云台转轴与云台连接,云台与终端固定连接,云台根据接收到的控制器的控制信号带动第二摄像头旋转,以使第二摄像头的拍摄角度等于调焦角度。
其中,第二摄像头上设置有望远镜。
本发明的技术方案,在获取到调焦参数时,根据调焦参数确定终端的第二摄像头的拍摄角度,并根据第二摄像头获取的预览图像与第一摄像头获取的预览图像中相同的图像内容的相似度来继续调整第二摄像头的拍摄角度,提高了调焦拍摄得到的图像的清晰度。
附图说明
图1是本发明实施例1的图像拍摄的方法流程图;
图2是本发明实施例1的采用终端的两个摄像头获取到的预览图像的效果图;
图3为本发明实施例2的终端获取的预览图像的示意图;
图4是本发明实施例3的摄像头结构示意图;
图5是本发明实施例3的图像拍摄的工作原理图;
图6是本发明实施例4的图像拍摄装置的结构框图。
具体实施方式
为了解决以现有的变焦方式拍摄照片或视频时不能在放大拍摄对象的同 时保证拍摄画面清晰度的问题,本发明提供了一种终端、图像拍摄方法及装置,以下结合附图以及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不限定本发明。
实施例1
图1是本发明实施例1的图像拍摄方法流程图。该方法可以应用于一终端,该终端包括第一摄像头以及第二摄像头,所述第二摄像头的变焦倍数大于所述第一摄像头的变焦倍数,本实施方式中,通过在第二摄像头的像侧设置望远镜来实现实现较大的变焦倍数。如图1所示,该方法包括如下处理:
步骤101:获取对当前第一摄像头接收到的第一预览图像的调焦参数,根据调焦参数计算调焦角度;
在该步骤中获取到的调焦参数具体可以是用户基于终端的输入设备输入的调焦信号,例如,通过触摸显示屏输入或调焦按钮输入的调焦信号。
具体地,该步骤可以采用如下方式来计算调焦角度:
获取第一预览图像中的待调焦图像区域对应的中心像素坐标,首先需要确定待调焦的图像区域,可以是对预览图像中的部分进行放大的中心点像素坐标,如果是用户通过触摸屏输入调焦信号,则可以基于用户输入的触摸信号获取对应的中心像素坐标;
计算所述中心像素坐标相对于所述第一预览图像中心的偏移的方位及角度,根据所述中心像素坐标相对于所述第一预览图像中心的偏移的方位及角度确定所述调焦角度。具体的,计算中心像素坐标相对于第一预览图像中心的竖直偏移角度以及水平偏移角度,得到的竖直偏移角度以及水平偏移角度为调焦角度;具体的,由于已知图像中某一像素点的坐标,则可以计算出该像素点坐标相对于图像中心的水平偏移角度及竖直偏移角度,则可以预先存储各像素点坐标对应的水平偏移角度以及竖直偏移角度,在需要获取某一像素点坐标对应的偏移角度信息时,可以以像素点坐标为索引进行查找。
步骤102:根据调焦角度调整第二摄像头的拍摄角度,控制第一摄像头以及第二摄像头基于同一取景图像获取第二预览图像以及第三预览图像;
其中,本实施例中的第二摄像头具体可以通过云台转轴与云台连接,云台与终端固定连接,基于此,根据调焦角度调整第二摄像头的拍摄角度,包括: 根据调焦角度控制云台转轴带动第二摄像头旋转,使第二摄像头的拍摄角度等于调焦角度,根据步骤101计算得出的水平偏移角度以及竖直偏移角度。
步骤103:计算第二预览图像与第三预览图像中包含的相同图像内容的相似度,根据计算得到的所述相似度调整第二摄像头的拍摄角度,使第二预览图像与第三预览图像中包含的相同图像内容的相似度等于预设值;
在该步骤103中,具体可以通过现有技术中的图像差分运算来计算第二预览图像与第三预览图像中相同的图像内容部分的相似度,在计算得出结果越大,说明图像的相似度越低,在计算出的相似度达到预设的相似度数值的情况下,优选的,还可以在终端上同步显示第二预览图像以及第三预览图像,可以在同一显示屏上同时显示该第二预览图像和第三预览图像,以便用户能够通过终端观看到二者的对比效果,图2是本发明实施例1的采用终端的两个摄像头获取到的预览图像的效果图,从该图可以看出,第二预览图像的调焦图像区域得到的拍摄对象较为清晰。
步骤104:控制第二摄像头基于当前取景范围拍摄图像。
本发明实施例通过一个普通摄像头和一个可旋转的摄像头实现对拍摄画面的局部进行放大的功能,并且提高了放大后的图像的清晰度。
实施例2
本实施例与上述实施例1的基本实现原理相同,以下通过公开更多的技术细节对本发明提供的图像拍摄方法进行详细描述,需要说明的是,本实施例仅为本发明的一个较佳的实施方式,并不对本发明造成唯一限定。
本实施例图像拍摄方法具体可以包括如下处理:
终端的一个摄像头正常工作,实现正常的预览/拍照/录像等功能;
图3为本发明实施例2的终端获取的预览图像的示意图,在预览过程中,通过输入设备检测用户的变焦请求,并获取到需要进行放大的具体位置对应的像素点坐标m(x,y),如图3所示,计算m(x,y)相对于预览图像中心点的偏移角度,其中垂直角度可以根据m(x,y)以及图像的总大小(W,H)进行计算,具体可以采用α=arctan((W/2-x)/(H/2)-y)进行计算,其中,A、B为使用第二摄像头以及第一摄像头对拍摄对象进行拍摄得到的成像,水平偏移角度需要根据预先制定的偏移半径与水平偏移角度的索引来计算,优选的,也可 以按照上述实施例1中记载的方式来获取像素点m对应的水平偏移角度以及竖直偏移角度得知,具体保存像素点坐标与偏移角度的对应关系在上述实施例1中已经具体介绍过,此处不再赘述。
根据求得的水平偏移角度和垂直偏移角度调整云台,使得第二摄像头对准目标拍摄区域,并打开第二摄像头预览功能,显示该第二摄像头获取到的预览图像。
通过图像相似度比较模块比较第一摄像头在m(x,y)附近区域的图像和第二摄像头预览图像的相似度,并微调云台,直到相似度的值达到预设值后,停止云台移动。
同步显示第一摄像头的预览和第二摄像头的预览图像,查看变焦拍摄效果。
实施例3
本实施例提供一种终端,该终端包括如下组成部分:第一摄像头以及第二摄像头,第二摄像头与终端可旋转连接;控制器,用于获取第一摄像头当前接收到的第一预览图像的调焦参数,根据调焦参数计算调焦角度;根据调焦角度调整第二摄像头的拍摄角度,控制第一摄像头以及第二摄像头基于同一取景图像获取第二预览图像以及第三预览图像;计算第二预览图像与第三预览图像中包含的相同图像内容的相似度,根据计算得到的相似度调整第二摄像头的拍摄角度,使第二预览图像与第三预览图像中包含的相同图像内容的相似度等于预设值,控制第二摄像头基于当前取景范围拍摄图像,其中,各组成部分之间的关系如下:第一摄像头以及第二摄像头通过固定底座固定在终端上,固定底座上并排放置两个摄像头,其中一个固定不动,另一个通过云台固定在底座上,并配有具有望远镜效的镜头,底座上预留两个摄像头的电源接口、数据传输接口以及云台的控制接口,方便与其他设备对接,通过云台控制接口调整云台转轴的运动,可以控制第二摄像头的角度。
其中,上述终端还可以包括用于显示的图像的器件,例如,显示屏等,以及用于获取输入信息的器件,例如,鼠标、键盘以及触摸屏等。
图4是本发明实施例3的摄像头结构示意图。如图4所示,第二摄像头通过云台转轴与云台连接,云台与终端固定连接,云台根据接收到的控制器的控 制信号带动第二摄像头旋转,以使第二摄像头的拍摄角度等于调焦角度,其中,第二摄像头上设置有望远摄像头,以便用户可以看到较为清晰的放大后的预览图像,第一摄像头以及第二摄像头可以通过一个固定底座连接到终端上。
图5是本发明实施例3的使用终端进行拍照的工作原理图,如图5所示,处理器负责接收双摄像头的图像数据,并同步显示在显示模块中,同时还可以通过接口控制摄像头工作状态。处理器可以通过云台控制接口控制云台的旋转。用户通过输入设备与处理器交互,发送调焦等指令。处理器中集成有图像相似度比较模块,该模块可以是图像处理相关的硬件设备,也可以是软件模拟的模块,用于衡量两幅图像的相似度。
实施例4
本发明实施例4提供一种图像拍摄装置,该装置可以用于实现上述图像拍摄方法,该装置具体可以为终端中的一个功能模块。
图6是本发明实施例4的图像拍摄装置的结构框图,该装置可以应用于拍照终端中,拍照终端包括第一摄像头以及第二摄像头如图6所示,该装置50包括以下组成部分:
获取模块51,用于获取对当前第一摄像头接收到的第一预览图像的调焦参数,根据调焦参数计算调焦角度;
控制模块52,用于根据调焦角度调整第二摄像头的拍摄角度,控制第一摄像头以及第二摄像头基于同一取景图像获取第二预览图像以及第三预览图像;
拍摄模块53,用于计算第二预览图像与第三预览图像中包含的相同图像内容的相似度,根据计算得到的所述相似度调整第二摄像头的拍摄角度,使第二预览图像与第三预览图像中包含的相同图像内容的相似度等于预设值;控制第二摄像头基于当前取景范围拍摄图像。
其中,获取模块51具体可以包括以下组成部分:
获取单元,用于获取第一预览图像中的待调焦图像区域对应的中心像素坐标;
计算单元,用于计算所述中心像素坐标相对于所述第一预览图像中心的偏移的方位及角度,根据所述中心像素坐标相对于所述第一预览图像中心的偏移 的方位及角度确定所述调焦角度。具体的,可以计算中心像素坐标相对于第一预览图像中心的竖直偏移角度以及水平偏移角度,得到的竖直偏移角度以及水平偏移角度为调焦角度。
其中,上述第二摄像头通过云台转轴与云台连接,云台与终端固定连接,控制模块用于,根据调焦角度控制云台转轴带动第二摄像头旋转,使第二摄像头的拍摄角度等于调焦角度。
进一步的,上述装置还包括:显示模块,用于在调整第二摄像头的拍摄角度,使第二预览图像与第三预览图像中包含的相同图像内容的相似度等于预设值之后,同步显示第一预览图像以及第二预览图像。
本发明的技术方案,在获取到调焦参数时,根据调焦参数确定终端的第二摄像头的拍摄角度,并根据第二摄像头获取的预览图像与第一摄像头获取的预览图像中相同的图像内容的相似度来继续调整第二摄像头的拍摄角度,提高了调焦拍摄得到的图像的清晰度。
尽管为示例目的,已经公开了本发明的优选实施例,本领域的技术人员将意识到各种改进、增加和取代也是可能的,因此,本发明的范围应当不限于上述实施例。

Claims (11)

  1. 一种图像拍摄方法,其特征在于,所述终端包括第一摄像头以及第二摄像头,所述方法包括:
    获取对当前第一摄像头接收到的第一预览图像的调焦参数,根据调焦参数计算调焦角度;
    根据所述调焦角度调整所述第二摄像头的拍摄角度,控制所述第一摄像头以及所述第二摄像头基于同一取景图像获取第二预览图像以及第三预览图像;
    计算所述第二预览图像与所述第三预览图像中包含的相同图像内容的相似度,根据计算得到的所述相似度调整所述第二摄像头的拍摄角度,使所述第二预览图像与所述第三预览图像中包含的相同图像内容的相似度等于预设值,控制所述第二摄像头基于当前取景范围拍摄图像。
  2. 如权利要求1所述的方法,其特征在于,所述获取对当前第一摄像头接收到的第一预览图像的调焦参数,根据调焦参数计算调焦角度,包括:
    获取所述第一预览图像中的待调焦图像区域对应的中心像素坐标;
    计算所述中心像素坐标相对于所述第一预览图像中心的偏移的方位及角度,根据所述中心像素坐标相对于所述第一预览图像中心的偏移的方位及角度确定所述调焦角度。
  3. 如权利要求1所述的方法,其特征在于,所述第二摄像头通过云台转轴与云台连接,所述云台与终端固定连接,所述根据所述调焦角度调整所述第二摄像头的拍摄角度,包括:
    根据所述调焦角度控制所述云台转轴带动所述第二摄像头旋转,使所述第二摄像头的拍摄角度等于所述调焦角度。
  4. 如权利要求1~3任意一项所述的方法,其特征在于,所述第二摄像头包括望远镜,所述方法还包括:
    在调整所述第二摄像头的拍摄角度,使所述第二预览图像与所述第三预览图像中包含的相同图像内容的相似度等于预设值之后,同步显示所述第一预览图像以及所述第二预览图像。
  5. 一种图像拍摄装置,其特征在于,所述终端包括第一摄像头以及第二 摄像头,所述装置包括:
    获取模块,用于获取对当前第一摄像头接收到的第一预览图像的调焦参数,根据调焦参数计算调焦角度;
    控制模块,用于根据所述调焦角度调整所述第二摄像头的拍摄角度,控制所述第一摄像头以及所述第二摄像头基于同一取景图像获取第二预览图像以及第三预览图像;
    拍摄模块,用于计算所述第二预览图像与所述第三预览图像中包含的相同图像内容的相似度,根据计算得到的所述相似度调整所述第二摄像头的拍摄角度,使所述第二预览图像与所述第三预览图像中包含的相同图像内容的相似度等于预设值,控制所述第二摄像头基于当前取景范围拍摄图像。
  6. 如权利要求5所述的装置,其特征在于,所述获取模块包括:
    获取单元,用于获取所述第一预览图像中的待调焦图像区域对应的中心像素坐标;
    计算单元,用于计算所述中心像素坐标相对于所述第一预览图像中心的偏移的方位及角度,根据所述中心像素坐标相对于所述第一预览图像中心的偏移的方位及角度确定所述调焦角度。
  7. 如权利要求5或6所述的装置,其特征在于,所述第二摄像头通过云台转轴与云台连接,所述云台与终端固定连接,所述控制模块用于,根据所述调焦角度控制所述云台转轴带动所述第二摄像头旋转,使所述第二摄像头的拍摄角度等于所述调焦角度。
  8. 如权利要求5~7任意一项所述的装置,其特征在于,所述第二摄像头包括望远镜,所述装置还包括:
    显示模块,用于在调整所述第二摄像头的拍摄角度,使所述第二预览图像与所述第三预览图像中包含的相同图像内容的相似度等于预设值之后,同步显示所述第一预览图像以及所述第二预览图像。
  9. 一种终端,其特征在于,包括:
    所述终端包括第一摄像头以及第二摄像头;
    控制器,用于获取第一摄像头当前接收到的第一预览图像的调焦参数,根据调焦参数计算调焦角度;
    根据所述调焦角度调整所述第二摄像头的拍摄角度,控制所述第一摄像头以及所述第二摄像头基于同一取景图像获取第二预览图像以及第三预览图像;
    计算所述第二预览图像与所述第三预览图像中包含的相同图像内容的相似度,根据计算得到的所述相似度调整所述第二摄像头的拍摄角度,使所述第二预览图像与所述第三预览图像中包含的相同图像内容的相似度等于预设值,控制所述第二摄像头基于当前取景范围拍摄图像。
  10. 如权利要求9所述的终端,其特征在于,所述第二摄像头通过云台转轴与云台连接,所述云台与终端固定连接,所述云台根据接收到的控制器的控制信号带动所述第二摄像头旋转,以使所述第二摄像头的拍摄角度等于所述调焦角度。
  11. 如权利要求9或10所述的终端,其特征在于,所述第二摄像头上设置有望远镜。
PCT/CN2015/075559 2015-01-30 2015-03-31 一种终端、图像拍摄方法及装置 Ceased WO2016119301A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510050058.1A CN104601892A (zh) 2015-01-30 2015-01-30 一种终端、图像拍摄方法及装置
CN201510050058.1 2015-01-30

Publications (1)

Publication Number Publication Date
WO2016119301A1 true WO2016119301A1 (zh) 2016-08-04

Family

ID=53127359

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/075559 Ceased WO2016119301A1 (zh) 2015-01-30 2015-03-31 一种终端、图像拍摄方法及装置

Country Status (2)

Country Link
CN (1) CN104601892A (zh)
WO (1) WO2016119301A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107147837A (zh) * 2017-06-30 2017-09-08 维沃移动通信有限公司 一种拍摄参数的设置方法和移动终端
CN114742902A (zh) * 2022-04-28 2022-07-12 昆山丘钛光电科技有限公司 多摄像头模组的标定方法、装置、设备及介质
CN114795079A (zh) * 2022-05-06 2022-07-29 广州为实光电医疗科技有限公司 一种医用内窥镜双摄模组的匹配校准方法及装置
CN115150543A (zh) * 2021-03-31 2022-10-04 华为技术有限公司 拍摄方法、装置、电子设备及可读存储介质

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106303199A (zh) * 2015-06-02 2017-01-04 齐发光电股份有限公司 对焦系统与对焦方法
CN105472245B (zh) * 2015-12-21 2019-09-24 联想(北京)有限公司 一种拍照方法、电子设备
KR20170139408A (ko) 2016-06-09 2017-12-19 엘지전자 주식회사 듀얼 카메라가 장착된 동영상 촬영 장치
CN106131397A (zh) * 2016-06-21 2016-11-16 维沃移动通信有限公司 一种多媒体数据显示的方法及电子设备
CN106550230A (zh) * 2016-08-31 2017-03-29 深圳小辣椒虚拟现实技术有限责任公司 一种3d图像拍摄装置和方法
CN106412397A (zh) * 2016-10-17 2017-02-15 成都观界创宇科技有限公司 摄像设备及用于识别摄像设备状态的方法及装置
CN106791374B (zh) * 2016-11-29 2019-09-13 Oppo广东移动通信有限公司 控制方法、控制装置及电子装置
CN106599664A (zh) * 2016-12-15 2017-04-26 北京奇虎科技有限公司 一种虹膜解锁方法、装置及移动终端
CN108270959B (zh) * 2016-12-30 2020-05-08 华为技术有限公司 全景成像的方法、终端设备和全景成像装置
CN106888349A (zh) * 2017-03-30 2017-06-23 努比亚技术有限公司 一种拍摄方法及装置
CN107944400B (zh) * 2017-11-28 2020-07-31 广东小天才科技有限公司 一种拍照搜索方法、装置、智能终端及计算机可读存储介质
CN111355878A (zh) * 2018-12-21 2020-06-30 中兴通讯股份有限公司 一种终端、拍摄方法及存储介质
CN110442153B (zh) * 2019-07-10 2022-03-25 佛山科学技术学院 一种被动式光学动捕系统摄像机校正控制方法及系统
CN111062313A (zh) * 2019-12-13 2020-04-24 歌尔股份有限公司 一种图像识别方法、装置、监控系统及存储介质
CN111935397B (zh) * 2020-07-07 2022-04-22 北京迈格威科技有限公司 图像的处理方法、装置、电子设备和计算机可读介质
CN114125256B (zh) * 2020-08-25 2024-09-17 宁波舜宇光电信息有限公司 用于内置云台的多摄模组的拍摄方法
CN115150586B (zh) * 2022-06-20 2025-06-10 山东信通电子股份有限公司 一种基于输电线路的监拍方法、装置、设备及介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060056056A1 (en) * 2004-07-19 2006-03-16 Grandeye Ltd. Automatically expanding the zoom capability of a wide-angle video camera
CN101014114A (zh) * 2006-02-02 2007-08-08 富士施乐株式会社 远程指示系统、远程指示方法和用于远程指示的程序产品
CN101511004A (zh) * 2009-03-25 2009-08-19 北京中星微电子有限公司 一种摄像监控的方法及装置
CN102087116A (zh) * 2009-12-08 2011-06-08 财团法人工业技术研究院 移动摄像机对路景图像的处理方法及系统

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201054698Y (zh) * 2007-06-06 2008-04-30 徐春云 定位捕捉追踪装置
JP2011066828A (ja) * 2009-09-18 2011-03-31 Canon Inc 撮像装置、撮像方法及びプログラム
CN103546665A (zh) * 2012-07-11 2014-01-29 北京博雅华录视听技术研究院有限公司 基于多摄像头的图像清晰度增强方法
CN103731658B (zh) * 2013-12-25 2015-09-30 深圳市墨克瑞光电子研究院 双目摄像机复位方法和双目摄像机复位装置
CN104113697B (zh) * 2014-08-01 2017-10-13 广东欧珀移动通信有限公司 协同拍照处理方法和装置、拍照处理方法和装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060056056A1 (en) * 2004-07-19 2006-03-16 Grandeye Ltd. Automatically expanding the zoom capability of a wide-angle video camera
CN101014114A (zh) * 2006-02-02 2007-08-08 富士施乐株式会社 远程指示系统、远程指示方法和用于远程指示的程序产品
CN101511004A (zh) * 2009-03-25 2009-08-19 北京中星微电子有限公司 一种摄像监控的方法及装置
CN102087116A (zh) * 2009-12-08 2011-06-08 财团法人工业技术研究院 移动摄像机对路景图像的处理方法及系统

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107147837A (zh) * 2017-06-30 2017-09-08 维沃移动通信有限公司 一种拍摄参数的设置方法和移动终端
CN115150543A (zh) * 2021-03-31 2022-10-04 华为技术有限公司 拍摄方法、装置、电子设备及可读存储介质
CN115150543B (zh) * 2021-03-31 2024-04-16 华为技术有限公司 拍摄方法、装置、电子设备及可读存储介质
CN114742902A (zh) * 2022-04-28 2022-07-12 昆山丘钛光电科技有限公司 多摄像头模组的标定方法、装置、设备及介质
CN114742902B (zh) * 2022-04-28 2025-07-15 昆山丘钛光电科技有限公司 多摄像头模组的标定方法、装置、设备及介质
CN114795079A (zh) * 2022-05-06 2022-07-29 广州为实光电医疗科技有限公司 一种医用内窥镜双摄模组的匹配校准方法及装置

Also Published As

Publication number Publication date
CN104601892A (zh) 2015-05-06

Similar Documents

Publication Publication Date Title
WO2016119301A1 (zh) 一种终端、图像拍摄方法及装置
CN103905792B (zh) 一种基于ptz监控摄像机的3d定位方法及装置
US9282242B2 (en) Method and electric device for taking panoramic photograph
US8441541B2 (en) Control apparatus and control method therefor
CN103685956B (zh) 一种全景照片拍摄方法及装置
JP2024040284A (ja) 撮像装置、コンピュータプログラム、および撮像制御方法
CN104184985B (zh) 图像获取的方法及装置
WO2014153950A1 (zh) 快速自动聚焦的方法和图像采集装置
CN101933040A (zh) 图像处理装置、图像处理方法以及图像处理程序
JP2000188712A (ja) 電子カメラ
TW201251447A (en) Positional sensor-assisted image registration for panoramic photography
JP4736381B2 (ja) 撮像装置及び方法、監視システム、プログラム並びに記録媒体
KR102314943B1 (ko) 정보 처리장치, 정보 처리방법 및 기억매체
CN110351475A (zh) 摄像系统、信息处理设备及其控制方法和存储介质
CN107277363A (zh) 图像处理方法、图像处理装置及电子设备
US9420161B2 (en) Image-capturing apparatus
WO2018196854A1 (zh) 一种拍照方法、拍照装置及移动终端
CN105959534B (zh) 图像处理方法、装置及电子设备
TW202002606A (zh) 影像擷取裝置與其操作方法
US9088720B2 (en) Apparatus and method of displaying camera view area in portable terminal
JP7385667B2 (ja) 撮影装置、及び撮影方法
JP2022128941A (ja) 撮像装置、コンピュータプログラム、記憶媒体及び撮像装置の制御方法
JP2021100239A (ja) 追尾装置及びその制御方法、及び撮像装置
JP4867136B2 (ja) 撮影装置及びそのプログラム
CN113840084A (zh) 一种基于球机ptz回传技术实现全景云台操控的方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15879509

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205N DATED 21/12/2017)

122 Ep: pct application non-entry in european phase

Ref document number: 15879509

Country of ref document: EP

Kind code of ref document: A1