The invention relates to an image capturing apparatus and an image processing method, and particularly relates to an image capturing apparatus and an image zooming method thereof.
With the advances in image capturing technology, digital camera pixels are significantly increased. However, a size of the camera is relatively decreased, so that the camera can be configured on portable electronic devices, such as mobile phones and tablet computers, for a user to capture images anytime and anywhere. To achieve a zoom function of the camera on the mobile phones and the tablet computers, many products on the market will be equipped with a wide-angle lens and a telephoto lens with different fields of view (FOV) simultaneously. As a wide-angle lens 12 and a telephoto lens 14 shown in
The zoomed image is a result obtained by the electronic device performing cropping, alignment, fusing, or other processing on the images captured by the dual lens, which can be obtained from a wide image captured by the wide-angle lens, a tele image captured by the telephoto lens, or the both. Specifically, according to the input zoom factor, the electronic device will capture a portion of the image from the wide image or the tele image to scale-up, so as to provide an image meeting the zoom factor, for example. Alternatively, the electronic device will fuse two images to generate a composite image, wherein the tele image is used as a center portion of the composite image, and the wide image is used as a peripheral portion of the composite image. The resulting composite image will be approximate to an image after optical zooming.
In some cases, the electronic device only performs digital zoom to obtain the zoomed image. That is, the zoomed image is formed by scaling-up a portion cropping from the wide image or the tele image. Specifically,
However, when the dual lens apparatus switches between the wide image and the tele image, the user usually sees a discontinuous image change due to different viewing angles of the wide-angle lens and the telephoto lens.
Specifically,
The invention provides an image capturing apparatus and an image zooming method thereof which can reduce a discontinuous image change in an image switching process.
The invention provides an image zooming method of an image capturing apparatus, adapted to the image capturing apparatus with a wide-angle lens and a telephoto lens. The method respectively captures a wide image and a tele image by utilizing the wide-angle lens and the telephoto lens, and then recognizes an object of interest in the wide image and the tele image. Then, a zoom factor is received to zoom the wide image or the tele image, and a capture range of a window of interest (WOI) for capturing the wide image is adjusted in a zooming process, such that a center of the wide image captured by the window of interest moves toward the object of interest. Also, when the zoom factor reaches a magnification of the telephoto lens, the object of interest is at the same position in the wide image captured by the window of interest and the tele image.
According to an embodiment of the invention, the step of adjusting the capture range of the window of interest for capturing the wide image and the tele image in the zooming process such that the center of the wide image captured by the window of interest moves toward the object of interest includes the following steps. At least one feature point and at least one corresponding matching point of the object of interest are captured in the wide image and the tele image. Then, a corresponding virtual center of the center of the tele image in the wide image is calculated by utilizing the feature point and the matching point. A plurality of intermediate points between the center of the wide image and the virtual center are calculated to be used as centers of the window of interest for capturing a zoomed image in the zooming process according to the center of the wide image, the virtual center of the tele image, and the zoom factor. At last, the zoomed image is captured from the wide image and the tele image by utilizing the window of interest according to the center of the window of interest and the zoom factor.
According to an embodiment of the invention, the step of capturing the feature point and the corresponding matching point of the object of interest in the wide image and the tele image includes the following steps. The feature point of the object of interest in the wide image is captured, and the matching point corresponding to the feature point in the tele image is searched.
According to an embodiment of the invention, the step of calculating the corresponding virtual center of the center of the tele image in the wide image by utilizing the feature point and the matching point includes the following steps. A vector from each matching point in the tele image to the center of the tele image is calculated. The vector is multiplied by a ratio of the magnification of the wide-angle lens to the magnification of the telephoto lens to obtain a convert vector. The feature point corresponding to the matching point in the wide-angle lens plus the convert vector to calculate the corresponding virtual center of the center of the tele image in the wide image.
According to an embodiment of the invention, the step of capturing the feature point and the corresponding matching point of the object of interest in the wide image and the tele image includes the following steps. The feature point of the object of interest in the tele image is captured, and the matching point corresponding to the feature point in the wide image is searched.
According to an embodiment of the invention, the step of calculating the corresponding virtual center of the center of the tele image in the wide image by utilizing the feature point and the matching point includes the following steps. A vector from each feature point in the tele image to the center of the tele image is calculated. The vector is multiplied by a ratio of the magnification of the wide-angle lens to the magnification of the telephoto lens to obtain a convert vector. The matching point corresponding to the feature point in the wide-angle lens plus the convert vector to calculate the corresponding virtual center of the center of the tele image in the wide image.
According to an embodiment of the invention, the step of calculating the plurality of intermediate points between the center of the wide image and the virtual center to be used as the centers of the window of interest for capturing the zoomed image in the zooming process according to the center of the wide image, the virtual center of the tele image, and the zoom factor includes the following step. The intermediate points are inserted between the center of the wide image and the virtual center according to a proportional relationship between the zoom factor and the magnifications of the wide-angle lens and the telephoto lens.
According to an embodiment of the invention, the method further includes the following step. A size of the wide image is multiplied by a ratio of the magnification of the wide-angle lens to the corresponding zoom factor of each window of interest in the zooming process to obtain a size of the window of interest.
According to an embodiment of the invention, the step of capturing the zoomed image from the wide image and the tele image by utilizing the window of interest according to the center of the window of interest and the zoom factor further includes the following step. Whether the scene has a change in the wide image and the tele image is determined. If there is a change, the intermediate points between the center of the window of interest and the virtual center are calculated to be used as the centers of the window of interest for capturing the zoomed image in the subsequent zooming process according to the center of the window of interest, the virtual center of the tele image, and the zoom factor which are currently used.
The invention provides an image capturing apparatus including a wide-angle lens, a telephoto lens, and an image processing circuit. The wide-angle lens is used to capture a wide image, and the telephoto lens is used to capture a tele image. The image processing circuit is coupled to the wide-angle lens and the telephoto lens and used to process the wide image and the tele image to generate a zoomed image. The image processing circuit includes an object of interest recognition module and a zoomed image capture module. The object of interest recognition module is used to recognize an object of interest in the wide image or the tele image. The zoomed image capture module is used to receive a zoom factor to zoom the wide image or the tele image and adjust a capture range of a window of interest for capturing the wide image in a zooming process, such that a center of the wide image captured by the window of interest moves toward the object of interest. When the zoom factor reaches a magnification of the telephoto lens, the object of interest is at the same position in the wide image captured by the window of interest and the tele image.
According to an embodiment of the invention, the object of interest recognition module includes capturing at least one feature point and at least one corresponding matching point of the object of interest in the wide image and the tele image. The zoomed image capture module includes calculating a corresponding virtual center of the center of the tele image in the wide image by utilizing the feature point and the matching point, calculating a plurality of intermediate points between the center of the wide image and the virtual center to be used as centers of the window of interest for capturing the zoomed image in the zooming process according to the center of the wide image, the virtual center of the tele image, and the zoom factor, and capturing the zoomed image from the wide image by utilizing the window of interest according to the center of the window of interest and the zoom factor.
According to an embodiment of the invention, the object of interest recognition module includes capturing the feature points of the object of interest in the wide image and searching the matching points corresponding to the feature points in the tele image.
According to an embodiment of the invention, the zoomed image capture module includes calculating a vector from each matching point in the tele image to the center of the tele image, multiplying the vector by a ratio of the magnification of the wide-angle lens to the magnification of the telephoto lens to obtain a convert vector, and calculating the corresponding virtual center of the center of the tele image in the wide image from the feature point corresponding to the matching point in the wide-angle lens plus the convert vector.
According to an embodiment of the invention, the object of interest recognition module includes capturing the feature points of the object of interest in the tele image and searching the matching points corresponding to the feature points in the wide image.
According to an embodiment of the invention, the zoomed image capture module includes calculating a vector from each feature point in the tele image to the center of the tele image, multiplying the vector by a ratio of the magnification of the wide-angle lens to the magnification of the telephoto lens to obtain a convert vector, and calculating the corresponding virtual center of the center of the tele image in the wide image from the matching point corresponding to the feature point in the wide-angle lens plus the convert vector.
According to an embodiment of the invention, the zoomed image capture module includes inserting the intermediate points between the center of the wide image and the virtual center according to a proportional relationship between the zoom factor and the magnifications of the wide-angle lens and the telephoto lens.
According to an embodiment of the invention, the zoomed image capture module further multiplies the size of the wide image by a ratio of the magnification of the wide-angle lens to the zoom factor corresponding to each window of interest in the zooming process to obtain the size of the window of interest.
According to an embodiment of the invention, the image processing circuit further includes a scene determination module, which is used to determine whether the scene has a change in the wide image and the tele image. If there is a change, the zoomed image capture module will calculate the intermediate points between the center of the window of interest and the virtual center to be used as the centers of the window of interest for capturing the zoomed image in the subsequent zooming process according to the center of the window of interest, the virtual center of the tele image, and the zoom factor which are currently used.
Based on the above, in the image capturing apparatus and the image zooming method thereof of the invention, the window of interest for capturing the zoomed image in the zooming process is defined by finding out the object of interest in the wide or tele images and making the object of interest as the center. Since the center of the zoomed image is gradually transferred onto the object of interest in the zooming process by the window of interest, the object of interest is at the same position in the image when the image capturing apparatus switches from the wide image to the tele image. Thus, the discontinuous feeling caused by the bumping of the subject object in the image can be reduced.
In order to make the aforementioned features and advantages of the disclosure more comprehensible, embodiments accompanied with figures are described in detail below.
The accompanying drawings are included to provide a further understanding of the invention, and are incorporated in and constitute a part of this specification. The drawings illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the disclosed embodiments. It will be apparent, however, that one or more embodiments may be practiced without these specific details. In other instances, well-known structures and devices are schematically shown in order to simplify the drawing.
Compared with the conventional method that the image capturing apparatus captures a center portion of the wide image to scale-up when zooming image, the invention is to select a capture portion to scale-up based on the position of the object of interest in the wide image or the tele image. Specifically, in the invention, the object of interest in the wide image and the tele image is recognized, and a window of interest (WOI) for capturing the zoomed image is defined according to a corresponding position of the object of interest in the wide image and the tele image, thereby capturing images in the window of interest to scale-up to be used as the zoomed image. Moreover, in the invention, a scene change is monitored in a zooming process, and the position of the window of interest is recalculated using the most recent use of the position of the window of interest as a start point to recalculate the position of the window of interest in the subsequent zooming process when the scene change is detected. Thus, in the image zooming process, the center of the captured zoomed image is gradually transferred from the center of the wide image onto the object of interest, thereby reducing the discontinuity caused by the jumping of the subject object in the image.
The wide-angle lens 62 and the telephoto lens 64 respectively include an optical lens, an actuator, aperture, a shutter, an image sensor, and other components. The optical lens is composed of several concave convex lenses, and is driven by the actuator, such as a stepping motor or a voice coil motor (VCM), to change the relative position between the lenses, thereby changing the focal length. The aperture is a ring-shaped opening composed of many metal blades. The opening may be opened or shrunk with the size of the aperture value, thereby controlling an amount of light of the optical lens. The shutter is used to control the length of time of the light entering the optical lens and the combination with the aperture may affect an amount of exposure of the image captured by the image sensor. The image sensor is provided with a charge coupled device (CCD), a complementary metal-oxide semiconductor (CMOS) device, or other types of photosensitive components, so as to sense the light intensity entering the optical lens to generate the image. In the embodiment, the wide-angle lens 62 has a larger magnification and field of view (FOV) and a shorter focal length, and the telephoto lens 64 has a smaller magnification and field of view and a longer focal length.
The image processing circuit 66 includes an object of interest recognition module 662 and a zoomed image capture module 664. In an embodiment, each of the modules in the image processing circuit 66 takes the form of an integrated circuit (IC), for example, so as to achieve the image zooming method of the embodiment of the invention. In another embodiment, the image processing circuit 66 includes a storage device and a processor, for example. The storage device is a hard disc or a memory with a data storage function, for example, and the processor is a central processing unit (CPU), a microprocessor, a digital signal processor, programmable controller, application specific integrated circuits (ASIC), a programmable logic device (PLD), or other devices with a data operation function, for example. Each of the modules in the image processing circuit 66 is a computer program stored in the storage device, for example. The programs may be loaded via the processor to execute the image zooming method of the embodiment of the invention.
Specifically,
First, the wide image and the tele image are respectively captured by utilizing the wide-angle lens 62 and the telephoto lens 64 (Step S702). The image capturing apparatus 60 triggers the wide-angle lens 62 and the telephoto lens 64 to capture the image simultaneously after the user presses a shutter button, for example.
Then, the object of interest recognition module 662 recognizes an object of interest in the wide image and the tele image (Step S704). The object of interest recognition module 662 may recognize the object of interest according to the focus position of the wide-angle lens 62 and the telephoto lens 64, or human images or moving objects in the wide image and the tele image, for example.
Then, the zoomed image capture module 644 may receive the zoom factor to zoom the wide image or the tele image and adjust a capture range of the window of interest (WOI) for capturing the wide image and the tele image in the zooming process, such that the center of the wide image captured by the window of interest moves toward the object of interest. Also, when the zoom factor reaches the magnification of the telephoto lens, a position of the object of interest in the wide image captured in the window of interest is equal to a position of the object of interest in the tele image (Step S706). The zoomed image capture module 664 may move the capture range of the window of interest for capturing the wide image according to the position of object of interest in the tele image, such that the captured wide image gradually moves toward the object of interest. Finally, when zooming to the magnification of the telephoto lens, the object of interest will be at the same position in the wide image captured by the window of interest and the tele image. For example, in
In the zooming process, the image captured by the zoomed image capture module 668 may be sequentially displayed on a display (not shown) of the image capturing apparatus 60 for the user to see the image zooming process. Since the image displayed by the image capturing apparatus 60 may gradually move toward the object of interest in the zooming process, even if the magnification to be zoomed required by the user is higher than the magnification of the telephoto lens 64 such that the image capturing apparatus 60 must switch from the wide image to the tele image to continue the image zooming (at the moment when the zoom factor is equal to the magnification of the telephoto lens 64, the field of view of the zoomed image captured in the wide image has been moved onto the object of interest to overlap with the position of the object of interest in the tele image), the user will not notice that the object of interest has any significant changes in the image switching process.
Thus, since the position and the size of the object of interest which the user is concerned about have no significant change before and after the switching, the image discontinuity perception of the user caused by the image switching can be reduced.
It should be noted that the method of the embodiment is suitable for the case that the zoom factor is from small to large and the zoomed image is switched from the wide image to the tele image, it is also suitable for the case that the zoom factor is from large to small and the zoomed image is switched from the tele image to the wide image. That is to say, no matter the preset magnification and the received zoom factor are large or small, the method of the embodiment can make the object of interest in the zoomed image captured by the wide image and the object of interest in the zoomed image captured by the tele image be at the same position at the moment of zooming to the magnification of the telephoto lens by moving the center of the wide image captured by the window of interest toward the object of interest. Thus, the user will not notice that the object of interest has any significant changes in the image switching process.
For example, for the case that the zoom factor is from small to large and the zoomed image is switched from the wide image to the tele image,
First, the wide image and the tele image are respectively captured by utilizing the wide-angle lens 62 and the telephoto lens 64 (Step S802). The image capturing apparatus 60 triggers the wide-angle lens 62 and the telephoto lens 64 to capture the image simultaneously after the user presses the shutter button, for example.
Then, the object of interest recognition module 662 recognizes an object of interest in the wide image and the tele image and captures feature points and corresponding matching points of the object of interest in the wide image and the tele image (Step S804). In an embodiment the object of interest recognition module 662 may capture the feature points of the object of interest in the wide image and search the matching points corresponding to the feature points in the tele image. In another embodiment, the object of interest recognition module 662 may capture the feature points of the object of interest in the tele image and search the matching points corresponding to the feature points in the wide image. The feature point captured by the object of interest recognition module 662 may be one or multiple feature points of the object of interest, and is not limited to the embodiment.
Then, the zoomed image capture module 664 calculates a corresponding virtual center of the center of the tele image in the wide image by utilizing the feature points and the matching points captured by the object of interest recognition module 662 (Step S806). Specifically, the zoomed image capture module 644 may calculate a vector from the matching point in the tele image to the center of the tele image first, multiply the vector by a ratio of the magnification of the wide-angle lens to the magnification the telephoto lens to obtain a convert vector, and adds the convert vector to the feature point corresponding to the matching point in the wide-angle lens, thereby deriving the corresponding virtual center of the center of the tele image in the wide-angle lens.
Thereafter, the zoomed image capture module 664 calculates a plurality of intermediate points between the center of the wide image and the virtual center to be used as a plurality of centers of the window of interest for capturing the zoomed image in the zooming process according to the center of the wide image, the virtual center of the tele image, and the zoom factor (Step S808). Specifically, the zoomed image capture module 664 inserts the plurality of intermediate points between the center of the wide image and the virtual center to be used as the plurality of centers of the window of interest according to a proportional relationship between the zoom factor and the magnifications of the wide-angle lens and the telephoto lens, for example. The zoomed image capture module 664 further multiplies the size of the wide image by a ratio of the magnification of the wide-angle lens 62 to the corresponding zoom factor of the window of interest in the zooming process to obtain the size of the window of interest.
At last, the zoomed image capture module 664 captures the zoomed image from the wide image and the tele image by utilizing the window of interest according to the calculated center of the window of interest and the zoom factor (Step S810). In the zooming process, the zoomed image captured by the zoomed image capture module 664 may be sequentially displayed on a display (not shown) of the image capturing apparatus 60 for the user to see the image zooming process. Since the image displayed by the image capturing apparatus 60 may gradually move toward the object of interest in the zooming process, even if the magnification to be zoomed required by the user is higher than the magnification of the telephoto lens 64 such that the image capturing apparatus 60 must switch from the wide image to the tele image to continue the image zooming (at the moment when the zoom factor is equal to the magnification of the telephoto lens 64, the field of view of the zoomed image captured in the wide image has been moved onto the object of interest to overlap with the position of the object of interest in the tele image), the user will not notice that the object of interest has any significant changes in the image switching process.
It should be noted that, although the method of capturing the zoomed image by moving the window of interest in the wide image of the embodiment may ensure that the position of the object of interest remains unchanged in the image switching process, the background portion of the zoomed image still have a deviation in the image switching process due to different viewing angles of the wide-angle lens 62 and the telephoto lens 64. However, since the user's attention is usually focused on the object of interest in the image, rather than the background, the image discontinuity generated in the image switching process that may be noticed by the user can be reduced or avoided by using the method of the embodiment.
For example,
Next, referring to
Thereafter, referring to
At last, referring to
The window of interest defined by the above method can be used to define the range of the images captured in the wide-angle lens at any zoom factor in the process of zooming from the magnification Zwide of the wide-angle lens to the magnification Ztele of the telephoto lens. However, in the zooming process, since the center of the window of interest may be gradually moved toward the virtual center corresponding to the center of the tele image, the object of interest appears in the image will be at the same position when the zoom factor is magnified to the magnification of the telephoto lens and required to switch from the wide image to the tele image. Thus, the position and the size of the object of interest which the user is concerned about has no significant change before and after the switching, thereby reducing the image discontinuity perception of the user caused by the image switching.
It should be noted that when the zooming operation is performed by the user, an original capture scene may be changed. At this time, if the image is zoomed according to the previous calculated method, the situation of image discontinuity will also be generated because the position of the object of interest is changed. In this regard, an embodiment of the invention is to detect the scene change in the image in the zooming process and recalculate the position of the window of interest used in the following zooming to solve the problem of image discontinuity when the scene is changed.
Specifically, in the embodiment of
For example,
By the above method, the image capturing apparatus of the embodiment can change the range of the captured image in response to the change of the image scene in the zooming process, such that the range of the zoomed image continues moving toward the object of interest in the image, so as to ensure that the display of the object of interest is continuous when the image is switched.
In summary, in the image capturing apparatus and the image zooming method thereof of the invention, the image capturing apparatus transfers the image captured in the wide image and the tele image from the image center to the center of the object of interest in the process of capturing and displaying the zoomed image according to the zoom factor input by the user, so as to ensure that the positions of the object of interest in the image before and after switching are the same when the image is switched subsequently. Thus, the discontinuous feeling caused by the bumping of the subject object in the image can be reduced. The invention further monitors the scene change in the image zooming process and timely adjusts the captured image range, such that the zoomed image continues moving toward the object of interest in the image, so as to ensure that the display of the object of interest is continuous when the image is switched subsequently.
Although the invention has been described with reference to the above embodiments, it will be apparent to one of ordinary skill in the art that modifications to the described embodiments may be made without departing from the spirit of the invention. Accordingly, the scope of the invention is defined by the attached claims not by the above detailed descriptions.
Number | Date | Country | Kind |
---|---|---|---|
106102481 | Jan 2017 | TW | national |
This application claims the priority benefits of U.S. provisional application Ser. No. 62/382,787, filed on Sep. 2, 2016 and Taiwan application Ser. No. 106102481, filed on Jan. 23, 2017. The entirety of each of the above-mentioned patent applications is hereby incorporated by reference herein and made a part of this specification.
Number | Date | Country | |
---|---|---|---|
62382787 | Sep 2016 | US |