WO2016119301A1 - Terminal, and image capturing method and device - Google Patents
Terminal, and image capturing method and device Download PDFInfo
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/69—Control 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
Disclosed are a terminal, and image capturing method and device, for addressing the problem in which image definition cannot be kept while a captured object is enlarged when capturing an image or a video in a current zoom mode, the terminal comprising a first imaging head and a second imaging head. The method comprises: obtaining a focusing parameter of a first preview image received by the current first imaging head, and calculating a focusing angle according to the focusing parameter; adjusting a capturing angle of the second imaging head according to the focusing angle, and controlling the first imaging head and the second imaging head to obtain the image based on the identical view-finding image; calculating similarity of the identical image content comprised in the image obtained by the two imaging heads, and adjusting the capturing angle of the second imaging head according to the similarity obtained by calculation, such that the similarity of the identical image content comprised in the image obtained by the two imaging heads is equal to a preset value; and controlling the second imaging head to capture the image based on a current view-finding range, such that the method improves the definition of the image obtained by capturing.
Description
本申请要求于2015年1月30日提交中国专利局、申请号为201510050058.1,发明名称为“一种终端、图像拍摄方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to Chinese Patent Application No. 201510050058.1, entitled "A Terminal, Image Shooting Method and Apparatus" on January 30, 2015, the entire contents of which are incorporated herein by reference. In the application.
本发明涉及通讯领域,特别是涉及一种终端、图像拍摄方法及装置。The present invention relates to the field of communications, and in particular, to a terminal, an image capturing method and apparatus.
在照片或视频的拍摄过程中,拍摄者在希望获得更加清晰的拍摄对象时,会采用变焦拍摄方式,大多数拍摄设备均采用数字变焦的方式来在原有影像上做单纯的放大处理,其基本原理是通过拍摄设备中的运算器对所拍摄的图像数据进行插值计算,从而放大图像中的被摄物体,达到变焦的效果,即该方式仅是将取景图像进行了放大,图像的清晰度不会变化,甚至会出现由于图像被放大,导致图片的清晰度降低的问题。此外,在图像放大的过程中,图像的噪点也被显著地放大了,严重影响到拍摄画面的质量,可见,采用传统的变焦方式拍摄照片不能在放大拍摄对象的同时保证图像的清晰度。During the shooting of photos or videos, the photographer will use the zoom mode when he wants to get a clearer subject. Most shooting devices use digital zoom to simply enlarge the original image. The principle is that the image data of the captured image is interpolated by an arithmetic unit in the photographing device, thereby magnifying the object in the image to achieve the effect of zooming, that is, the method only enlarges the view image, and the image clarity is not It will change, and even the image will be enlarged, resulting in a decrease in the sharpness of the picture. In addition, in the process of image enlargement, the noise of the image is also significantly enlarged, which seriously affects the quality of the captured image. It can be seen that taking a photo with a conventional zoom method cannot ensure the sharpness of the image while enlarging the subject.
发明内容Summary of the invention
本发明提出了一种终端、图像拍摄方法及装置,用以解决以现有的变焦方式拍摄图像或视频不能在放大拍摄对象的同时保证画面清晰度的问题。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.
根据本发明的一个方面,提供了一种图像拍摄方法,该终端包括第一摄像头以及第二摄像头,该方法包括:获取对当前第一摄像头接收到的第一预览图像的调焦参数,根据调焦参数计算调焦角度,根据调焦参数计算调焦角度;根据调焦角度调整第二摄像头的拍摄角度,控制第一摄像头以及第二摄像头基于同一取景图像获取第二预览图像以及第三预览图像;计算第二预览图像与第三预览图像中包含的相同图像内容的相似度,根据计算得到的所述相似度调整第二摄像头的拍摄角度,使第二预览图像与第三预览图像中包含的相同图像内容的相似度等于预设值,控制第二摄像头基于当前取景范围拍摄图像。
According to an aspect of the present invention, there is provided an image capturing method, the terminal comprising a first camera and a second camera, the 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. Calculating a similarity between the second preview image and the same image content included in the third preview image, adjusting a shooting angle of the second camera according to the calculated similarity, and including the second preview image and the third preview image The similarity of the same image content is equal to the preset value, and the second camera is controlled to take an image based on the current viewing range.
其中,获取对当前第一摄像头接收到的第一预览图像的调焦参数,根据调焦参数计算调焦角度,包括:获取所述第一预览图像中的待调焦图像区域对应的中心像素坐标;计算中心像素坐标相对于第一预览图像中心的偏移的方位及角度,根据中心像素坐标相对于第一预览图像中心的偏移的方位及角度确定调焦角度。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.
其中于,第二摄像头通过云台转轴与云台连接,云台与终端固定连接,根据调焦角度调整第二摄像头的拍摄角度,包括:根据调焦角度控制云台转轴带动第二摄像头旋转,使第二摄像头的拍摄角度等于调焦角度。Wherein, 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.
根据本发明的另一个方面,提供了一种图像拍摄装置,终端包括第一摄像头以及第二摄像头,该装置包括:获取模块,用于获取对当前第一摄像头接收到的第一预览图像的调焦参数,根据调焦参数计算调焦角度;控制模块,用于根据调焦角度调整第二摄像头的拍摄角度,控制第一摄像头以及第二摄像头基于同一取景图像获取第二预览图像以及第三预览图像;拍摄模块,用于计算第二预览图像与第三预览图像中包含的相同图像内容的相似度,根据计算得到的所述相似度调整第二摄像头的拍摄角度,使第二预览图像与第三预览图像中包含的相同图像内容的相似度等于预设值,控制第二摄像头基于当前取景范围拍摄图像。According to another aspect of the present invention, an image capturing apparatus is provided. The terminal 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.
进一步的,上述装置还包括:显示模块,用于在调整第二摄像头的拍摄角度,使第二预览图像与第三预览图像中包含的相同图像内容的相似度等于预设
值之后,同步显示第一预览图像以及第二预览图像。Further, 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.
根据本发明的再一个方面,还提供了一种终端,包括:终端包括第一摄像头以及第二摄像头;控制器,用于获取第一摄像头当前接收到的第一预览图像的调焦参数,根据调焦参数计算调焦角度;根据调焦角度调整第二摄像头的拍摄角度,控制第一摄像头以及第二摄像头基于同一取景图像获取第二预览图像以及第三预览图像;计算第二预览图像与第三预览图像中包含的相同图像内容的相似度,根据计算得到的所述相似度调整第二摄像头的拍摄角度,使第二预览图像与第三预览图像中包含的相同图像内容的相似度等于预设值,控制第二摄像头基于当前取景范围拍摄图像。According to still another aspect of the present invention, a terminal is provided, 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.
其中,上述第二摄像头通过云台转轴与云台连接,云台与终端固定连接,云台根据接收到的控制器的控制信号带动第二摄像头旋转,以使第二摄像头的拍摄角度等于调焦角度。Wherein, 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.
其中,第二摄像头上设置有望远镜。Wherein, the second camera is provided with a telescope.
本发明的技术方案,在获取到调焦参数时,根据调焦参数确定终端的第二摄像头的拍摄角度,并根据第二摄像头获取的预览图像与第一摄像头获取的预览图像中相同的图像内容的相似度来继续调整第二摄像头的拍摄角度,提高了调焦拍摄得到的图像的清晰度。According to the technical solution of the present invention, when the focusing parameter is acquired, 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.
图1是本发明实施例1的图像拍摄的方法流程图;1 is a flow chart of a method for image capturing according to Embodiment 1 of the present invention;
图2是本发明实施例1的采用终端的两个摄像头获取到的预览图像的效果图;2 is an effect diagram of a preview image acquired by two cameras using a terminal according to Embodiment 1 of the present invention;
图3为本发明实施例2的终端获取的预览图像的示意图;3 is a schematic diagram of a preview image acquired by a terminal according to Embodiment 2 of the present invention;
图4是本发明实施例3的摄像头结构示意图;4 is a schematic structural view of a camera according to Embodiment 3 of the present invention;
图5是本发明实施例3的图像拍摄的工作原理图;FIG. 5 is a schematic diagram showing the operation of image capturing according to Embodiment 3 of the present invention; FIG.
图6是本发明实施例4的图像拍摄装置的结构框图。Fig. 6 is a block diagram showing the configuration of an image pickup apparatus according to a fourth embodiment of the present invention.
为了解决以现有的变焦方式拍摄照片或视频时不能在放大拍摄对象的同
时保证拍摄画面清晰度的问题,本发明提供了一种终端、图像拍摄方法及装置,以下结合附图以及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不限定本发明。In order to solve the problem of taking a picture or video with the existing zoom method, you cannot zoom in on the subject.
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.
实施例1Example 1
图1是本发明实施例1的图像拍摄方法流程图。该方法可以应用于一终端,该终端包括第一摄像头以及第二摄像头,所述第二摄像头的变焦倍数大于所述第一摄像头的变焦倍数,本实施方式中,通过在第二摄像头的像侧设置望远镜来实现实现较大的变焦倍数。如图1所示,该方法包括如下处理:BRIEF DESCRIPTION OF THE DRAWINGS 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. In this embodiment, the image side of the second camera is used. Set up a telescope to achieve a larger zoom factor. As shown in Figure 1, the method includes the following processing:
步骤101:获取对当前第一摄像头接收到的第一预览图像的调焦参数,根据调焦参数计算调焦角度;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.
具体地,该步骤可以采用如下方式来计算调焦角度:Specifically, 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 an orientation and an angle of the offset of the center pixel coordinate with respect to the center of the first preview image, and determining the focus according to an orientation and an angle of the offset of the center pixel coordinate with respect to a center of the first preview image angle. Specifically, 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. When 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.
步骤102:根据调焦角度调整第二摄像头的拍摄角度,控制第一摄像头以及第二摄像头基于同一取景图像获取第二预览图像以及第三预览图像;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;
其中,本实施例中的第二摄像头具体可以通过云台转轴与云台连接,云台与终端固定连接,基于此,根据调焦角度调整第二摄像头的拍摄角度,包括:
根据调焦角度控制云台转轴带动第二摄像头旋转,使第二摄像头的拍摄角度等于调焦角度,根据步骤101计算得出的水平偏移角度以及竖直偏移角度。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.
步骤103:计算第二预览图像与第三预览图像中包含的相同图像内容的相似度,根据计算得到的所述相似度调整第二摄像头的拍摄角度,使第二预览图像与第三预览图像中包含的相同图像内容的相似度等于预设值;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;
在该步骤103中,具体可以通过现有技术中的图像差分运算来计算第二预览图像与第三预览图像中相同的图像内容部分的相似度,在计算得出结果越大,说明图像的相似度越低,在计算出的相似度达到预设的相似度数值的情况下,优选的,还可以在终端上同步显示第二预览图像以及第三预览图像,可以在同一显示屏上同时显示该第二预览图像和第三预览图像,以便用户能够通过终端观看到二者的对比效果,图2是本发明实施例1的采用终端的两个摄像头获取到的预览图像的效果图,从该图可以看出,第二预览图像的调焦图像区域得到的拍摄对象较为清晰。In this step 103, 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. a second preview image and a third preview image, so that the user can view the contrast effect of the two through the terminal, 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.
步骤104:控制第二摄像头基于当前取景范围拍摄图像。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.
实施例2Example 2
本实施例与上述实施例1的基本实现原理相同,以下通过公开更多的技术细节对本发明提供的图像拍摄方法进行详细描述,需要说明的是,本实施例仅为本发明的一个较佳的实施方式,并不对本发明造成唯一限定。This embodiment is the same as the basic implementation principle of the foregoing Embodiment 1. The image capturing method provided by the present invention is described in detail below by disclosing more technical details. It should be noted that the present embodiment is only a preferred embodiment of the present invention. The embodiments are not intended to limit the invention.
本实施例图像拍摄方法具体可以包括如下处理:The image capturing method of this embodiment may specifically include the following processing:
终端的一个摄像头正常工作,实现正常的预览/拍照/录像等功能;A camera of the terminal works normally to realize normal preview/photo/recording functions;
图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中已经具体介绍过,此处不再赘述。3 is a schematic diagram of a preview image acquired by a terminal according to Embodiment 2 of the present invention. During a preview process, 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. 3, calculating an offset angle of m(x, y) with respect to a center point of the preview image, wherein the vertical angle can be calculated according to m(x, y) and the total size (W, H) of the image, Specifically, the calculation can be performed by using α=arctan((W/2-x)/(H/2)-y), wherein A and B are images obtained by photographing the subject using the second camera and the first camera, and the level is The offset angle needs to be calculated according to an index of a predetermined offset radius and a horizontal offset angle. Preferably,
Obtaining the horizontal offset angle and the vertical offset angle corresponding to the pixel point m according to the manner described in the first embodiment, the correspondence between the pixel point coordinates and the offset angle is specifically determined in the first embodiment. Introduced, not repeated here.
根据求得的水平偏移角度和垂直偏移角度调整云台,使得第二摄像头对准目标拍摄区域,并打开第二摄像头预览功能,显示该第二摄像头获取到的预览图像。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.
通过图像相似度比较模块比较第一摄像头在m(x,y)附近区域的图像和第二摄像头预览图像的相似度,并微调云台,直到相似度的值达到预设值后,停止云台移动。Comparing the similarity between the image of the region near the m(x, y) of the first camera and the preview image of the second camera by the image similarity comparison module, and fine-tuning the pan/tilt until the value of the similarity reaches a preset value, stopping the gimbal mobile.
同步显示第一摄像头的预览和第二摄像头的预览图像,查看变焦拍摄效果。Simultaneously display the preview of the first camera and the preview image of the second camera to view the zoom shooting effect.
实施例3Example 3
本实施例提供一种终端,该终端包括如下组成部分:第一摄像头以及第二摄像头,第二摄像头与终端可旋转连接;控制器,用于获取第一摄像头当前接收到的第一预览图像的调焦参数,根据调焦参数计算调焦角度;根据调焦角度调整第二摄像头的拍摄角度,控制第一摄像头以及第二摄像头基于同一取景图像获取第二预览图像以及第三预览图像;计算第二预览图像与第三预览图像中包含的相同图像内容的相似度,根据计算得到的相似度调整第二摄像头的拍摄角度,使第二预览图像与第三预览图像中包含的相同图像内容的相似度等于预设值,控制第二摄像头基于当前取景范围拍摄图像,其中,各组成部分之间的关系如下:第一摄像头以及第二摄像头通过固定底座固定在终端上,固定底座上并排放置两个摄像头,其中一个固定不动,另一个通过云台固定在底座上,并配有具有望远镜效的镜头,底座上预留两个摄像头的电源接口、数据传输接口以及云台的控制接口,方便与其他设备对接,通过云台控制接口调整云台转轴的运动,可以控制第二摄像头的角度。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. Camera, one of which is fixed and the other fixed by the gimbal 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.
图4是本发明实施例3的摄像头结构示意图。如图4所示,第二摄像头通过云台转轴与云台连接,云台与终端固定连接,云台根据接收到的控制器的控
制信号带动第二摄像头旋转,以使第二摄像头的拍摄角度等于调焦角度,其中,第二摄像头上设置有望远摄像头,以便用户可以看到较为清晰的放大后的预览图像,第一摄像头以及第二摄像头可以通过一个固定底座连接到终端上。4 is a schematic structural view of a camera according to Embodiment 3 of the present invention. As shown in Figure 4, 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 signal driving the second camera to rotate, so that the shooting angle of the second camera is equal to the focusing angle, wherein the second camera is provided with a telephoto camera, so that the user can see a clear and enlarged preview image, the first camera and The second camera can be connected to the terminal through a fixed base.
图5是本发明实施例3的使用终端进行拍照的工作原理图,如图5所示,处理器负责接收双摄像头的图像数据,并同步显示在显示模块中,同时还可以通过接口控制摄像头工作状态。处理器可以通过云台控制接口控制云台的旋转。用户通过输入设备与处理器交互,发送调焦等指令。处理器中集成有图像相似度比较模块,该模块可以是图像处理相关的硬件设备,也可以是软件模拟的模块,用于衡量两幅图像的相似度。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. As shown in FIG. 5, 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.
实施例4Example 4
本发明实施例4提供一种图像拍摄装置,该装置可以用于实现上述图像拍摄方法,该装置具体可以为终端中的一个功能模块。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.
图6是本发明实施例4的图像拍摄装置的结构框图,该装置可以应用于拍照终端中,拍照终端包括第一摄像头以及第二摄像头如图6所示,该装置50包括以下组成部分: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. As shown in FIG. 6, the apparatus 50 includes the following components:
获取模块51,用于获取对当前第一摄像头接收到的第一预览图像的调焦参数,根据调焦参数计算调焦角度;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;
控制模块52,用于根据调焦角度调整第二摄像头的拍摄角度,控制第一摄像头以及第二摄像头基于同一取景图像获取第二预览图像以及第三预览图像;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;
拍摄模块53,用于计算第二预览图像与第三预览图像中包含的相同图像内容的相似度,根据计算得到的所述相似度调整第二摄像头的拍摄角度,使第二预览图像与第三预览图像中包含的相同图像内容的相似度等于预设值;控制第二摄像头基于当前取景范围拍摄图像。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.
其中,获取模块51具体可以包括以下组成部分: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. Specifically, 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.
进一步的,上述装置还包括:显示模块,用于在调整第二摄像头的拍摄角度,使第二预览图像与第三预览图像中包含的相同图像内容的相似度等于预设值之后,同步显示第一预览图像以及第二预览图像。Further, 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.
本发明的技术方案,在获取到调焦参数时,根据调焦参数确定终端的第二摄像头的拍摄角度,并根据第二摄像头获取的预览图像与第一摄像头获取的预览图像中相同的图像内容的相似度来继续调整第二摄像头的拍摄角度,提高了调焦拍摄得到的图像的清晰度。According to the technical solution of the present invention, when the focusing parameter is acquired, 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.
尽管为示例目的,已经公开了本发明的优选实施例,本领域的技术人员将意识到各种改进、增加和取代也是可能的,因此,本发明的范围应当不限于上述实施例。
While the preferred embodiments of the present invention have been disclosed for purposes of illustration, those skilled in the art will recognize that various modifications, additions and substitutions are possible, and the scope of the invention should not be limited to the embodiments described above.
Claims (11)
- 一种图像拍摄方法,其特征在于,所述终端包括第一摄像头以及第二摄像头,所述方法包括:An image capturing method, wherein the terminal comprises a first camera and a second camera, the method comprising:获取对当前第一摄像头接收到的第一预览图像的调焦参数,根据调焦参数计算调焦角度;Obtaining a focusing parameter of the first preview image received by the current first camera, and calculating a focusing angle according to the focusing parameter;根据所述调焦角度调整所述第二摄像头的拍摄角度,控制所述第一摄像头以及所述第二摄像头基于同一取景图像获取第二预览图像以及第三预览图像;Adjusting a shooting angle of the second camera according to the focusing angle, and controlling the first camera and the second camera to acquire a second preview image and a third preview image based on the same framing image;计算所述第二预览图像与所述第三预览图像中包含的相同图像内容的相似度,根据计算得到的所述相似度调整所述第二摄像头的拍摄角度,使所述第二预览图像与所述第三预览图像中包含的相同图像内容的相似度等于预设值,控制所述第二摄像头基于当前取景范围拍摄图像。Calculating a similarity between the second preview image and the same image content included in the third preview image, and adjusting a shooting angle of the second camera according to the calculated similarity, so that the second preview image is The similarity of the same image content included in the third preview image is equal to a preset value, and the second camera is controlled to capture an image based on the current viewing range.
- 如权利要求1所述的方法,其特征在于,所述获取对当前第一摄像头接收到的第一预览图像的调焦参数,根据调焦参数计算调焦角度,包括:The method of claim 1, wherein the acquiring a focus parameter of the first preview image received by the current first camera, and calculating the focus angle according to the focus parameter comprises:获取所述第一预览图像中的待调焦图像区域对应的中心像素坐标;Obtaining a central pixel coordinate corresponding to the to-be-focused image area in the first preview image;计算所述中心像素坐标相对于所述第一预览图像中心的偏移的方位及角度,根据所述中心像素坐标相对于所述第一预览图像中心的偏移的方位及角度确定所述调焦角度。Calculating an orientation and an angle of the offset of the center pixel coordinate with respect to the center of the first preview image, and determining the focus according to an orientation and an angle of the offset of the center pixel coordinate with respect to a center of the first preview image angle.
- 如权利要求1所述的方法,其特征在于,所述第二摄像头通过云台转轴与云台连接,所述云台与终端固定连接,所述根据所述调焦角度调整所述第二摄像头的拍摄角度,包括:The method according to claim 1, wherein the second camera is connected to the pan/tilt head through a pan-tilt axis, the pan-tilt is fixedly connected to the terminal, and the second camera is adjusted according to the focus angle The shooting angle includes:根据所述调焦角度控制所述云台转轴带动所述第二摄像头旋转,使所述第二摄像头的拍摄角度等于所述调焦角度。Controlling, by the focusing angle, the pan/tilt axis to rotate the second camera, so that a shooting angle of the second camera is equal to the focusing angle.
- 如权利要求1~3任意一项所述的方法,其特征在于,所述第二摄像头包括望远镜,所述方法还包括:The method according to any one of claims 1 to 3, wherein the second camera comprises a telescope, the method further comprising:在调整所述第二摄像头的拍摄角度,使所述第二预览图像与所述第三预览图像中包含的相同图像内容的相似度等于预设值之后,同步显示所述第一预览图像以及所述第二预览图像。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 a preset value, the first preview image and the The second preview image is described.
- 一种图像拍摄装置,其特征在于,所述终端包括第一摄像头以及第二 摄像头,所述装置包括:An image capturing device, wherein the terminal comprises a first camera and a second a camera, the device comprising:获取模块,用于获取对当前第一摄像头接收到的第一预览图像的调焦参数,根据调焦参数计算调焦角度;An acquiring module, 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;控制模块,用于根据所述调焦角度调整所述第二摄像头的拍摄角度,控制所述第一摄像头以及所述第二摄像头基于同一取景图像获取第二预览图像以及第三预览图像;a control module, configured to adjust a shooting angle of the second camera according to the focus angle, and control the first camera and the second camera to acquire a second preview image and a third preview image based on the same view image;拍摄模块,用于计算所述第二预览图像与所述第三预览图像中包含的相同图像内容的相似度,根据计算得到的所述相似度调整所述第二摄像头的拍摄角度,使所述第二预览图像与所述第三预览图像中包含的相同图像内容的相似度等于预设值,控制所述第二摄像头基于当前取景范围拍摄图像。a photographing module, 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 The similarity between the second preview image and the same image content included in the third preview image is equal to a preset value, and the second camera is controlled to capture an image based on the current framing range.
- 如权利要求5所述的装置,其特征在于,所述获取模块包括:The device of claim 5, wherein the obtaining module comprises:获取单元,用于获取所述第一预览图像中的待调焦图像区域对应的中心像素坐标;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 orientation and an angle of the center pixel coordinate with respect to an offset of the first preview image center The focus angle is determined.
- 如权利要求5或6所述的装置,其特征在于,所述第二摄像头通过云台转轴与云台连接,所述云台与终端固定连接,所述控制模块用于,根据所述调焦角度控制所述云台转轴带动所述第二摄像头旋转,使所述第二摄像头的拍摄角度等于所述调焦角度。The device according to claim 5 or 6, wherein the second camera is connected to the cloud platform through a pan-tilt shaft, the pan-tilt is fixedly connected to the terminal, and the control module is configured to adjust the focus according to the An angle control of the pan/tilt axis drives the second camera to rotate, so that a shooting angle of the second camera is equal to the focusing angle.
- 如权利要求5~7任意一项所述的装置,其特征在于,所述第二摄像头包括望远镜,所述装置还包括:The device according to any one of claims 5 to 7, wherein the second camera comprises a telescope, the device further comprising:显示模块,用于在调整所述第二摄像头的拍摄角度,使所述第二预览图像与所述第三预览图像中包含的相同图像内容的相似度等于预设值之后,同步显示所述第一预览图像以及所述第二预览图像。a display module, configured to: after adjusting a shooting angle of the second camera, so that a 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 the second preview image.
- 一种终端,其特征在于,包括:A terminal, comprising:所述终端包括第一摄像头以及第二摄像头;The terminal includes a first camera and a second camera;控制器,用于获取第一摄像头当前接收到的第一预览图像的调焦参数,根据调焦参数计算调焦角度; a controller, configured to acquire a focusing parameter of the first preview image currently received by the first camera, and calculate a focusing angle according to the focusing parameter;根据所述调焦角度调整所述第二摄像头的拍摄角度,控制所述第一摄像头以及所述第二摄像头基于同一取景图像获取第二预览图像以及第三预览图像;Adjusting a shooting angle of the second camera according to the focusing angle, and controlling the first camera and the second camera to acquire a second preview image and a third preview image based on the same framing image;计算所述第二预览图像与所述第三预览图像中包含的相同图像内容的相似度,根据计算得到的所述相似度调整所述第二摄像头的拍摄角度,使所述第二预览图像与所述第三预览图像中包含的相同图像内容的相似度等于预设值,控制所述第二摄像头基于当前取景范围拍摄图像。Calculating a similarity between the second preview image and the same image content included in the third preview image, and adjusting a shooting angle of the second camera according to the calculated similarity, so that the second preview image is The similarity of the same image content included in the third preview image is equal to a preset value, and the second camera is controlled to capture an image based on the current viewing range.
- 如权利要求9所述的终端,其特征在于,所述第二摄像头通过云台转轴与云台连接,所述云台与终端固定连接,所述云台根据接收到的控制器的控制信号带动所述第二摄像头旋转,以使所述第二摄像头的拍摄角度等于所述调焦角度。The terminal according to claim 9, wherein the second camera is connected to the cloud platform through a pan-tilt axis, and the pan-tilt is fixedly connected to the terminal, and the pan-tilt is driven according to a control signal of the received controller. The second camera is rotated such that a shooting angle of the second camera is equal to the focusing angle.
- 如权利要求9或10所述的终端,其特征在于,所述第二摄像头上设置有望远镜。 The terminal according to claim 9 or 10, characterized in that the second camera is provided with a telescope.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510050058.1 | 2015-01-30 | ||
CN201510050058.1A CN104601892A (en) | 2015-01-30 | 2015-01-30 | Terminal and image shooting method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2016119301A1 true WO2016119301A1 (en) | 2016-08-04 |
Family
ID=53127359
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2015/075559 WO2016119301A1 (en) | 2015-01-30 | 2015-03-31 | Terminal, and image capturing method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104601892A (en) |
WO (1) | WO2016119301A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107147837A (en) * | 2017-06-30 | 2017-09-08 | 维沃移动通信有限公司 | The method to set up and mobile terminal of a kind of acquisition parameters |
CN114795079A (en) * | 2022-05-06 | 2022-07-29 | 广州为实光电医疗科技有限公司 | Matching calibration method and device for medical endoscope double-camera module |
CN115150543A (en) * | 2021-03-31 | 2022-10-04 | 华为技术有限公司 | Shooting method, shooting device, electronic equipment and readable storage medium |
Families Citing this family (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106303199A (en) * | 2015-06-02 | 2017-01-04 | 齐发光电股份有限公司 | focusing system and focusing method |
CN105472245B (en) * | 2015-12-21 | 2019-09-24 | 联想(北京)有限公司 | A kind of photographic method, electronic equipment |
KR20170139408A (en) | 2016-06-09 | 2017-12-19 | 엘지전자 주식회사 | Moving picture photographing apparatus having dual cameras |
CN106131397A (en) * | 2016-06-21 | 2016-11-16 | 维沃移动通信有限公司 | A kind of method that multi-medium data shows and electronic equipment |
CN106550230A (en) * | 2016-08-31 | 2017-03-29 | 深圳小辣椒虚拟现实技术有限责任公司 | A kind of 3D rendering filming apparatus and method |
CN106412397A (en) * | 2016-10-17 | 2017-02-15 | 成都观界创宇科技有限公司 | Camera shooting device, and method and device for identifying state of the camera shooting device |
CN106791374B (en) * | 2016-11-29 | 2019-09-13 | Oppo广东移动通信有限公司 | Control method, control device and electronic device |
CN106599664A (en) * | 2016-12-15 | 2017-04-26 | 北京奇虎科技有限公司 | Iris unlocking method and device and mobile terminal |
CN108270959B (en) * | 2016-12-30 | 2020-05-08 | 华为技术有限公司 | Panoramic imaging method, terminal equipment and panoramic imaging device |
CN106888349A (en) * | 2017-03-30 | 2017-06-23 | 努比亚技术有限公司 | A kind of image pickup method and device |
CN107944400B (en) * | 2017-11-28 | 2020-07-31 | 广东小天才科技有限公司 | Photographing search method and device, intelligent terminal and computer readable storage medium |
CN111355878A (en) * | 2018-12-21 | 2020-06-30 | 中兴通讯股份有限公司 | Terminal, shooting method and storage medium |
CN110442153B (en) * | 2019-07-10 | 2022-03-25 | 佛山科学技术学院 | Camera correction control method and system for passive optical dynamic capturing system |
CN111062313A (en) * | 2019-12-13 | 2020-04-24 | 歌尔股份有限公司 | Image identification method, image identification device, monitoring system and storage medium |
CN111935397B (en) * | 2020-07-07 | 2022-04-22 | 北京迈格威科技有限公司 | Image processing method and device, electronic equipment and computer readable medium |
CN114125256B (en) * | 2020-08-25 | 2024-09-17 | 宁波舜宇光电信息有限公司 | Shooting method for multi-camera module with built-in holder |
CN115150586A (en) * | 2022-06-20 | 2022-10-04 | 山东信通电子股份有限公司 | Power transmission line-based monitoring method, device, equipment and medium |
Citations (4)
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 (en) * | 2006-02-02 | 2007-08-08 | 富士施乐株式会社 | Remote instruction system, remote instruction method, and program product for remote instruction |
CN101511004A (en) * | 2009-03-25 | 2009-08-19 | 北京中星微电子有限公司 | Method and apparatus for monitoring camera shot |
CN102087116A (en) * | 2009-12-08 | 2011-06-08 | 财团法人工业技术研究院 | Processing method and system of mobile camera to road scene image |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201054698Y (en) * | 2007-06-06 | 2008-04-30 | 徐春云 | Positioning capturing and tracking device |
JP2011066828A (en) * | 2009-09-18 | 2011-03-31 | Canon Inc | Imaging device, imaging method and program |
CN103546665A (en) * | 2012-07-11 | 2014-01-29 | 北京博雅华录视听技术研究院有限公司 | Method for enhancing image definition on basis of multiple cameras |
CN103731658B (en) * | 2013-12-25 | 2015-09-30 | 深圳市墨克瑞光电子研究院 | Binocular camera repositioning method and binocular camera resetting means |
CN104113697B (en) * | 2014-08-01 | 2017-10-13 | 广东欧珀移动通信有限公司 | Cooperate with take pictures treating method and apparatus, treating method and apparatus of taking pictures |
-
2015
- 2015-01-30 CN CN201510050058.1A patent/CN104601892A/en active Pending
- 2015-03-31 WO PCT/CN2015/075559 patent/WO2016119301A1/en active Application Filing
Patent Citations (4)
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 (en) * | 2006-02-02 | 2007-08-08 | 富士施乐株式会社 | Remote instruction system, remote instruction method, and program product for remote instruction |
CN101511004A (en) * | 2009-03-25 | 2009-08-19 | 北京中星微电子有限公司 | Method and apparatus for monitoring camera shot |
CN102087116A (en) * | 2009-12-08 | 2011-06-08 | 财团法人工业技术研究院 | Processing method and system of mobile camera to road scene image |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107147837A (en) * | 2017-06-30 | 2017-09-08 | 维沃移动通信有限公司 | The method to set up and mobile terminal of a kind of acquisition parameters |
CN115150543A (en) * | 2021-03-31 | 2022-10-04 | 华为技术有限公司 | Shooting method, shooting device, electronic equipment and readable storage medium |
CN115150543B (en) * | 2021-03-31 | 2024-04-16 | 华为技术有限公司 | Shooting method, shooting device, electronic equipment and readable storage medium |
CN114795079A (en) * | 2022-05-06 | 2022-07-29 | 广州为实光电医疗科技有限公司 | Matching calibration method and device for medical endoscope double-camera module |
Also Published As
Publication number | Publication date |
---|---|
CN104601892A (en) | 2015-05-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2016119301A1 (en) | Terminal, and image capturing method and device | |
US9282242B2 (en) | Method and electric device for taking panoramic photograph | |
US8441541B2 (en) | Control apparatus and control method therefor | |
JP2024040284A (en) | Imaging apparatus, computer program and imaging control method | |
WO2014153950A1 (en) | Quick automatic focusing method and image acquisition device | |
JP2000188712A (en) | Electronic camera | |
KR20050051575A (en) | Photographing apparatus and method, supervising system, program and recording medium | |
TW201251447A (en) | Positional sensor-assisted image registration for panoramic photography | |
JP2014143545A (en) | Photographing apparatus | |
JP4736381B2 (en) | Imaging apparatus and method, monitoring system, program, and recording medium | |
KR102314943B1 (en) | Information processing apparatus, information processing method, and recording medium | |
US9088720B2 (en) | Apparatus and method of displaying camera view area in portable terminal | |
WO2018196854A1 (en) | Photographing method, photographing apparatus and mobile terminal | |
US9420161B2 (en) | Image-capturing apparatus | |
JP2014039166A (en) | Controller of automatic tracking camera and automatic tracking camera equipped with the same | |
TW202002606A (en) | Image-capturing device and method for operating the same | |
JP4867136B2 (en) | Imaging apparatus and program thereof | |
US20220091487A1 (en) | Shooting control method and shooting control device | |
JP2015012550A (en) | Imaging apparatus and imaging system | |
JP2021100239A (en) | Tracking device, control method of the same, and imaging apparatus | |
JP6412222B2 (en) | Shooting device, linked shooting method, and linked shooting program | |
US8054332B2 (en) | Advanced input controller for multimedia processing | |
JP2005175852A (en) | Photographing apparatus and method of controlling photographing apparatus | |
JP7385667B2 (en) | Photography equipment and method | |
JPH08190113A (en) | Camera with swing function |
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 |