Disclosure of Invention
The invention provides an image shooting device, an image shooting method and a terminal, which are used for solving the technical problem that details of a designated area are not clear when a super-wide-angle camera is used for shooting in the prior art.
According to a first aspect of the present invention, there is provided an image capturing method comprising the steps of: the method comprises the following operation steps:
obtaining a first image through a first camera and obtaining a second image through a second camera;
synthesizing the first image and the second image to obtain a combined image;
the second image can at least cover a part of the preset area of the first image, and the first camera is an ultra-wide-angle camera.
In one embodiment, the first camera and the second camera are simultaneously captured to obtain the first image and the second image.
In one embodiment, the first image is a frame image formed by a preview picture shot by the first camera;
the second image is a frame image formed by scaling a preview picture shot by the second camera according to the size of the first image.
In one embodiment, the second image is displayed on the first image in the form of a window in a preview mode of the image photographing terminal.
In one embodiment, in a preview mode of an image capture terminal, coordinates of the second image on the first image are recorded.
In one embodiment, the first camera and the second camera are located on the same side of the image capturing terminal.
According to a second aspect of the present invention, there is provided an image capturing apparatus comprising:
the shooting module comprises a first camera and a second camera, wherein the first camera is used for obtaining a first image, and the second camera is used for obtaining a second image; and
a processing module: the image processing device is used for synthesizing the first image and the second image to obtain a combined image;
the second image can at least cover a part of the preset area of the first image, and the first shooting camera is an ultra-wide-angle camera.
In one embodiment, the first camera and the second camera are simultaneously captured to obtain the first image and the second image.
In one embodiment, the image processing apparatus further comprises a reading module capable of reading the first image, the second image, and the combined image, respectively.
According to a third aspect of the present invention, there is provided an image capturing terminal including the image capturing apparatus described above.
Compared with the prior art, the invention has the advantages that: because the first camera is an ultra-wide angle camera, the field angles of the first camera and the second camera are different, namely, a first picture obtained by the first camera can completely reflect the whole scene, and the second camera obtains a second image of a preset area of the whole scene with higher quality, so that after the first image and the second image are synthesized, even if the combined image is amplified, the second image is synthesized in the preset area, and therefore, the first camera and the second camera still have better detail expression.
Detailed Description
The invention will be further explained with reference to the drawings.
As shown in fig. 1, according to a first aspect of the invention, there is provided an image photographing method including the following steps.
First, a first image is obtained by a first camera. And obtaining a second image through the second camera while the first camera obtains the first image. Wherein, first camera is super wide angle camera, and it can obtain the first image that comprehensively expresses whole scene. The second camera is a common camera, and the first camera and the second camera have different field angles, so that different pictures can be obtained. I.e. the first image can fully represent the entire scene and the second image can cover at least part of the preset area of the first image, i.e. the second image can completely cover the preset area of the first image, or the second image can cover only part of the preset area of the first image, so that the second image can represent the preset area or part of the preset area of the same scene, but the second image has a better detail representation capability than the first image.
The preset area may be some preset areas, such as a central area of the first image.
Generally, an angle formed by two edges of a lens through which an object image of a target to be measured can pass is called an angle of view. For shooting, the size of the field angle determines the visual field range of an image, and the larger the field angle is, the larger the visual field is, so that the ultra-wide-angle camera can shoot the larger the visual field, and the obtained scene is more comprehensive.
By synchronously starting the first camera and the second camera, the image information of different fields of view can be acquired simultaneously, so that the real-time performance of image processing is improved, and the phenomenon that the second image cannot cover the preset area of the first image or cannot be seamlessly connected with the corresponding position of the first image due to inconsistent acquisition time is avoided.
Optionally, the first and second images with different angles of view are obtained by adjusting focal lengths of the first and second cameras. It is understood that, in the case where the image heights are the same, the larger the focal length is, the smaller the angle of field is, and the more limited the field range at the time of shooting is.
The following description will take the preset area as the central area of the first image as an example. Specifically, the first image is a frame image formed by a preview picture shot by a first camera, and the second image is a frame image formed by a preview picture shot by a second camera after scaling according to the size of the first image. When the second image completely covers the central area of the first image, the preview picture shot by the second camera is reduced to be consistent with the size of the central area.
The above-mentioned image obtaining method can adopt various feasible embodiments in the prior art, and is not described herein again.
In a preview mode of the image photographing terminal, the second image is displayed on the first image in the form of a window. As shown in fig. 2, the first image is an image captured by the first camera in the preview mode, the second image is an image obtained by scaling down an image captured by the second camera in the preview mode, the image in the frame a in fig. 2 is the second image, and the rest is displayed as the first image. The edges of the second image are marked with a colored border. The second image is completely overlaid in the same scene in the first image, i.e. it can be seamlessly joined to the first image. In the image shown in fig. 2, details such as characters can be clearly expressed by enlarging the portion where the frame a is located.
The preview mode described in the present invention refers to a preparation stage of photographing. That is, after the photographing function of the image photographing apparatus is started, the image photographing apparatus may automatically enter a photographing preview mode, or select an option in a function menu to enter the mode. The user can obtain a satisfactory shooting effect and shoot by observing the scene to be shot fed back in real time through the viewing window in the shooting preview mode and adjusting the shooting parameters.
Further, in a preview mode of the image photographing terminal, the second image may be displayed in a scaled manner according to an input of the user. For example, when the user double-clicks the frame position of the second image, the second image is displayed in a scaled-up manner; when the user double-clicks the position of the frame of the second image again, the second image is displayed in a scaled-down manner. Or when the user presses the frame position of the second image for a long time, the second image is displayed in a scale-up manner; when the user releases, the second image is displayed scaled down.
Further, in the preview mode of the image capturing terminal, the coordinates of the second image on the first image are recorded. The position of the second image on the first image is determined by the coordinate data.
And secondly, compressing and storing the first image, synchronously compressing and attaching the second image to the first image, and synthesizing the first image and the second image according to the recorded coordinate data of the second image to obtain a combined image. By having the second image at least partially cover the central region of the first image, the central region of the combined image obtained has a better detail expression capability, enabling the scene to be clearly expressed even when it is enlarged.
When the first image (or the second image) is compressed and stored, a file in a form of jpeg or the like can be generated.
It should be noted that the central region in the present invention is, for example, a circular region with the central point of the first image as the origin and the predetermined length as the radius; or a rectangular region having a predetermined length as a middle point and a predetermined length as a length and a width. The area enclosed by the frame a in fig. 2 is the central area of the first image.
As shown in fig. 1, the image shooting method starts a combined shooting mode, and when a user inputs a shooting instruction, the ultra-wide-angle camera and the common camera synchronously shoot; simultaneously recording the coordinates of the image obtained by the common camera on the image obtained by the ultra-wide-angle camera; and then compressing and storing the image data, and combining the image data into a jpeg file.
According to a second aspect of the invention, an image photographing apparatus includes a photographing module and a processing module. The shooting module comprises a first camera and a second camera, the first camera is used for obtaining a first image, the second camera is used for simultaneously obtaining a second image, and the second image at least can cover a part of a preset area of the first image. The processing module is used for synthesizing the first image and the second image to obtain a combined image.
Furthermore, the first camera is a super wide-angle camera, and the second camera is a common camera. It is understood that the number of the common cameras can be one or more than one.
In addition, the image capturing apparatus of the present invention further includes a reading module, wherein the reading module is capable of reading the first image, the second image, and the combined image, respectively. In other words, the reading module can acquire the first image data, the second image data, the coordinate data, and the combined image data, respectively, so that the first image or the second image can be separately read and displayed by the reading module, and the combined data can also be read to display the combined image. For example, the reading module is a gallery module, wherein the gallery module reads compressed data of the first image to display the first image, and loads the second image data and the coordinate data synchronously to display the combined image.
In addition, when other modules (such as third-party software) open the image, the acquired image data is only the first image data.
According to a third aspect of the invention, the invention provides an image capturing terminal comprising the image capturing apparatus described above. The image capturing terminal of the present invention is, for example, a smartphone.
While the invention has been described with reference to a preferred embodiment, various modifications may be made and equivalents may be substituted for elements thereof without departing from the scope of the invention. In particular, the technical features mentioned in the embodiments can be combined in any way as long as there is no structural conflict. It is intended that the invention not be limited to the particular embodiments disclosed, but that the invention will include all embodiments falling within the scope of the appended claims.