CN107155064A - A kind of image pickup method and mobile terminal - Google Patents
A kind of image pickup method and mobile terminal Download PDFInfo
- Publication number
- CN107155064A CN107155064A CN201710491041.9A CN201710491041A CN107155064A CN 107155064 A CN107155064 A CN 107155064A CN 201710491041 A CN201710491041 A CN 201710491041A CN 107155064 A CN107155064 A CN 107155064A
- Authority
- CN
- China
- Prior art keywords
- main body
- shooting
- image
- touch control
- preview
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
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/62—Control of parameters via user interfaces
-
- 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/67—Focus control based on electronic image sensor signals
Abstract
The embodiments of the invention provide a kind of image pickup method and mobile terminal, it is related to communication technical field, main body can only be amplified together with background with solving existing image pickup method, causes taken background range to diminish, the problem of the image quality of main body is deteriorated.Wherein, the image pickup method includes:Under shooting preview pattern, the shooting main body in shooting preview interface is determined;Detect the first touch control operation in shooting preview interface;If it is default shooting main body size adjustment operation to detect first touch control operation, the size of the shooting main body is adjusted;If receiving shooting instruction, output adjustment shoots the image after main body size.Image pickup method in the embodiment of the present invention is applied in mobile terminal.
Description
Technical field
The present embodiments relate to communication technical field, more particularly to a kind of image pickup method and mobile terminal.
Background technology
With the development of the communication technology, increasing mobile terminal has shoot function, such as smart mobile phone, flat board electricity
Brain etc., mobile Terminals are frivolous, can carry with, so as to bring many convenience to user.
Generally, when user is shot using mobile terminal, first by acquisition for mobile terminal filmed image, acquisition for mobile terminal
Being shown on mobile terminals after filmed image mainly includes background and main body two large divisions in preview screen, preview screen, if with
Family is wanted to be amplified the main body in preview screen, can only amplify main body together with background, so as to cause the taken back of the body
Scape scope diminishes, and the image quality of main body is also deteriorated.
The content of the invention
The embodiment of the present invention provides a kind of image pickup method, can only be by main body together with background one to solve existing image pickup method
Amplification is played, causes taken background range to diminish, the problem of the image quality of main body is deteriorated.
In a first aspect, the embodiments of the invention provide a kind of image pickup method, applied to mobile terminal, the mobile terminal bag
Wide-angle camera and focal length camera are included, the image pickup method includes:Under shooting preview pattern, determine in shooting preview interface
Shooting main body;Detect the first touch control operation in shooting preview interface;If it is default to detect first touch control operation
Main body size adjustment operation is shot, then adjusts the size of the shooting main body;If receiving shooting instruction, output adjustment is shot
Image after main body size.
Second aspect, the embodiment of the present invention additionally provides a kind of mobile terminal, and the mobile terminal includes wide-angle camera
With focal length camera, in addition to:Main body determining module is shot, under shooting preview pattern, determining in shooting preview interface
Shooting main body;First touch control operation detection module, for detecting the first touch control operation in shooting preview interface;Shoot main body
Adjusting module, if being default shooting main body size adjustment operation for detecting first touch control operation, adjustment is described
Shoot the size of main body;Output module, if shooting instruction for receiving, output adjustment shoots the image after main body size.
The third aspect, the embodiment of the present invention additionally provides a kind of mobile terminal, including processor, memory, is stored in institute
The computer program that can be run on memory and on the processor is stated, when the computer program is by the computing device
The step of realizing image pickup method as described in relation to the first aspect
Fourth aspect, the embodiment of the present invention additionally provides a kind of computer-readable recording medium, described computer-readable to deposit
Be stored with computer program on storage media, and shooting as described in relation to the first aspect is realized when the computer program is executed by processor
The step of method.
So, in the embodiment of the present invention, under shooting preview pattern, it may be determined that the shooting main body in shooting preview interface,
After main body determination is shot, the first touch control operation of user's input can be detected in shooting preview interface, the first touch control operation can
The size of shooting main body is adjusted as user and operated, it is mobile when detecting size adjustment operation of the user to shooting main body
Terminal is correspondingly adjusted to the size for shooting main body, and the size of the other positions of shooting preview interface is constant, works as adjustment
To after suitable size, output image.It can be seen that realizing, background is constant, the effect of main body amplification, and mobile terminal includes wide-angle
Camera and focal length camera, can both collect the larger background frame of scope, can also collect the higher main body of image quality.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention
The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the present invention
Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these accompanying drawings
Obtain other accompanying drawings.
Fig. 1 is one of flow chart of image pickup method of the embodiment of the present invention;
Fig. 1 a are one of shooting preview interface schematic diagrames of the image pickup method of the embodiment of the present invention;
Fig. 1 b are the two of the shooting preview interface schematic diagram of the image pickup method of the embodiment of the present invention;
Fig. 2 is the two of the flow chart of the image pickup method of the embodiment of the present invention;
Fig. 3 is the three of the flow chart of the image pickup method of the embodiment of the present invention;
Fig. 4 is the four of the flow chart of the image pickup method of the embodiment of the present invention;
Fig. 5 is the five of the flow chart of the image pickup method of the embodiment of the present invention;
Fig. 6 is the six of the flow chart of the image pickup method of the embodiment of the present invention;
Fig. 7 is the seven of the flow chart of the image pickup method of the embodiment of the present invention;
Fig. 8 is the eight of the flow chart of the image pickup method of the embodiment of the present invention;
Fig. 9 is one of block diagram of mobile terminal of the embodiment of the present invention;
Figure 10 is the two of the block diagram of the mobile terminal of the embodiment of the present invention;
Figure 11 is the three of the block diagram of the mobile terminal of the embodiment of the present invention;
Figure 12 is the four of the block diagram of the mobile terminal of the embodiment of the present invention;
Figure 13 is the five of the block diagram of the mobile terminal of the embodiment of the present invention;
Figure 14 is the six of the block diagram of the mobile terminal of the embodiment of the present invention;
Figure 15 is the seven of the block diagram of the mobile terminal of the embodiment of the present invention;
Figure 16 is the eight of the block diagram of the mobile terminal of the embodiment of the present invention;
Figure 17 is the nine of the block diagram of the mobile terminal of the embodiment of the present invention;
Figure 18 is the structural representation of the mobile terminal of the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
Reference picture 1, shows the flow chart of the image pickup method of one embodiment of the invention, and the image pickup method is applied to movement
Terminal, mobile terminal includes wide-angle camera and focal length camera, and the image pickup method includes:
Step 101:Under shooting preview pattern, the shooting main body in shooting preview interface is determined.
After mobile terminal enters shooting preview pattern, under shooting preview pattern, the bat in shooting preview interface is determined
Main body is taken the photograph, the quantity for shooting main body can be one or more.
Step 102:Detect the first touch control operation in shooting preview interface.
In shooting preview interface, user can input the first touch control operation, and mobile terminal can detect the of user's input
One touch control operation, to perform corresponding action according to the first touch control operation detected.
Step 103:If it is default shooting main body size adjustment operation to detect the first touch control operation, adjustment shoots master
The size of body.
First touch control operation can be default shooting main body when detecting the first touch control operation as polytype operation
During size adjustment operation, mobile terminal is then adjusted according to the first touch control operation to the size for shooting main body.
Step 104:If receiving shooting instruction, output adjustment shoots the image after main body size.
After user is adjusted to suitable size to shooting main body, shooting instruction can be inputted on mobile terminals, it is mobile whole
Termination receives shooting instruction, and output adjustment shoots the image after main body size.
As shown in Figure 1a, it is the personage in Fig. 1 a for example to determine the shooting main body in shooting preview interface, then Fig. 1 b are contracting
The size of personage in design sketch after small shooting main body, Fig. 1 b is less than personage's size in Fig. 1 a.
In the image pickup method of the embodiment of the present invention, under shooting preview pattern, it may be determined that the bat in shooting preview interface
Take the photograph main body, after shooting main body and determining, can detect in shooting preview interface user's input as user to shooting main body
First touch control operation of size adjustment operation, when detecting size adjustment operation of the user to shooting main body, correspondingly to clapping
The size for taking the photograph main body is adjusted, and the size of the other positions of shooting preview interface is constant, when the size adjustment for shooting main body
After suitable, the current image of output shooting preview interface.It can be seen that realizing, background is constant, the effect of main body amplification, and mobile whole
End includes wide-angle camera and focal length camera, can both collect the larger background frame of scope, can also collect image quality
Higher shooting main body, after scaling, image quality is still very high for the higher shooting main body of image quality.
On the basis of Fig. 1, Fig. 2 shows the flow chart of the image pickup method of another embodiment of the present invention, the flow chart
In, also include before step 101:
Step 105:If receiving shoot function enabled instruction, open wide-angle camera and focal length camera carries out preview
IMAQ.
While mobile terminal starts shoot function, while opening wide-angle camera and focal length camera, dual camera
Simultaneously carry out preview image collection, according to the different performance of two cameras, wide-angle camera can gather shooting background scope compared with
Big preview image, and focal length camera can gather and shoot the larger preview image of main body.
Step 106:The preview image that wide-angle camera is gathered is included in shooting preview interface.
When dual camera gathers preview image simultaneously, wide-angle camera is used as pair as main camera, focal length camera
Camera, only shows the preview image that main camera is gathered in shooting preview interface, and that focal length camera is gathered is pre-
Image concealing is look in the preview image that wide-angle camera is gathered, is not shown.
Accordingly, in operation after step 106, it can all be carried out on the preview image that wide-angle camera is gathered.
On the basis of Fig. 2, Fig. 3 shows the flow chart of the image pickup method of another embodiment of the present invention, the flow chart
In also include after step 101:
Step 107:The first preview image and focal length camera for obtaining the photographed scene of wide-angle camera collection respectively are adopted
Second preview image of the photographed scene of collection.
In this step, after main body to be captured is determined, obtain what two cameras were collected in photographed scene respectively
First preview image and the second preview image, wherein, because of the difference of performance, the shooting main body in the first preview image is relative to
Shooting size of main body in two preview images is smaller.
Step 108:Based on the first preview image and the second preview image, the depth information for shooting main body is calculated.
In this step, the depth information for calculating shooting main body refers to the algorithm in technique for taking, to shooting main body
Depth information is calculated, and calculates the identified depth map for shooting main body, and result of calculation is being retained into mobile terminal
Backstage.
Depth map in the embodiment of the present invention is, according to the first preview image and the second preview image, to calculate same characteristic features
What the displacement difference of point was obtained.First preview image and the second preview image are two dimensional images, and depth map is 3-D view, is used for
Record the far and near information of each object in image.
In actual scene, it is to lean on binocular vision resolution depth that human eye, which differentiates the depth of field, object distance.Utilize what is be placed in parallel
Two cameras, can be according to same characteristic features point in two camera images, to calculate this feature point according to triangulation location
Distance.All characteristic points are all calculated into distance value, are mapped on three-dimensional coordinate, just there is each pixel on image and image
Distance and position, all pixels point distance and position composition data be exactly depth map.
Step 109:According to depth information, determine to shoot corresponding first subject image of main body in the second preview image.
The distance and position of each pixel on the image in obtained depth map is calculated according to step 108, obtains shooting main body
In each pixel distance and position, according to the distance and position for shooting each pixel in main body, obtain shooting the corresponding image of main body
Content, will shoot first subject image of the main body correspondence in the second preview image and plucks out to come from the second preview image.
Step 111:Determine the second subject image of the first subject image correspondence position in the first preview image.
According to shooting main body, and the first subject image of main body is shot, determine the first subject image in the first preview graph
The second subject image of correspondence position as in.
Step 112:Second subject image is replaced with into the first subject image.
Second subject image replaces with the first subject image, the first subject image is included on the first preview image, i.e.,
The image of shooting main body shown by shooting preview interface is the first subject image, wherein, the first size of the first subject image
More than the second size of the second subject image.
In the present embodiment, the image that shooting preview interface is shown is correspondence in the first preview image, the first preview image
Shooting main body the second subject image the second size it is smaller, and image quality is not good, in order to reach bust shot main body, does not amplify
The effect of background, while ensureing the image quality of the shooting main body of amplification, can show the first subject image in the second preview image
In shooting preview interface, to be adjusted in real time to the first subject image.
On the basis of Fig. 2, Fig. 4 shows the flow chart of the image pickup method of another embodiment of the present invention, the flow chart
In, step 103 includes:
Step 1031:If it is default shooting main body size adjustment operation to detect the first touch control operation, obtains first and touch
The corresponding scaling for shooting main body of control operation.
In this step, user is obtained first to want to shooting the scaling that main body is adjusted, with according to this contracting
Ratio is put to be adjusted the size for shooting main body.
For example, when the first touch control operation is the slide on the first preset direction, and correspondence bust shot main body, bag
The sliding distance a correspondence bust shots main body 20% of slide is included but is not limited to be set to,;For example, a be 20 pixels away from
From the corresponding relation of specific sliding distance and scaling can arbitrarily be set according to the demand of user.
For example, when the first touch control operation is the slide on the second preset direction, and correspondence reduces and shoots main body, bag
The sliding distance b correspondences for including but being not limited to be set to slide reduce and shoot main body 30%, for example, b be 30 pixels away from
From the corresponding relation of specific sliding distance and scaling can arbitrarily be set according to the demand of user.
Step 1032:Obtain and all feature point coordinates (x, y, z) of main body are shot in the preview image of wide-angle camera collection.
In this step, all feature point coordinates of main body are shot in the preview image that wide-angle camera is gathered by obtaining
The size of main body is shot in (x, y, z), the preview image to obtain wide-angle camera collection.
Step 1033:Obtain and all feature point coordinates (a, b, c) of main body are shot in the preview image of focal length camera collection.
In this step, all feature point coordinates of main body are shot in the preview image that focal length camera is gathered by obtaining
The size of main body is shot in (a, b, c), the preview image to obtain the collection of focal length camera.
Step 1034:According to scaling, by all feature point coordinates (x, y, z) and all feature point coordinates (a, b, c)
Carry out interpolation calculation, all feature point coordinates (X, Y, Z) of the shooting main body after being scaled.
Interpolation calculation is carried out according to coordinate (x, y, z) and coordinate (a, b, c), image difference is generated, in combination with above-mentioned contracting
Ratio is put, all feature point coordinates (X, Y, Z) of the shooting main body after being scaled.
If the interpolation calculation process of the embodiment of the present invention is that the functional value done is inserted in certain interval using function f (x),
Appropriate specific function is made, given value is taken on these aspects, letter is used as with the value of this specific function on other interval aspects
Number f (x) approximation, this method is referred to as interpolation.
Interpolation in above-mentioned algorithm is linear interpolation, and its principle is, if A (i1, b1) B (i2, b2) is 2 points, then point P (I,
B) on the straight line of above-mentioned 2 points determinations.And commonly used in engineering is i between i1 and i2, so that P is between point A, B, therefore claim
" method of linear interpolation ".Mathematical interpolation illustrates that the variable of point P reflections follows the linear relationship of straight line AB reflections.3 points of A, B, P is total to
Line, then by formula (b-b1)/(i-i1)=(b2-b1)/(i2-i1)=straight slope is entered line translation produce P (I, b).
Step 1035:All feature point coordinates (X, Y, Z) based on the shooting main body after scaling, generate the 3rd main body figure
Picture.
According to all feature point coordinates (X, Y, Z) of the shooting main body after scaling, the chi of the shooting main body after being scaled
It is very little, generate the image after the 3rd subject image, that is, the scaling of the shooting main body after adjusting.
Step 1036:The image of shooting main body region in the preview image that wide-angle camera is gathered is replaced with
3rd subject image.
The 3rd subject image after scaling is shown in preview image, completes to shoot the scaling of main body.
In the present embodiment, if the size of the shooting main body after adjustment is different from the preview image that focal length camera is gathered
Shoot the size that main body is shot in the size of main body, and the preview image gathered different from wide-angle camera, it is necessary to again
A new size is determined, therefore, first has to obtain to shoot the image coordinate of main body in the preview image that focal length camera is gathered
The image difference of the image coordinate of main body is shot in the preview image gathered with wide-angle camera, and according to image difference and scaling
Ratio, it is determined that the coordinate of the shooting main body after adjustment, to determine the size of the shooting main body after adjustment according to coordinate.Pantograph ratio
Example may include the multistage ratio such as magnification ratio, diminution ratio and default scale.
On the basis of Fig. 1, Fig. 5 shows the flow chart of the image pickup method of another embodiment of the present invention, in the flow
In figure, step 101 includes:
Step 1011:Detect the second touch control operation in shooting preview interface.
The second touch control operation of user's input is detected, the second touch control operation can be object of the user to shooting preview interface
Manual selection operation, with the subjective consciousness according to user, to choose the object in shooting preview interface, is used as shooting main body.
Step 1012:When detecting the second touch control operation for clicking operation at least one times, to where the second touch control operation
Image-region carry out Object identifying, identify at least one object.
After the second touch control operation is detected, the object selected by user, each clicking operation are recognized in operating area
An object can be chosen, it is corresponding, in this step, one can be chosen even more than object.
Step 1013:At least one object is defined as to shoot main body.
Using one of identification even more than object as shoot main body, to carry out follow-up adjustment.
In the present embodiment there is provided the scheme that a kind of manually determined shoots main body, further, can also it provide single
Subject mode and multiagent pattern, when for single subject mode, user can choose an object as shoot main body, when for lead
During bulk-mode, user can choose multiple objects as shooting main body.
Of course, it is in the present invention, automatic to choose in the scheme for shooting main body, single subject mode and multiagent can be also provided
Pattern, when for single subject mode, can the nearest object of selected distance camera is as main body is shot automatically, when for multiagent mould
During formula, some or all of object in shooting preview interface can be chosen automatically as shooting main body.
When selecting multiple objects as main body is shot, operation can be adjusted to each object respectively, can also shot
At some position of preview interface, operation is adjusted simultaneously to multiple objects.
On the basis of Fig. 1, Fig. 6 shows the flow chart of the image pickup method of another embodiment of the present invention, in flow chart
In, shooting main body size adjustment operation includes:First operation of bust shot main body and the second operation for reducing shooting main body.
Step 103 includes:
Step 1037:If it is the first operation to detect the first touch control operation, according to preset ratio, bust shot main body.
It is amplifieroperation to the specific adjustment operation for shooting main body when the first touch control operation is the first operation.
Step 1038:If it is the second operation to detect the first touch control operation, according to preset ratio, reduces and shoot main body.
It is reduction operation to the specific adjustment operation for shooting main body when the first touch control operation is the second operation.
In the present embodiment, two kinds of operations to the first touch control operation are limited, and are listed specific adjustment mode and are made
For reference.The reduction operation of amplifieroperation and the second operation for the first operation, can meet scaling of the user to shooting main body
Demand.
Exemplary, the first operation is the slide on the first preset direction, and the second operation is on the second preset direction
Slide;Here the first preset direction can be with the second preset direction on the contrary, to distinguish, such as:First preset direction
To be upward, the second preset direction is downward.Preferably, shown in the predeterminated position of shooting preview interface on a vertical direction
Bar is dragged, a sliding block is shown on dragging bar, when detecting the operation of the upward sliding on sliding block, according to default ratio, is put
It is big to shoot main body;When detecting the operation of the slide downward on sliding block, according to default ratio, reduce and shoot main body.
Or, one kind in the first operation and the second operation respectively single-click operation and double click operation.Put specifically, clicking
Greatly, double-click and reduce;Or, diminution is clicked, amplification is double-clicked.
Or, the first operation is double finger kneading operations on the 3rd preset direction, and the second operation is on the 4th preset direction
Double finger kneading operations.Wherein, the 3rd preset direction here can be with the 4th preset direction on the contrary, to distinguish, such as:3rd
Preset direction opens kneading for double refer to, and the 4th preset direction merges kneading for double refer to.
Or, the first operation and the second operation can be other a variety of action types.
On the basis of Fig. 1, Fig. 7 shows the flow chart of the image pickup method of another embodiment of the present invention, in the flow
In figure, after step 102, in addition to:
Step 113:If detecting the first touch control operation to operate for long-press, it is determined that the corresponding mesh in long-press operation position
Mark shoots main body.
In addition, in addition to the type of foregoing first touch control operation, the first touch control operation can be also long-press operation, when detecting length
By operation, it is determined that the corresponding target in long-press operation position shoots main body, to realize the selection that main body is shot to target.
Step 114:Main body is shot to target and is tracked focusing.
In the present embodiment, target is operated to shoot main body by long-press, shooting main body to target is tracked focusing, to lock
Set the goal shooting main body, and when shooting angle changes or shot main body movement, the distance of focus can be with the movement of main body
And change, remain that shooting main body is clear.
On the basis of Fig. 7, Fig. 8 shows the flow chart of the image pickup method of another embodiment of the present invention, in the flow
In figure,
Also include after step 114:
Step 115:Detect that target shoots change in location of the main body in shooting preview interface.
Step 116:If the position for detecting target shooting main body exceeds default central area, prompt message is exported,
Prompt message is used to point out user to adjust composition.
In the present embodiment, it can also detect that target shoots the position of main body in real time in shooting preview interface, when detecting
The position that target shoots main body exceeds behind default central area, may influence whether the effect of image, at this moment can export prompting
Information, for example, " shoot main body and left center, composition please be adjust ", to remind user in shooting preview interface, target
The position for shooting main body exceeds default central area, or even to approach edge, it is necessary to composition be adjusted, so as to help user
Photograph optimal image.
It is noted that the image exported for step 104, if user is also needed to indivedual or multiple in image
Object is adjusted operation, can also choose the object in image, and regard the object of selection as bat according to foregoing correlation step
Take the photograph main body and be adjusted operation, after suitable size is adjusted to, preserve the image after adjustment.
The image pickup method of the embodiment of the present invention, under shooting preview pattern, according to the clicking operation of user, it may be determined that one
Or multiple shooting main bodys, the first touch control operation in shooting preview interface is detected, it is correspondingly right according to the touch control operation detected
The size for shooting main body is adjusted;User can also be operated by shooting the long-press of main body to target, realized to shoot target and led
The tracking focusing of body, when shooting angle changes or shot main body movement, the distance of focus can be with the movement of main body
Change, remain that shooting main body is clear.The position for detecting target shooting main body exceeds default central area, then prompting is used
Family adjusts composition, further optimizes the effect of shooting.
Fig. 9 is the block diagram of the mobile terminal of one embodiment of the invention, and the mobile terminal includes:
Wide-angle camera 1 and focal length camera 2;
Main body determining module 10 is shot, under shooting preview pattern, determining the shooting main body in shooting preview interface;
First touch control operation detection module 20, for detecting the first touch control operation in shooting preview interface;
Main body adjusting module 30 is shot, if being default shooting main body size adjustment behaviour for detecting the first touch control operation
Make, then adjustment shoots the size of main body;
Output module 40, if shooting instruction for receiving, output adjustment shoots the image after main body size.
In the mobile terminal of the embodiment of the present invention, main body determining module 10 is shot under shooting preview pattern, it may be determined that
Shooting main body in shooting preview interface, after main body determination is shot, shooting main body determining module 10 can be in shooting preview interface
First touch control operation of upper detection user input, the first touch control operation can be adjusted to the size for shooting main body as user and operated,
When shooting main body adjusting module 30, which detects user, adjusts operation to the size for shooting main body, correspondingly to shooting the big of main body
It is small to be adjusted, and the size of the other positions of shooting preview interface is constant, after suitable size is adjusted to, output module 40
Output image.It can be seen that realizing, background is constant, the effect of main body amplification, and mobile terminal includes wide-angle camera and focal length is imaged
Head, can both collect the larger background frame of scope, can also collect the higher main body of image quality.
Particularly, main body determining module 10 is shot to can be used for realizing the step 101 in previous embodiment, the first touch control operation
Detection module 20 can be used for realizing the step 102 in previous embodiment, shoots main body adjusting module 30 and can be used for realizing foregoing reality
The step 103 in example is applied, output module 40 can be used for realizing the step 104 in previous embodiment.
On the basis of Fig. 9, Figure 10 is the block diagram of the mobile terminal of another embodiment of the present invention, and the mobile terminal is also wrapped
Include:
Dual camera opening module 50, if for receiving shoot function enabled instruction, opening wide-angle camera 1 and long
Burnt camera 2 carries out preview image collection;
Preview image display module 60, the preview image for wide-angle camera 1 to be gathered is included in shooting preview circle
On face.
Particularly, dual camera opening module 50 can be used for realizing the step 105 in previous embodiment, and preview image is shown
Module 60 can be used for realizing the step 106 in previous embodiment.
On the basis of Figure 10, Figure 11 is the block diagram of the mobile terminal of another embodiment of the present invention, and the mobile terminal is also
Including:
Preview image acquisition module 70, the first preview graph of the photographed scene for obtaining the collection of wide-angle camera 1 respectively
Second preview image of the photographed scene that picture and focal length camera 2 are gathered;
Depth information computing module 80, for based on the first preview image and the second preview image, calculating and shooting main body
Depth information;
First subject image determining module 90, for according to depth information, determining to shoot main body pair in the second preview image
The first subject image answered;
Second subject image determining module 100, determine the first subject image in the first preview image correspondence position
Two subject images;
Subject image replacement module 110, for the second subject image to be replaced with into the first subject image;
Wherein, the first size of the first subject image is more than the second size of the second subject image.
Particularly, preview image acquisition module 70 can be used for realizing the step 107 in previous embodiment, and depth information is calculated
Module 80 can be used for realizing the step 108 in previous embodiment, and the first subject image determining module 90 can be used for realizing foregoing reality
The step 109 in example is applied, the second subject image determining module 100 can be used for realizing the step 111 in previous embodiment, main body figure
As replacement module 110 can be used for realizing the step 112 in previous embodiment.
On the basis of Figure 10, Figure 12 is the block diagram of the mobile terminal of another embodiment of the present invention, in the mobile terminal
In, shooting main body adjusting module 30 includes:
Scaling acquiring unit 31, for obtaining the corresponding scaling for shooting main body of the first touch control operation;
The first coordinate of main body acquiring unit 32 is shot, master is shot in the preview image for obtaining the collection of wide-angle camera 1
All feature point coordinates (x, y, z) of body;
The second coordinate of main body acquiring unit 33 is shot, master is shot in the preview image for obtaining the collection of focal length camera 2
All feature point coordinates (a, b, c) of body;
Shoot the coordinate acquiring unit 34 of main body the 3rd, for according to scaling, by all feature point coordinates (x, y, z) and
All feature point coordinates (a, b, c) carry out interpolation calculations, all feature point coordinates of the shooting main body after being scaled (X, Y,
Z);
3rd subject image generation unit 35, for based on the shooting main body after scaling all feature point coordinates (X, Y,
Z), the 3rd subject image is generated;
3rd subject image replacement unit 36, for the shooting main body in the preview image that is gathered wide-angle camera 1
The image of region replaces with the 3rd subject image.
Particularly, scaling acquiring unit 31 can be used for realizing step 1031 in previous embodiment, shoot main body the
One coordinate acquiring unit 32 can be used for realizing the step 1032 in previous embodiment, and shooting the second coordinate of main body acquiring unit 33 can
For realizing the step 1033 in previous embodiment, shoot the coordinate acquiring unit 34 of main body the 3rd and can be used for realizing previous embodiment
In step 1034, the 3rd subject image generation unit 35 can be used for realizing step 1035 in previous embodiment, the 3rd main body
Image replacing unit 36 can be used for realizing the step 1036 in previous embodiment.
On the basis of Fig. 9, Figure 13 is the block diagram of the mobile terminal of another embodiment of the present invention, in the mobile terminal
In, shooting main body determining module 10 includes:
Second touch control operation detection unit 11, for detecting the second touch control operation in shooting preview interface;
Object identification unit 12, for when detecting the second touch control operation for clicking operation at least one times, being touched to second
Image-region where controlling operation carries out Object identifying, identifies at least one object;
Object determining unit 13, for being defined as at least one object to shoot main body.
Particularly, the second touch control operation detection unit 11 can be used for realizing the step 1011 in previous embodiment, and object is known
Other unit 12 can be used for realizing the step 1012 in previous embodiment, and object determining unit 13 can be used for realizing in previous embodiment
Step 1013.
On the basis of Fig. 9, Figure 14 is the block diagram of the mobile terminal of another embodiment of the present invention, in the mobile terminal
In, shooting main body size adjustment operation includes:First operation of bust shot main body and the second operation for reducing shooting main body;Clap
Taking the photograph main body adjusting module 30 includes:
Amplifying unit 37, if being the first operation for detecting the first touch control operation, according to preset ratio, bust shot
Main body;
Reducing unit 38, if being the second operation for detecting the first touch control operation, according to preset ratio, reduces and shoots
Main body.
Particularly, amplifying unit 37 can be used for realizing the step 1037 in previous embodiment, and reducing unit 38 can be used for real
Step 1038 in existing previous embodiment.
Wherein, the first operation is the slide on the first preset direction, and the second operation is the cunning on the second preset direction
Dynamic operation;
Or, one kind in the first operation and the second operation respectively single-click operation and double click operation;
Or, the first operation is double finger kneading operations on the 3rd preset direction, and the second operation is on the 4th preset direction
Double finger kneading operations.
On the basis of Fig. 9, Figure 15 is the block diagram of the mobile terminal of another embodiment of the present invention, and the mobile terminal is also wrapped
Include:
Long-press operates detection module 120, if being operated for detecting the first touch control operation for long-press, it is determined that long-press is operated
The corresponding target in position shoots main body;
Focusing module 130 is followed the trail of, focusing is tracked for shooting main body to target.
Particularly, long-press operation detection module 120 can be used for realizing the step 113 in previous embodiment, follow the trail of focusing mould
Block 130 can be used for realizing the step 114 in previous embodiment.
On the basis of Figure 15, Figure 16 is the block diagram of the mobile terminal of another embodiment of the present invention, and the mobile terminal is also
Including:
Position detecting module 140, for detecting that target shoots change in location of the main body in shooting preview interface;
Prompt message output module 150, if the position that main body is shot for detecting target exceeds default central area,
Prompt message is then exported, prompt message is used to point out user to adjust composition.
Particularly, long-press operation detection module 140 can be used for realizing the step 115 in previous embodiment, follow the trail of focusing mould
Block 150 can be used for realizing the step 116 in previous embodiment.
It is noted that the corresponding step that can be used for for device embodiment, each structure in implementation method embodiment.
The mobile terminal of the embodiment of the present invention, under shooting preview pattern, it may be determined that the shooting master in shooting preview interface
Body, after main body determination is shot, can detect the first touch control operation of user's input, the first touch control operation in shooting preview interface
The size of shooting main body can be adjusted as user and operated, when detecting size adjustment operation of the user to shooting main body, moved
Dynamic terminal is correspondingly adjusted to the size for shooting main body, and the size of the other positions of shooting preview interface is constant, works as tune
It is whole to arrive after suitable size, output image.It can be seen that realizing, background is constant, the effect of main body amplification, and mobile terminal is included extensively
Angle camera and focal length camera, can both collect the larger background frame of scope, can also collect the higher master of image quality
Body.
Another embodiment of the present invention additionally provides a kind of mobile terminal, including processor, and memory is stored on a memory
And the computer program that can be run on a processor, any image pickup method as described above is realized when computer program is executed by processor
Embodiment each process, and can reach identical technique effect, to avoid repeating, repeat no more here.
Another embodiment of the present invention is additionally provided deposits on a kind of computer-readable recording medium, computer-readable recording medium
Computer program is contained, each mistake of the embodiment of any image pickup method as described above is realized in shooting processing when being executed by processor
Journey, and identical technique effect can be reached, to avoid repeating, repeat no more here.Wherein, described computer-readable storage medium
Matter, such as read-only storage (Read-Only Memory, abbreviation ROM), random access memory (Random Access
Memory, abbreviation RAM), magnetic disc or CD etc..
Figure 17 is the block diagram of the mobile terminal of another embodiment of the present invention.Mobile terminal 800 shown in Figure 17 includes:Extremely
A few processor 801, memory 802, at least one network interface 804 and other users interface 803, focal length camera 806
With wide-angle camera 807.Each component in mobile terminal 800 is coupled by bus system 805.It is understood that bus
System 805 is used to realize the connection communication between these components.Bus system 805 is in addition to including data/address bus, in addition to electricity
Source bus, controlling bus and status signal bus in addition.But for the sake of clear explanation, be in fig. 17 all designated as various buses always
Linear system system 805.
Wherein, user interface 803 can include display, keyboard or pointing device (for example, mouse, trace ball
(trackball), touch-sensitive plate or touch-screen etc..
It is appreciated that the memory 802 in the embodiment of the present invention can be volatile memory or nonvolatile memory,
Or may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read-
OnlyMemory, ROM), programmable read only memory (ProgrammableROM, PROM), Erasable Programmable Read Only Memory EPROM
(ErasablePROM, EPROM), Electrically Erasable Read Only Memory (ElectricallyEPROM, EEPROM) dodge
Deposit.Volatile memory can be random access memory (RandomAccessMemory, RAM), and it is used as outside slow at a high speed
Deposit.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM
(StaticRAM, SRAM), dynamic random access memory (DynamicRAM, DRAM), Synchronous Dynamic Random Access Memory
(SynchronousDRAM, SDRAM), double data speed synchronous dynamic RAM (DoubleDataRate
SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links
Dynamic random access memory (SynchlinkDRAM, SLDRAM) and direct rambus random access memory
(DirectRambusRAM, DRRAM).The memory 802 of the system and method for description of the embodiment of the present invention is intended to include but not limited
In these memories with any other suitable type.
In some embodiments, memory 802 stores following element, can perform module or data structure, or
Their subset of person, or their superset:Operating system 8021 and application program 8022.
Wherein, operating system 8021, comprising various system programs, such as ccf layer, core library layer, driving layer, are used for
Realize various basic businesses and handle hardware based task.Application program 8022, includes various application programs, such as media
Player (MediaPlayer), browser (Browser) etc., for realizing various applied business.Realize embodiment of the present invention side
The program of method may be embodied in application program 8022.
In embodiments of the present invention, mobile terminal 800 also includes:Storage on a memory 802 and can be on processor 801
The shooting control program of operation, can be the shooting control program in application program 8022 specifically, shoot control program and located
Reason device 801 realizes following steps when performing:Under shooting preview pattern, the shooting main body in shooting preview interface is determined;Detection
The first touch control operation in shooting preview interface;If it is default shooting main body size adjustment to detect first touch control operation
Operation, then adjust the size of the shooting main body;If receiving shooting instruction, output adjustment shoots the figure after main body size
Picture.
The method that the embodiments of the present invention are disclosed can apply in processor 801, or be realized by processor 801.
Processor 801 is probably a kind of IC chip, the disposal ability with signal.In implementation process, the above method it is each
Step can be completed by the integrated logic circuit of the hardware in processor 801 or the instruction of software form.Above-mentioned processing
Device 801 can be general processor, digital signal processor (DigitalSignalProcessor, DSP), application specific integrated circuit
(ApplicationSpecific IntegratedCircuit, ASIC), ready-made programmable gate array
(FieldProgrammableGateArray, FPGA) or other PLDs, discrete gate or transistor logic
Device, discrete hardware components.It can realize or perform disclosed each method, step and the box in the embodiment of the present invention
Figure.General processor can be microprocessor or the processor can also be any conventional processor etc..With reference to the present invention
The step of method disclosed in embodiment, can be embodied directly in hardware decoding processor and perform completion, or use decoding processor
In hardware and software module combination perform completion.Software module can be located at random access memory, and flash memory, read-only storage can
The ripe computer-readable recording medium in this area such as program read-only memory or electrically erasable programmable memory, register
In.The computer-readable recording medium is located at memory 702, and processor 801 reads the information in memory 802, hard with reference to its
The step of part completes the above method.Specifically, be stored with computer program, computer program on the computer-readable recording medium
The step of embodiment of any image pickup method as described above being realized when being performed by processor 801.
It is understood that the embodiment of the present invention description these embodiments can with hardware, software, firmware, middleware,
Microcode or its combination are realized.Realized for hardware, processing unit can be realized in one or more application specific integrated circuits
(ApplicationSpecificIntegratedCircuits, ASIC), digital signal processor
(DigitalSignalProcessing, DSP), digital signal processing appts (DSPDevice, DSPD), programmable logic device
(ProgrammableLogicDevice, PLD), field programmable gate array (Field-ProgrammableGateArray,
FPGA), general processor, controller, microcontroller, microprocessor, other electronics lists for performing herein described function
In member or its combination.
For software realize, can by perform the module (such as process, function) of function described in the embodiment of the present invention come
Realize the technology described in the embodiment of the present invention.Software code is storable in memory and by computing device.Memory can
To realize within a processor or outside processor.
Alternatively, following steps can be also realized when computer program is performed by processor 801:If receiving shoot function to open
Dynamic instruction, then open wide-angle camera and focal length camera carries out preview image collection;The wide-angle camera is gathered
Preview image is shown in shooting preview interface.
Alternatively, following steps can be also realized when computer program is performed by processor 801:Wide-angle camera is obtained respectively
Second preview image of the photographed scene of the first preview image and focal length the camera collection of the photographed scene of collection;Based on described
First preview image and second preview image, calculate the depth information for shooting main body;According to the depth information, really
Corresponding first subject image of main body is shot in fixed second preview image;Determine first subject image described first
Second subject image of correspondence position in preview image;Second subject image is replaced with into first subject image;Its
In, the first size of first subject image is more than the second size of second subject image.
Alternatively, as another embodiment, following steps can be also realized when computer program is performed by processor 801:
Obtain the corresponding scaling for shooting main body of first touch control operation;Obtain the preview image of the wide-angle camera collection
Middle shooting all feature point coordinates (x, y, z) of main body;Main body institute is shot in the preview image for obtaining the focal length camera collection
There is feature point coordinates (a, b, c);According to the scaling, by all feature point coordinates (x, y, z) and all spies
Levy point coordinates (a, b, c) and carry out interpolation calculation, all feature point coordinates (X, Y, Z) of the shooting main body after being scaled;It is based on
All feature point coordinates (X, Y, Z) of shooting main body after the scaling, generate the 3rd subject image;By the wide-angle camera
The image of shooting main body region in the preview image gathered replaces with the 3rd subject image.
Alternatively, as another embodiment, following steps can be also realized when computer program is performed by processor 801:
Detect the second touch control operation in shooting preview interface;It is clicking operation at least one times when detecting second touch control operation
When, Object identifying is carried out to the image-region where second touch control operation, at least one object is identified;By described at least
One object is defined as shooting main body.
Alternatively, as another embodiment, the shooting main body size adjustment operation includes:The of bust shot main body
One operation and the second operation for reducing shooting main body, can also realize following steps when computer program is performed by processor 801:If
It is the described first operation to detect first touch control operation, then according to preset ratio, amplifies the shooting main body;If detecting
First touch control operation is the described second operation, then according to preset ratio, reduces the shooting main body.
Alternatively, as another embodiment, first operation is the slide on the first preset direction, described the
Two operations are the slide on the second preset direction;Or, first operation and the described second operation are respectively to click behaviour
Make and one kind in double click operation;Or, the first operation is double finger kneading operations on the 3rd preset direction, second operation
For double finger kneading operations on the 4th preset direction.
Alternatively, as another embodiment, following steps can be also realized when computer program is performed by processor 801:
Operated if detecting first touch control operation for long-press, it is determined that the long-press operates the corresponding target in position to shoot master
Body;Main body is shot to the target and is tracked focusing.
Alternatively, as another embodiment, following steps can be also realized when computer program is performed by processor 801:
Detect that the target shoots change in location of the main body in shooting preview interface;If detecting the position that the target shoots main body
Beyond default central area, then prompt message is exported, the prompt message is used to point out user to adjust composition.
Mobile terminal 800 can realize each process that mobile terminal is realized in previous embodiment, to avoid repeating, here
Repeat no more.
The mobile terminal of the embodiment of the present invention, under shooting preview pattern, it may be determined that the shooting master in shooting preview interface
Body, after main body determination is shot, can detect the first touch control operation of user's input, the first touch control operation in shooting preview interface
The size of shooting main body can be adjusted as user and operated, when detecting size adjustment operation of the user to shooting main body, moved
Dynamic terminal is correspondingly adjusted to the size for shooting main body, and the size of the other positions of shooting preview interface is constant, works as tune
It is whole to arrive after suitable size, output image.It can be seen that realizing, background is constant, the effect of main body amplification, and mobile terminal is included extensively
Angle camera and focal length camera, can both collect the larger background frame of scope, can also collect the higher master of image quality
Body.
Figure 18 is the structural representation of the mobile terminal of another embodiment of the present invention.Specifically, the mobile end in Figure 18
End 900 can be mobile phone, tablet personal computer, personal digital assistant (PersonalDigital Assistant, PDA) or vehicle mounted electric
Brain etc..
Mobile terminal 900 in Figure 18 includes radio frequency (RadioFrequency, RF) circuit 910, memory 920, input
Unit 930, display unit 940, processor 960, voicefrequency circuit 970, WiFi (WirelessFidelity) module 980, power supply
990th, focal length camera 9100 and wide-angle camera 9200.
Wherein, input block 930 can be used for the numeral or character information for receiving user's input, and produce and mobile terminal
The signal input that 900 user is set and function control is relevant.Specifically, in the embodiment of the present invention, the input block 930 can
With including contact panel 931.Contact panel 931, also referred to as touch-screen, collect touch operation of the user on or near it
(such as user uses the operations of any suitable object or annex on contact panel 931 such as finger, stylus), and according to advance
The formula of setting drives corresponding attachment means.Optionally, contact panel 931 may include touch detecting apparatus and touch controller
Two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation is brought, by signal
Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate,
Give the processor 960 again, and the order sent of reception processing device 960 and can be performed.Furthermore, it is possible to using resistance-type,
The polytypes such as condenser type, infrared ray and surface acoustic wave realize contact panel 931.Except contact panel 931, input block
930 can also include other input equipments 932, and other input equipments 932 can include but is not limited to physical keyboard, function key
One or more in (such as volume control button, switch key etc.), trace ball, mouse, action bars etc..
Wherein, display unit 940 can be used for information and the movement for showing the information inputted by user or being supplied to user
The various menu interfaces of terminal 900.Display unit 940 may include display panel 941, optionally, can use LCD or organic hairs
The forms such as optical diode (OrganicLight-EmittingDiode, OLED) configure display panel 941.
It should be noted that contact panel 931 can cover display panel 941, touch display screen is formed, when touch display screen inspection
Measure after the touch operation on or near it, processor 960 is sent to determine the type of touch event, with preprocessor
960 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and conventional control viewing area.The Application Program Interface viewing area
And arrangement mode of the conventional control viewing area is not limited, can be arranged above and below, left-right situs etc. can distinguish two and show
Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with
The interface element such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area
It can also be the empty interface not comprising any content.The conventional control viewing area is used to show the higher control of utilization rate, for example,
Application icons such as settings button, interface numbering, scroll bar, phone directory icon etc..
Wherein processor 960 is the control centre of mobile terminal 900, utilizes various interfaces and connection whole mobile phone
Various pieces, software program and/or module in first memory 921 are stored in by operation or execution, and call storage
Data in second memory 922, perform the various functions and processing data of mobile terminal 900, so as to mobile terminal 900
Carry out integral monitoring.Optionally, processor 960 may include one or more processing units.
In embodiments of the present invention, mobile terminal 900 also includes:It is stored in memory 920 and can be transported on processor 960
Capable shooting control program, can be the shooting control program in application program specifically, shoot control program by processor
960 realize following steps when performing:Under shooting preview pattern, the shooting main body in shooting preview interface is determined;Detection is shot
The first touch control operation in preview interface;If it is default shooting main body size adjustment behaviour to detect first touch control operation
Make, then adjust the size of the shooting main body;If receiving shooting instruction, output adjustment shoots the image after main body size.
Alternatively, following steps can be also realized when computer program is performed by processor 960:If receiving shoot function to open
Dynamic instruction, then open wide-angle camera and focal length camera carries out preview image collection;The wide-angle camera is gathered
Preview image is shown in shooting preview interface.
Alternatively, following steps can be also realized when computer program is performed by processor 960:Wide-angle camera is obtained respectively
Second preview image of the photographed scene of the first preview image and focal length the camera collection of the photographed scene of collection;Based on described
First preview image and second preview image, calculate the depth information for shooting main body;According to the depth information, really
Corresponding first subject image of main body is shot in fixed second preview image;Determine first subject image described first
Second subject image of correspondence position in preview image;Second subject image is replaced with into first subject image;Its
In, the first size of first subject image is more than the second size of second subject image.
Alternatively, as another embodiment, following steps can be also realized when computer program is performed by processor 960:
Obtain the corresponding scaling for shooting main body of first touch control operation;Obtain the preview image of the wide-angle camera collection
Middle shooting all feature point coordinates (x, y, z) of main body;Main body institute is shot in the preview image for obtaining the focal length camera collection
There is feature point coordinates (a, b, c);According to the scaling, by all feature point coordinates (x, y, z) and all spies
Levy point coordinates (a, b, c) and carry out interpolation calculation, all feature point coordinates (X, Y, Z) of the shooting main body after being scaled;It is based on
All feature point coordinates (X, Y, Z) of shooting main body after the scaling, generate the 3rd subject image;By the wide-angle camera
The image of shooting main body region in the preview image gathered replaces with the 3rd subject image.
Alternatively, as another embodiment, following steps can be also realized when computer program is performed by processor 960:
Detect the second touch control operation in shooting preview interface;It is clicking operation at least one times when detecting second touch control operation
When, Object identifying is carried out to the image-region where second touch control operation, at least one object is identified;By described at least
One object is defined as shooting main body.
Alternatively, as another embodiment, the shooting main body size adjustment operation includes:The of bust shot main body
One operation and the second operation for reducing shooting main body, can also realize following steps when computer program is performed by processor 960:If
It is the described first operation to detect first touch control operation, then according to preset ratio, amplifies the shooting main body;If detecting
First touch control operation is the described second operation, then according to preset ratio, reduces the shooting main body.
Alternatively, as another embodiment, first operation is the slide on the first preset direction, described the
Two operations are the slide on the second preset direction;Or, first operation and the described second operation are respectively to click behaviour
Make and one kind in double click operation;Or, the first operation is double finger kneading operations on the 3rd preset direction, second operation
For double finger kneading operations on the 4th preset direction.
Alternatively, as another embodiment, following steps can be also realized when computer program is performed by processor 960:
Operated if detecting first touch control operation for long-press, it is determined that the long-press operates the corresponding target in position to shoot master
Body;Main body is shot to the target and is tracked focusing.
Alternatively, as another embodiment, following steps can be also realized when computer program is performed by processor 960:
Detect that the target shoots change in location of the main body in shooting preview interface;If detecting the position that the target shoots main body
Beyond default central area, then prompt message is exported, the prompt message is used to point out user to adjust composition.
The mobile terminal of the embodiment of the present invention, under shooting preview pattern, it may be determined that the shooting master in shooting preview interface
Body, after main body determination is shot, can detect the first touch control operation of user's input, the first touch control operation in shooting preview interface
The size of shooting main body can be adjusted as user and operated, when detecting size adjustment operation of the user to shooting main body, moved
Dynamic terminal is correspondingly adjusted to the size for shooting main body, and the size of the other positions of shooting preview interface is constant, works as tune
It is whole to arrive after suitable size, output image.It can be seen that realizing, background is constant, the effect of main body amplification, and mobile terminal is included extensively
Angle camera and focal length camera, can both collect the larger background frame of scope, can also collect the higher master of image quality
Body.
Those of ordinary skill in the art it is to be appreciated that with reference to disclosed in the embodiment of the present invention embodiment description it is each
The unit and algorithm steps of example, can be realized with the combination of electronic hardware or computer software and electronic hardware.These
Function is performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Specialty
Technical staff can realize described function to each specific application using distinct methods, but this realization should not
Think beyond the scope of this invention.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, others can be passed through
Mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, is only
A kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or
Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual
Between coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of device or unit by some interfaces
Connect, can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized using in the form of SFU software functional unit and is used as independent production marketing or in use, can be with
It is stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially in other words
The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a computer-readable recording medium, including some instructions are to cause a computer equipment
(can be personal computer, server, or network equipment etc.) perform each of the invention embodiment methods described whole or
Part steps.And foregoing computer-readable recording medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are each
Planting can be with the medium of store program codes.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.
Claims (20)
1. a kind of image pickup method, applied to mobile terminal, it is characterised in that the mobile terminal includes wide-angle camera and focal length
Camera, the image pickup method includes:
Under shooting preview pattern, the shooting main body in shooting preview interface is determined;
Detect the first touch control operation in shooting preview interface;
If it is default shooting main body size adjustment operation to detect first touch control operation, the shooting main body is adjusted
Size;
If receiving shooting instruction, output adjustment shoots the image after main body size.
2. according to the method described in claim 1, it is characterised in that the step for determining the shooting main body in shooting preview interface
Before rapid, in addition to:
If receiving shoot function enabled instruction, open wide-angle camera and focal length camera carries out preview image collection;
The preview image that the wide-angle camera is gathered is included in shooting preview interface.
3. method according to claim 2, it is characterised in that the step of the shooting main body in the determination shooting preview interface
After rapid, in addition to:
The first preview image of the photographed scene of wide-angle camera collection and the photographed scene of focal length camera collection are obtained respectively
The second preview image;
Based on first preview image and second preview image, the depth information for shooting main body is calculated;
According to the depth information, determine to shoot corresponding first subject image of main body in second preview image;
Determine the second subject image of first subject image correspondence position in first preview image;
Second subject image is replaced with into first subject image;
Wherein, the first size of first subject image is more than the second size of second subject image.
4. method according to claim 2, it is characterised in that the step of the size that the adjustment is described to shoot main body, bag
Include:
Obtain the corresponding scaling for shooting main body of first touch control operation;
All feature point coordinates (x, y, z) of main body are shot in the preview image for obtaining the wide-angle camera collection;
All feature point coordinates (a, b, c) of main body are shot in the preview image for obtaining the focal length camera collection;
According to the scaling, all feature point coordinates (x, y, z) and all feature point coordinates (a, b, c) are entered
Row interpolation is calculated, all feature point coordinates (X, Y, Z) of the shooting main body after being scaled;
All feature point coordinates (X, Y, Z) based on the shooting main body after the scaling, generate the 3rd subject image;
The image of shooting main body region in the preview image that the wide-angle camera is gathered replaces with the described 3rd
Subject image.
5. according to the method described in claim 1, it is characterised in that the step for determining the shooting main body in shooting preview interface
Suddenly, including:
Detect the second touch control operation in shooting preview interface;
When detecting second touch control operation for clicking operation at least one times, to the image where second touch control operation
Region carries out Object identifying, identifies at least one object;
At least one described object is defined as to shoot main body.
6. according to the method described in claim 1, it is characterised in that the shooting main body size adjustment operation includes:Amplification is clapped
Take the photograph the first operation of main body and reduce the second operation for shooting main body;
If it is described detect first touch control operation for it is default shooting main body size adjustment operation, adjust it is described shoot master
The step of size of body, including:
If it is the described first operation to detect first touch control operation, according to preset ratio, amplify the shooting main body;
If it is the described second operation to detect first touch control operation, according to preset ratio, the shooting main body is reduced.
7. method according to claim 6, it is characterised in that
First operation is the slide on the first preset direction, and second operation is the slip on the second preset direction
Operation;
Or, first operation and the described second operation are respectively one kind in single-click operation and double click operation;
Or, the first operation is double finger kneading operations on the 3rd preset direction, and second operation is on the 4th preset direction
Double finger kneading operations.
8. according to the method described in claim 1, it is characterised in that the first touch control operation in the detection shooting preview interface
The step of after, in addition to:
Operated if detecting first touch control operation for long-press, it is determined that the long-press operates the corresponding target in position to clap
Take the photograph main body;
Main body is shot to the target and is tracked focusing.
9. method according to claim 8, it is characterised in that described that focusing is tracked to target shooting main body
After step, in addition to:
Detect that the target shoots change in location of the main body in shooting preview interface;
If the position for detecting the target shooting main body exceeds default central area, prompt message, the prompting are exported
Information is used to point out user to adjust composition.
10. a kind of mobile terminal, it is characterised in that the mobile terminal includes wide-angle camera and focal length camera, in addition to:
Main body determining module is shot, under shooting preview pattern, determining the shooting main body in shooting preview interface;
First touch control operation detection module, for detecting the first touch control operation in shooting preview interface;
Main body adjusting module is shot, if being default shooting main body size adjustment behaviour for detecting first touch control operation
Make, then adjust the size of the shooting main body;
Output module, if shooting instruction for receiving, output adjustment shoots the image after main body size.
11. mobile terminal according to claim 10, it is characterised in that also include:
Dual camera opening module, if for receiving shoot function enabled instruction, opening wide-angle camera and focal length shooting
Head carries out preview image collection;
Preview image display module, the preview image for the wide-angle camera to be gathered is included in shooting preview interface
On.
12. mobile terminal according to claim 11, it is characterised in that also include:
Preview image acquisition module, the first preview image and focal length for obtaining the photographed scene that wide-angle camera is gathered respectively
Second preview image of the photographed scene of camera collection;
Depth information computing module, for based on first preview image and second preview image, calculating described shoot
The depth information of main body;
First subject image determining module, for according to the depth information, determining to shoot main body in second preview image
Corresponding first subject image;
Second subject image determining module, determine first subject image in first preview image correspondence position
Two subject images;
Subject image replacement module, for second subject image to be replaced with into first subject image;
Wherein, the first size of first subject image is more than the second size of second subject image.
13. mobile terminal according to claim 11, it is characterised in that the shooting main body adjusting module includes:
Scaling acquiring unit, for obtaining the corresponding scaling for shooting main body of first touch control operation;
Main body the first coordinate acquiring unit is shot, main body institute is shot in the preview image for obtaining the wide-angle camera collection
There is feature point coordinates (x, y, z);
Main body the second coordinate acquiring unit is shot, main body institute is shot in the preview image for obtaining the focal length camera collection
There is feature point coordinates (a, b, c);
The coordinate acquiring unit of main body the 3rd is shot, for according to the scaling, by all feature point coordinates (x, y, z)
Interpolation calculation, all feature point coordinates of the shooting main body after being scaled are carried out with all feature point coordinates (a, b, c)
(X,Y,Z);
3rd subject image generation unit, for all feature point coordinates (X, Y, Z) based on the shooting main body after the scaling,
Generate the 3rd subject image;
3rd subject image replacement unit, for where the shooting main body in the preview image that is gathered the wide-angle camera
The image in region replaces with the 3rd subject image.
14. mobile terminal according to claim 10, it is characterised in that the shooting main body determining module includes:
Second touch control operation detection unit, for detecting the second touch control operation in shooting preview interface;
Object identification unit, for when detecting second touch control operation for clicking operation at least one times, to described second
Image-region where touch control operation carries out Object identifying, identifies at least one object;
Object determining unit, for being defined as at least one described object to shoot main body.
15. mobile terminal according to claim 10, it is characterised in that the shooting main body size adjustment operation includes:
First operation of bust shot main body and the second operation for reducing shooting main body;
The shooting main body adjusting module includes:
Amplifying unit, if being the described first operation for detecting first touch control operation, according to preset ratio, amplifies institute
State shooting main body;
Reducing unit, if being the described second operation for detecting first touch control operation, according to preset ratio, reduces institute
State shooting main body.
16. mobile terminal according to claim 15, it is characterised in that
First operation is the slide on the first preset direction, and second operation is the slip on the second preset direction
Operation;
Or, first operation and the described second operation are respectively one kind in single-click operation and double click operation;
Or, the first operation is double finger kneading operations on the 3rd preset direction, and second operation is on the 4th preset direction
Double finger kneading operations.
17. mobile terminal according to claim 10, it is characterised in that also include:
Long-press operates detection module, if being operated for detecting first touch control operation for long-press, it is determined that the long-press behaviour
Make the corresponding target in position and shoot main body;
Focusing module is followed the trail of, focusing is tracked for shooting main body to the target.
18. mobile terminal according to claim 17, it is characterised in that also include:
Position detecting module, for detecting that the target shoots change in location of the main body in shooting preview interface;
Prompt message output module, if the position that main body is shot for detecting the target exceeds default central area,
Prompt message is exported, the prompt message is used to point out user to adjust composition.
19. a kind of mobile terminal, it is characterised in that including processor, memory is stored on the memory and can be described
The computer program run on processor, the computer program is realized during the computing device as in claim 1 to 9
The step of image pickup method described in any one.
20. a kind of computer-readable recording medium, it is characterised in that be stored with computer on the computer-readable recording medium
Program, the computer program realizes the step of image pickup method as claimed in any one of claims 1-9 wherein when being executed by processor
Suddenly.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710491041.9A CN107155064B (en) | 2017-06-23 | 2017-06-23 | A kind of image pickup method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710491041.9A CN107155064B (en) | 2017-06-23 | 2017-06-23 | A kind of image pickup method and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107155064A true CN107155064A (en) | 2017-09-12 |
CN107155064B CN107155064B (en) | 2019-11-05 |
Family
ID=59795775
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710491041.9A Active CN107155064B (en) | 2017-06-23 | 2017-06-23 | A kind of image pickup method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107155064B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107707824A (en) * | 2017-10-27 | 2018-02-16 | 广东欧珀移动通信有限公司 | Image pickup method, device, storage medium and electronic equipment |
CN107948505A (en) * | 2017-11-14 | 2018-04-20 | 维沃移动通信有限公司 | A kind of panorama shooting method and mobile terminal |
CN108024056A (en) * | 2017-11-30 | 2018-05-11 | 广东欧珀移动通信有限公司 | Imaging method and device based on dual camera |
CN109639997A (en) * | 2018-12-20 | 2019-04-16 | Oppo广东移动通信有限公司 | Image processing method, electronic device and medium |
CN111556248A (en) * | 2020-05-09 | 2020-08-18 | Tcl移动通信科技(宁波)有限公司 | Shooting method, shooting device, storage medium and mobile terminal |
CN111770277A (en) * | 2020-07-31 | 2020-10-13 | RealMe重庆移动通信有限公司 | Auxiliary shooting method, terminal and storage medium |
CN112839161A (en) * | 2019-11-22 | 2021-05-25 | 北京小米移动软件有限公司 | Shooting method and device |
WO2024061134A1 (en) * | 2022-09-19 | 2024-03-28 | 维沃移动通信有限公司 | Photographing method and apparatus, electronic device, and medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104135612A (en) * | 2014-07-11 | 2014-11-05 | 深圳市中兴移动通信有限公司 | A shooting method and a shooting device with an adjustable location of a shot object |
CN106027900A (en) * | 2016-06-22 | 2016-10-12 | 维沃移动通信有限公司 | Photographing method and mobile terminal |
CN106131418A (en) * | 2016-07-19 | 2016-11-16 | 腾讯科技(深圳)有限公司 | A kind of composition control method, device and photographing device |
CN106254744A (en) * | 2016-09-23 | 2016-12-21 | 成都创慧科达科技有限公司 | A kind of external dual camera of mobile terminal |
CN106454121A (en) * | 2016-11-11 | 2017-02-22 | 努比亚技术有限公司 | Double-camera shooting method and device |
CN106791419A (en) * | 2016-12-30 | 2017-05-31 | 大连海事大学 | A kind of supervising device and method for merging panorama and details |
CN106791377A (en) * | 2016-11-29 | 2017-05-31 | 广东欧珀移动通信有限公司 | Control method, control device and electronic installation |
CN106878949A (en) * | 2017-02-27 | 2017-06-20 | 努比亚技术有限公司 | A kind of positioning terminal based on dual camera, system and method |
-
2017
- 2017-06-23 CN CN201710491041.9A patent/CN107155064B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104135612A (en) * | 2014-07-11 | 2014-11-05 | 深圳市中兴移动通信有限公司 | A shooting method and a shooting device with an adjustable location of a shot object |
CN106027900A (en) * | 2016-06-22 | 2016-10-12 | 维沃移动通信有限公司 | Photographing method and mobile terminal |
CN106131418A (en) * | 2016-07-19 | 2016-11-16 | 腾讯科技(深圳)有限公司 | A kind of composition control method, device and photographing device |
CN106254744A (en) * | 2016-09-23 | 2016-12-21 | 成都创慧科达科技有限公司 | A kind of external dual camera of mobile terminal |
CN106454121A (en) * | 2016-11-11 | 2017-02-22 | 努比亚技术有限公司 | Double-camera shooting method and device |
CN106791377A (en) * | 2016-11-29 | 2017-05-31 | 广东欧珀移动通信有限公司 | Control method, control device and electronic installation |
CN106791419A (en) * | 2016-12-30 | 2017-05-31 | 大连海事大学 | A kind of supervising device and method for merging panorama and details |
CN106878949A (en) * | 2017-02-27 | 2017-06-20 | 努比亚技术有限公司 | A kind of positioning terminal based on dual camera, system and method |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107707824A (en) * | 2017-10-27 | 2018-02-16 | 广东欧珀移动通信有限公司 | Image pickup method, device, storage medium and electronic equipment |
CN107948505A (en) * | 2017-11-14 | 2018-04-20 | 维沃移动通信有限公司 | A kind of panorama shooting method and mobile terminal |
CN107948505B (en) * | 2017-11-14 | 2020-06-23 | 维沃移动通信有限公司 | Panoramic shooting method and mobile terminal |
US10742860B2 (en) | 2017-11-30 | 2020-08-11 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Method and device for double-camera-based imaging |
CN108024056A (en) * | 2017-11-30 | 2018-05-11 | 广东欧珀移动通信有限公司 | Imaging method and device based on dual camera |
CN108024056B (en) * | 2017-11-30 | 2019-10-29 | Oppo广东移动通信有限公司 | Imaging method and device based on dual camera |
CN109639997A (en) * | 2018-12-20 | 2019-04-16 | Oppo广东移动通信有限公司 | Image processing method, electronic device and medium |
CN112839161A (en) * | 2019-11-22 | 2021-05-25 | 北京小米移动软件有限公司 | Shooting method and device |
US11363190B2 (en) | 2019-11-22 | 2022-06-14 | Beijing Xiaomi Mobile Software Co., Ltd. | Image capturing method and device |
CN111556248A (en) * | 2020-05-09 | 2020-08-18 | Tcl移动通信科技(宁波)有限公司 | Shooting method, shooting device, storage medium and mobile terminal |
CN111556248B (en) * | 2020-05-09 | 2021-09-03 | Tcl移动通信科技(宁波)有限公司 | Shooting method, shooting device, storage medium and mobile terminal |
CN111770277A (en) * | 2020-07-31 | 2020-10-13 | RealMe重庆移动通信有限公司 | Auxiliary shooting method, terminal and storage medium |
WO2024061134A1 (en) * | 2022-09-19 | 2024-03-28 | 维沃移动通信有限公司 | Photographing method and apparatus, electronic device, and medium |
Also Published As
Publication number | Publication date |
---|---|
CN107155064B (en) | 2019-11-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107155064B (en) | A kind of image pickup method and mobile terminal | |
CN106791400B (en) | A kind of image display method and mobile terminal | |
CN105959544B (en) | A kind of image processing method and mobile terminal of mobile terminal | |
CN107396019A (en) | A kind of slow motion video method for recording and mobile terminal | |
CN105847674A (en) | Preview image processing method based on mobile terminal, and mobile terminal therein | |
CN107295195A (en) | A kind of fingerprint identification method and mobile terminal | |
CN107197169A (en) | A kind of high dynamic range images image pickup method and mobile terminal | |
CN106126108B (en) | A kind of generation method and mobile terminal of thumbnail | |
CN107197170A (en) | A kind of exposal control method and mobile terminal | |
CN106027900A (en) | Photographing method and mobile terminal | |
CN107172346A (en) | A kind of weakening method and mobile terminal | |
CN106534685A (en) | Panoramic image generation method and mobile terminal | |
CN107395976A (en) | A kind of acquisition parameters method to set up and mobile terminal | |
CN110035218B (en) | Image processing method, image processing device and photographing equipment | |
CN106713747A (en) | Focusing method and mobile terminal | |
CN106648035A (en) | Image resolution adjusting method and mobile terminal | |
CN107707823A (en) | A kind of image pickup method and mobile terminal | |
CN107026982B (en) | A kind of photographic method and mobile terminal of mobile terminal | |
CN107302655B (en) | It is a kind of to shoot the adjusting method and mobile terminal found a view | |
CN106888354A (en) | A kind of singlehanded photographic method and mobile terminal | |
CN106973222A (en) | The control method and mobile terminal of a kind of Digital Zoom | |
CN107404577A (en) | A kind of image processing method, mobile terminal and computer-readable recording medium | |
CN106911897B (en) | A kind of determination method and mobile terminal shooting focus | |
CN105959564A (en) | Photographing method and mobile terminal | |
CN105827963B (en) | Scene-change detecting method and mobile terminal during one kind is taken pictures |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |