Background technology
In recent years, advancing by leaps and bounds with electronics technology, the camera function of smart mobile phone is also more and more powerful, and existing by
Gradually replace the trend typically with camera, for Creates Difference, the manufacturer of each categorles mobile phone there's no one who doesn't or isn't exhausts thought, constantly changes
Enter shooting specification and the function of its smart mobile phone, such as:Lifting image picture element, strengthening Self-timer, increasing aperture, enhancing optics are prevented
Tremble (OIS) function, accelerate focusing speed, support manual professional mode etc., though those shooting specifications and improvement functionally are
It is universally implemented on various smart mobile phone, but, the wherein design about " twin-lens " is but had an optimistic view of by industry at present
Hardware trend.
Why will be for the shooting specification of smart mobile phone development " twin-lens " and function?The intelligent hand of configuration " twin-lens "
Which function machine can provide on earth?This careful demand with regard to current smart mobile phone in " twin-lens " design and present situation, illustrate such as
Under:
(1) single-lens shooting limitation:With image sensing chip (such as:CMOS pixel) and precision, lens quality
And the continuous evolution of the characteristic such as later stage algorithm, the camera function of smart mobile phone also becomes stronger day by day, and reached and gradually threaten specialty single
The degree of anti-phase machine, however, compact development trend, but leads to smart mobile phone because being limited to the limit of volume and hardware configuration
System, is only capable of using less camera assembly (being integrated and winner by camera lens and image sensing chip), and those camera assemblies is mostly
Single-lens using fixing large aperture and wide-angle design, do not have optical zoom function.General speech, taking pictures of smart mobile phone is right
As be mostly personage with nearly thing based on, add that occasion is still in the majority with the interior of low light source, large aperture design is shallower because producing
The depth of field, tends to obtain preferable imaging effect, but, but also easily produce the not enough problem of the depth of field, particularly, it is right easily to make
Background beyond burnt main body or prospect thicken unclear, therefore, when shooting the big scape of mountain using current smart mobile phone, institute
The image quality capturing will seem loose and not sharp keen, is also not easily achieved the effect of pull-in time (such as:Shooting flowing water,
Track, star orbital, shadow scribble, luminous point become radiance and other effects), under the sufficient imaging environment of sunny and light source, generally also
Easily produce over-exposed problem.
(2) twin-lens or many camera lenses demand are given birth to because of fortune:In recent years, because various 3D or cinerama are sold fast in the whole world,
Start the fervent demand to 3D or panoramic shooting for the consumer, also allowed the big factory of many smart mobile phones to related research and development and apply more
Increase to regard, and release one after another and can support the smart mobile phone of 3D or panoramic shooting, to provide the shooting application of a new generation, such as:360 degree
Virtual reality (VR) real-time video signal crossfire, long-range augmented reality (AR), the video signal relay of superelevation image quality scene etc., because respectively this is taken the photograph
Supported as application is required for different special lens, the design of twin-lens or many camera lenses is therefore to change one's identity suddenly to become new one
The outfit that must augment for smart mobile phone.
(3) twin-lens technology cannot realize precisely and clearly optical zoom mechanism:This is existed with HTC Corporation
As a example the One M8 type smart mobile phone of first pair of depth of field in the whole world that 2014 release, the twin-lens technology that it is adopted is Altek
The UltraPixel with Duo Camera of Corporation design, this Duo Camera are divided into main lens and secondary mirror head, main
If passing through two camera lens cooperating syringe at the smart mobile phone back side, wherein, the larger main lens charge capture image in lower section, and on
The less secondary mirror head in side is then used for recording environment depth data (depth information), and so, user can be led to afterwards
Cross operate interface to change focusing position;Secondly, the V10 type intelligence hand released in November, 2015 with LG Corporation
As a example machine, in it, have 80 ° of general camera lenses of two 5,000,000 picture elements and 120 ° of bugeye lenses, double front lens design can from
Selection standard or wide-angle view during bat, 120 ° of wide-angle lens can catch whole background, or even group autodynes and all can enter mirror,
80 ° of standard lens then can shoot excellent auto heterodyne feature, and LG Corporation in the 2016 G5 type smart mobile phones delivered, then will
Twin-lens design makes into rearmounted, possesses 78 ° of general camera lenses of 16,000,000 pixels and 135 ° of bugeye lenses of 8,000,000 pixels, its
In, 135 ° of bugeye lenses are provided that the visual angle than broad 1.7 times of other smart mobile phones, and exceed 15 degree of naked eyes visual angle, allow use
Family shoots without long distance, can photograph more and higher scenery easily;Finally, predicted in 2016 with much scientific and technological media
As a example the built-in twin-lens design that Apple Corporation may release on iPhone7, the design of its twin-lens is to use 2
The camera assembly of different focal, makes smart mobile phone can be used in mode standard and the shooting switching of landscape mode.However, no
Precisely and clearly optical zoom mechanism all cannot be realized by aforementioned which kind of twin-lens design.
This fills it and cannot realize accurate and clear optical zoom machine taking the various smart mobile phone that aforementioned twin-lens designs as a example
The true cause of system, the twin-lens mainly arranging thereon is only the wide-angle lens of a standard lens and a large aperture, therefore, is intended to
When realizing optical zoom whereby, in zooming procedure, often there is following point:
(1) main body image of focusing of dolly-out,ing dolly-back is made to thicken unclear:Refer to shown in Fig. 1, because of this standard lens and wide-angle
Camera lens all precisely cannot focus to main body 10 (mineral water body as shown in Figure 1) of dolly-out,ing dolly-back, the main body 10 easily amplified in zoom
The ambiguous image 11 (the word image with the mineral water bottle as shown in Fig. 1 lower right corner) of upper generation.
(2) there is obvious image hopping phenomenon in zooming procedure:Refer to shown in Fig. 2 a to Fig. 2 b, because of this standard mirror
The head and wide-angle lens difference on hardware parameter, such as:The visual field (Field of View, abbreviation FOV) parameter, visual angle
(Picture Angle) parameter etc. and its corresponding image sensing chip are (such as:CMOS size), leads to this standard lens
And the difference existing in image ratio between the image that captured of wide-angle lens, and then corresponding pixel on those images is made to occur
Skew, and in zooming procedure, such as:Zoom rate (zoom ratio) is by 1.79 (as shown in Figure 2 a) to 1.80 (as shown in Figure 2 b)
Zooming procedure in, occur obvious image hopping phenomenon (such as Fig. 2 a and the saltus step difference between xl and x2 shown in Fig. 2 b).
Mentioned above, it is seen with the Development Revolution of current twin-lens smart mobile phone and course, the application of twin-lens and design
Though quite polynary and difference, such as:Lift 3D efficiency, draw high the depth of field, follow the trail of face, ultra-wide angle, supplement picture element, many apertures etc., but
It is, if twin-lens design is intended merely to make up the deficiency of single-lens large aperture wide-angle design, but not possess precisely and clearly
Optical zoom mechanism, then difficulty can be reached the optical zoom function that professional slr camera is provided by it.Accordingly, how to design
A kind of method that utilization twin-lens realizes accurate and clear optical zoom, so that smart mobile phone can amplify to long distance main body zoom
When, clearly zoomed image can not only be obtained, and obvious image hopping phenomenon will not occur in zooming procedure, and make intelligence
Mobile phone possesses excellent optical zoom mechanism, becomes the important topic that here of the present invention to be inquired into.
Specific embodiment
For ease of your juror can to the object of the invention, technical characteristic and its effect, do further understanding with
Solution, this measure embodiment coordinates accompanying drawing, describes in detail as follows:
With electronic apparatus (such as:Smart mobile phone, digital camera or panel computer etc.) more and more popularize, and its function
In the state of more and more comprehensive, when people are using respectively this electronic apparatus filmed image, no longer can be satisfied with simple bat
Camera shooting function, but be more desirable to the shooting process of respectively this electronic apparatus and taken image quality all can match in excellence or beauty senior and
The slr camera of specialty, than if more clearly photograph distant view.However, due to various electronic apparatus at present, for fear of
Its compact size design, the design of single-lens thereon or aforementioned twin-lens, when carrying out vista shot, mostly digital become
Jiao, so to after certain distance, the pixel on its image will thicken unclear, and cannot realize senior specialty slr camera
The effect of upper excellent optical zoom.
In view of this, inventor through research for many years, experiment and continuous improve, just expect using a wide-angle imaging assembly and
One focal length camera assembly, makes electronic apparatus can realize the mechanism of accurate and clear optical zoom easily.
The present invention is to provide one kind to realize accurate and clear optical zoom using wide-angle imaging assembly and focal length camera assembly
Method, the method be application to an electronic installation (such as:Smart mobile phone, digital camera or panel computer etc.), refer to Fig. 3 institute
Show, this electronic installation 30 be equiped with a wide-angle imaging assembly 31 and a focal length camera assembly 32, this wide-angle imaging assembly 31 and
This focal length camera assembly 32 is separately mounted on before this electronic installation 30 or on the back side two adjacent positions, this wide-angle imaging group
Part 31 is by a wide-angle lens (wide-angle lens) and one first image sensing chip (such as:CMOS) formed, this focal length
Camera assembly 32 is then made up of a telephoto lens (long-focus lens) and one second image sensing chip, this wide-angle
The focal length (focal length) of camera lens is less than 50 centimetres of focal lengths of a standard lens.
The focal length of standard lens, this wide-angle imaging assembly 31 and this focal length camera assembly 32 can be subject to this electronic installation 30 respectively
Control, simultaneously to same sight spot, capture a wide-angle image and a focal length image respectively, the method is to make this electronic installation 30 energy
According to the following step, refer to shown in Fig. 4, realize accurate and clear optical zoom mechanism:
(401) this wide-angle image W (x, y) and this focal length image T (x+u, y+v) are read, and respectively to this wide-angle image W
(x, y) and this focal length image T (x+u, y+v) execution one exposure and blank level adjustment are processed, so that the exposure of the two and white balance
Unanimously;The main purpose of this adjustment process be although, this wide-angle imaging assembly 31 and this focal length camera assembly 32 can be simultaneous for
Same sight spot, captures this wide-angle image W (x, y) and this focal length image T (x+u, y+v) respectively, but, because this wide-angle imaging group
Part 31 and this focal length camera assembly 32 are not attached to the same position on this electronic installation 30, but on this electronic installation 30
Two adjacent diverse locations, lead to this wide-angle image W (x, y) and this focal length image T (x+u, y+v) still can be because of the difference of camera angle
Different, and in exposure and white balance, there is some difference, meanwhile, in the corresponding pixel points of this wide-angle image and this focal length image
(pixel) can there is certain deviation amount (u, v) on the position of (x, y).
(402) execution (the robust image matching) computing (algorithm) of one robustness images match so that
This wide-angle image W (x, y) and the upper corresponding pixel (pixel) of this focal length image T (x+u, y+v) can be mutually matched, its practice
It is the hardware parameter according to this wide-angle imaging assembly 31 and this focal length camera assembly 32, refer to shown in Fig. 5, such as:Camera lens L thereon
The visual field (Field of View, the abbreviation FOV) parameter of (that is, this wide-angle lens and this telephoto lens), Tu Jiao (Picture
Angle) parameter, visual angle (Vertical Angle ofView and Horizontal Angle ofView) parameter etc. and its
The size of upper image sensing chip S (that is, this first image sensing chip and this second image sensing chip), is calculated
This sight spot M respectively on this first image sensing chip and this second image sensing chip imaging this wide-angle image W (x, y) and
An image ratio between this focal length image T (x+u, y+v), further according to this image ratio, captures from this wide-angle image W (x, y)
Go out the region (hereinafter referred to as " corresponding wide-angle image W (x, y) ") corresponding with this focal length image T (x+u, y+v), then, adopt
With optical flow method (optical flow estimation), such as estimate the energy side of model according to following Horn-Schunck optical flow method
Formula (this is at present more ripe and general algorithm, but when the present invention actual applies it is not limited to this), light stream is estimated
Meter is converted into asking for the minimum optimization process of error, to obtain dense optical flow field (dense optical flow field), and
It is directed to this corresponding wide-angle image W (x, y) according to this and carry out robustness images match computing with this focal length image T (x+u, y+v), so that
This corresponding wide-angle image W (x, y) can be mutually corresponding one by one with the pixel in this focal length image T (x+u, y+v):
Wherein, Section 1 is a data item, represents gray value conservation constraints, is this correspondence wide-angle image after making registration
W (x, y) is as identical as possible with this focal length image T (x+u, y+v) each corresponding pixel upper, is error function;Section 2
Being a smooth item, representing light stream smoothness constraint, because being to be not enough to complete dense matching only with this data item, such as:To this correspondence
Wide-angle image W (x, y) and the pixel of the upper solid color regions of this focal length image T (x+u, y+v), are only to be looked for by this data item
To accurate side-play amount, therefore, it is also desirable to add this smooth item, so that this corresponding wide-angle image W (x, y) and this focal length image T
The side-play amount difference of (x+u, y+v) upper two neighboring feature pixel will not be too big, it is, the rate of change of side-play amount can not be too
Greatly, α is weight factor, for controlling the weight of this data item and this smooth item, to improve the light stream in various complex scene
Estimated accuracy, its value can set based on experience value, also can dynamic change according to the actual requirements, be also error function.Those errors
Function, can be according to different demands, the function that takes absolute value, quadratic function or non-negative be symmetrical and positive axis monotonically increasing function etc.,
In the subsequently shown embodiment of the present invention, for the sake of convenience of calculation, take is quadratic function, in order to carry out extreme value solution,
But when the present invention actual applies it is not limited to this.Then long for the mould of side-play amount gradient.Additionally, aforementioned light
The hypotheses of stream method are:
(1) brightness constancy between this corresponding wide-angle image W (x, y) and this focal length image T (x+u, y+v);
(2) this corresponding wide-angle image W (x, y) is micro- with the movement differential of the interior corresponding pixel points of this focal length image T (x+u, y+v)
Little;
(3) this corresponding wide-angle image W (x, y) and the interior corresponding pixel points of this focal length image T (x+u, y+v) have identical fortune
Moving vector.
Because this corresponding wide-angle image W (x, y) is that synchronization obtains to same sight spot with this focal length image T (x+u, y+v)
The image taking, therefore, should be able to meet the hypotheses of aforementioned optical flow method easily;So, robustness figure to be done is to matching operation
Afterwards, according to above-listed energy equation, can obtain this focal length image T (x+u, y+v) each pixel side-play amount upper one is dense
Optical flow field.
(403) execution one anamorphose fusion treatment (image morphing fusion), its way is according to aforementioned fortune
Calculate the dense optical flow field of the upper each pixel side-play amount of this focal length image T (x+u, y+v) of being obtained, to this focal length image T (x+u,
Y+v) upper each pixel enters line displacement deformation, so that the pixel on strained this focal length image T (x+u, y+v) can be right with this
Answer the pixel mutual Corresponding matching one by one on wide-angle image W (x, y), so, strained this focal length image T (x+u, y+v)
Can according to demand, by a weights λ, wide-angle image W (x, y) corresponding with this carries out following fusion, to obtain a new correspondence
Wide-angle image WNEW:
WNEW=(1- λ) T (x+u, y+v)+λ * W (x, y)
Wherein, depending on this weights λ is according to the actual requirements, such as:Picture on strained this focal length image T (x+u, y+v)
When corresponding pixel is clear in vegetarian refreshments relatively this correspondence wide-angle image W (x, y), λ=0 can be taken, transitional region therebetween then may be used
To take 0 < λ < 1.0, treat pixel on strained this focal length image T (x+u, y+v) can wide-angle image W corresponding with this (x,
Y), after the pixel on corresponds to one by one, the pixel value that can directly choose on strained this focal length image T (x+u, y+v) replaces
Pixel value on this corresponding wide-angle image W (x, y), completes the deformation fusion treatment of image;As on this wide-angle image W (x, y)
The pixel that (in addition to this correspondence wide-angle image) does not match, also can pass through image enhancement processing, strengthen its visual effect.
So, in the present invention although this being used on this wide-angle imaging assembly 31 and this focal length camera assembly 32 is wide
Angle mirror head and this telephoto lens are all tight shot respectively, and this electronic installation 30 is all only capable of respectively to this wide-angle image W (x, y)
And this focal length image T (x+u, y+v) execution Digital Zoom, but, once really it has been observed that this wide-angle imaging assembly 31 and this focal length
Image ratio after the hardware parameter of camera assembly 32 is determined, between this wide-angle image W (x, y) and this focal length image T (x+u, y+v)
Rate is determined, such as:1.8 or 2.3, the present invention, in the verification process of subsequent embodiment, is all taking image ratio 1.8 as a example,
Illustrate.
Accordingly, refer to shown in Fig. 6 a to Fig. 6 c, if user is operating this electronic installation 30 execution Digital Zoom (its zoom
Rate (zoom ratio) be 0~3.0) when, when this wide-angle imaging assembly 31 zoom produces the wide-angle image shown in Fig. 6 a although
This wide-angle imaging assembly 31 precisely cannot focus to main body 60 (mineral water body as shown in Figure 6 a) therein, leads to zoom to be put
Ambiguous image 61 (the word image with mineral water bottle as shown in Fig. 6 a lower right corner) is produced on big main body 60, but
It is, now because this focal length camera assembly 32 precisely can focus to main body 60 (mineral water body as shown in Figure 6 b) therein, therefore
When this focal length camera assembly 32 zoom produces the focal length image shown in Fig. 6 b, the image 62 in the main body 60 that zoom amplifies is (as schemed
Word image with mineral water bottle shown in the 6b lower right corner) still keep clearly incomparable, therefore, by the method for the present invention,
After this wide-angle image and focal length visual fusion, in the main body 60 (mineral water body as fig. 6 c) in new wide-angle image
Image 63 (the word image with mineral water bottle as shown in Fig. 6 c lower right corner) will keep clearly incomparable, and no any mould
Paste unclear problem.
Additionally, when user passes through the method for the present invention, during to this electronic installation 30 execution Digital Zoom, referring to Fig. 7 a
To shown in Fig. 7 b, this with zoom rate (zoom ratio) by 1.79 (as shown in Figure 7a) to 1.80 (as shown in Figure 7b) zoom mistake
As a example journey, also can clearly find entirely without any obvious image hopping phenomenon.Accordingly, the method for the present invention, makes this electricity really
Sub-device 30 possesses precisely and clearly excellent optical zoom mechanism, the optical zoom that the professional slr camera that can match in excellence or beauty is provided
Function.
The above, be only presently preferred embodiments of the present invention, but, the interest field that the present invention is advocated, do not limit to
In this, those skilled in the art, according to disclosed herein technology contents, can think easily and equivalence changes, all should belong to not
Depart from the protection category of the present invention.