CN107155064B - A kind of image pickup method and mobile terminal - Google Patents

A kind of image pickup method and mobile terminal Download PDF

Info

Publication number
CN107155064B
CN107155064B CN201710491041.9A CN201710491041A CN107155064B CN 107155064 B CN107155064 B CN 107155064B CN 201710491041 A CN201710491041 A CN 201710491041A CN 107155064 B CN107155064 B CN 107155064B
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.)
Active
Application number
CN201710491041.9A
Other languages
Chinese (zh)
Other versions
CN107155064A (en
Inventor
蔡眉眉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710491041.9A priority Critical patent/CN107155064B/en
Publication of CN107155064A publication Critical patent/CN107155064A/en
Application granted granted Critical
Publication of CN107155064B publication Critical patent/CN107155064B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)

Abstract

The embodiment of the invention provides a kind of image pickup method and mobile terminals, are related to field of communication technology, with solve the problem of existing image pickup method main body can only be amplified together with background cause taken background range to become smaller, the image quality of main body be deteriorated.Wherein, the image pickup method includes: to determine the shooting main body in shooting preview interface under shooting preview mode;Detect the first touch control operation in shooting preview interface;If detecting, first touch control operation is the adjustment operation of preset shooting main body size, adjusts the size of the shooting main body;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

A kind of image pickup method and mobile terminal
Technical field
The present embodiments relate to field of communication technology more particularly to a kind of image pickup methods and mobile terminal.
Background technique
With the development of communication technology, more and more mobile terminals have shooting function, such as smart phone, plate electricity Brain etc., mobile Terminals are frivolous, can be carried around, to bring many convenience to user.
In general, using acquisition for mobile terminal filmed image, acquisition for mobile terminal first when user is shot using mobile terminal It shows preview screen after filmed image on mobile terminals, mainly includes background and main body two large divisions in preview screen, if with Family is wanted to amplify the main body in preview screen, can only amplify main body together with background, so as to cause the back taken Scape range becomes smaller, and the image quality of main body is also deteriorated.
Summary 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 Rise amplification, cause taken background range to become smaller, the image quality of main body be deteriorated the problem of.
In a first aspect, being applied to mobile terminal, the mobile terminal packet the embodiment of the invention provides a kind of image pickup method Wide-angle camera and focal length camera are included, the image pickup method includes: to determine in shooting preview interface under shooting preview mode Shooting main body;Detect the first touch control operation in shooting preview interface;If detecting, first touch control operation is preset Main body size adjustment operation is shot, then adjusts the size of the shooting main body;If receiving shooting instruction, output adjustment shooting Image after main body size.
Second aspect, the embodiment of the invention also provides a kind of mobile terminal, the mobile terminal includes wide-angle camera With focal length camera, further includes: shooting main body determining module, for determining in shooting preview interface under shooting preview mode Shooting main body;First touch control operation detection module, for detecting the first touch control operation in shooting preview interface;Shoot main body Module is adjusted, if for detecting that first touch control operation is that the adjustment of preset shooting main body size operates, described in adjustment Shoot the size of main body;Output module, if for receiving shooting instruction, output adjustment shoots the image after main body size.
The third aspect, the embodiment of the invention also 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 executed by the processor The step of realizing image pickup method as described in relation to the first aspect
Fourth aspect, it is described computer-readable to deposit the embodiment of the invention also provides a kind of computer readable storage medium It is stored with computer program on storage media, shooting as described in relation to the first aspect is realized when the computer program is executed by processor The step of method.
In this way, in the embodiment of the present invention, under shooting preview mode, it may be determined that the shooting main body in shooting preview interface, After shooting main body determines, the first touch control operation of user's input can be detected in shooting preview interface, the first touch control operation can Operation is adjusted as size of the user to shooting main body, it is mobile when detecting size adjustment operation of the user to shooting main body Terminal is correspondingly adjusted the size of shooting main body, and the size of the other positions of shooting preview interface is constant, works as adjustment To after suitable size, image is exported.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 biggish background frame of range, can also collect the higher main body of image quality.
Detailed description of the invention
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 Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is one of flow chart of image pickup method of the embodiment of the present invention;
Fig. 1 a is one of shooting preview interface schematic diagram of the image pickup method of the embodiment of the present invention;
Fig. 1 b is 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 schematic diagram of the mobile terminal of the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Referring to Fig.1, the flow chart of the image pickup method of one embodiment of the invention is shown, which is applied to movement Terminal, mobile terminal include wide-angle camera and focal length camera, which includes:
Step 101: under shooting preview mode, determining the shooting main body in shooting preview interface.
After mobile terminal enters shooting preview mode, under shooting preview mode, 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: the first touch control operation in detection shooting preview interface.
In shooting preview interface, user can input the first touch control operation, and mobile terminal is able to detect the of user's input One touch control operation, to execute corresponding movement according to the first touch control operation detected.
Step 103: if detecting, the first touch control operation is the adjustment operation of preset shooting main body size, adjusts shooting master The size of body.
First touch control operation can be used as a plurality of types of operations, when detect the first touch control operation be preset shooting main body When size adjustment operation, mobile terminal is then adjusted according to size of first touch control operation to 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, such as the shooting main body in shooting preview interface is determined as the personage in Fig. 1 a, then Fig. 1 b is contracting Effect picture after small shooting main body, the size of the personage in Fig. 1 b are less than personage's size in Fig. 1 a.
In the image pickup method of the embodiment of the present invention, under shooting preview mode, 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 bat 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 of 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 biggish background frame of range, and 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 charts In, before step 101 further include:
Step 105: if receiving shooting function enabled instruction, opening wide-angle camera and focal length camera carries out preview Image Acquisition.
While mobile terminal starts shooting function, while opening wide-angle camera and focal length camera, dual camera Simultaneously carry out preview image acquisition, according to the different performance of two cameras, wide-angle camera can acquire shooting background range compared with Big preview image, and focal length camera can acquire the shooting biggish preview image of main body.
Step 106: wide-angle camera preview image collected is shown in shooting preview interface.
When dual camera acquires preview image simultaneously, wide-angle camera is as main camera, and focal length camera is as secondary Camera only shows main camera preview image collected in shooting preview interface, and focal length camera is collected pre- Image concealing is look in wide-angle camera preview image collected, is not shown.
Correspondingly, can all be carried out on wide-angle camera preview image collected in operation after step 106.
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 after step 101 further include:
Step 107: the first preview image and focal length camera for obtaining the photographed scene of wide-angle camera acquisition respectively are adopted Second preview image of the photographed scene of collection.
In this step, after main body to be captured determines, it is collected that two cameras institute in photographed scene is obtained 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: being based on the first preview image and the second preview image, calculate the depth information of shooting main body.
In this step, the depth information for calculating shooting main body refers to according to the algorithm in technique for taking, to shooting main body Depth information is calculated, and calculates the depth map of identified shooting main body, and calculated result is being retained mobile terminal From the background.
Depth map in the embodiment of the present invention is to calculate same characteristic features according to the first preview image and the second preview image What the displacement difference of point obtained.First preview image and the second preview image are two dimensional images, and depth map is 3-D image, are 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 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, determining and shoot corresponding first subject image of main body in the second preview image.
The distance and position of each pixel on the image in depth map being calculated according to step 108 obtains shooting main body In the distance and position of each pixel the corresponding image of shooting main body is obtained according to the distance and position of each pixel in shooting main body Content will shoot corresponding the first subject image in the second preview image of main body and pluck out to come from the second preview image.
Step 111: determining the second subject image of the first subject image corresponding position in the first preview image.
According to shooting main body, and the first subject image of shooting main body, determine the first subject image in the first preview graph The second subject image of corresponding position as in.
Step 112: the 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 shown 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 Greater than the second size of the second subject image.
In the present embodiment, the image that shooting preview interface is shown is the first preview image, is corresponded in the first preview image Shooting main body the second subject image the second size it is smaller, and image quality is bad, in order to reach bust shot main body, does not amplify The effect of background, while guaranteeing the image quality of the shooting main body of amplification, the first subject image in the second preview image can be shown 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 detecting, the first touch control operation is the adjustment operation of preset shooting main body size, obtains the first touching The scaling of the corresponding shooting main body of control operation.
In this step, user is obtained first and want the scaling being adjusted to shooting main body, according to this contracting Ratio is put to be adjusted the size of shooting main body.
For example, when the first touch control operation is the slide on the first preset direction, and corresponding bust shot main body, packet It includes but the sliding distance a for being not limited to be set as slide corresponds to bust shot main body 20%,;For example, a be 20 pixels away from From the corresponding relationship of specific sliding distance and scaling can be arbitrarily arranged according to the demand of user.
For example, when the first touch control operation is the slide on the second preset direction, and corresponding reduce shoots main body, packet Include but be not limited to be set as slide sliding distance b it is corresponding reduce shooting main body 30%, for example, b be 30 pixels away from From the corresponding relationship of specific sliding distance and scaling can be arbitrarily arranged according to the demand of user.
Step 1032: obtaining and shoot all characteristic point coordinates (x, y, z) of main body in the preview image of wide-angle camera acquisition.
In this step, all characteristic point coordinates of main body are shot in the preview image by obtaining wide-angle camera acquisition (x, y, z), to obtain shooting the size of main body in the preview image of wide-angle camera acquisition.
Step 1033: obtaining and shoot all characteristic point coordinates (a, b, c) of main body in the preview image of focal length camera acquisition.
In this step, all characteristic point coordinates of main body are shot in the preview image by obtaining the acquisition of focal length camera (a, b, c), to obtain shooting the size of main body in the preview image of focal length camera acquisition.
Step 1034: according to scaling, by all characteristic point coordinates (x, y, z) and all characteristic point coordinates (a, b, c) Carry out interpolation calculation, all characteristic 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 characteristic 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 to be inserted into the functional value done in certain section using function f (x), Specific function appropriate is made, takes given value on these aspects, uses the value of this specific function as letter on other aspects in section The approximation of number f (x), this method are known as interpolation.
Interpolation in above-mentioned algorithm is linear interpolation, and principle is, if A (i1, b1) B (i2, b2) is two o'clock, then point P (I, B) on the straight line that above-mentioned two o'clock determines.And be commonly i in engineering 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 reflection follows the linear relationship of straight line AB reflection.A, it is total to for 3 points of B, P Line then obtains P (I, b) by being converted to formula (b-b1)/(i-i1)=(b2-b1)/(i2-i1)=straight slope.
Step 1035: all characteristic point coordinates (X, Y, Z) based on the shooting main body after scaling generate third main body figure Picture.
According to all characteristic point coordinates (X, Y, Z) of the shooting main body after scaling, the ruler of the shooting main body after being scaled It is very little, generate third subject image, i.e., the image after the scaling of shooting main body adjusted.
Step 1036: the image of the shooting main body region in wide-angle camera preview image collected is replaced with Third subject image.
Third subject image after showing scaling in preview image completes the scaling of shooting main body.
In the present embodiment, if the size of shooting main body adjusted is different from the preview image of focal length camera acquisition Shoot the size of main body, and the size different from shooting main body in the preview image of wide-angle camera acquisition, it is necessary to again It determines a new size, therefore, first has to obtain the image coordinate for shooting main body in the preview image of focal length camera acquisition The image difference of the image coordinate of main body is shot in the preview image acquired with wide-angle camera, and according to image difference and scaling Ratio determines the coordinate of shooting main body adjusted, to determine the size of shooting main body adjusted 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 process In figure, step 101 includes:
Step 1011: the second touch control operation in detection 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 according to the subjective consciousness of user, to choose the object in shooting preview interface, as shooting main body.
Step 1012: when detecting the second touch control operation is clicking operation at least once, to where the second touch control operation Image-region carry out Object identifying, identify at least one object.
After detecting the second touch control operation, object selected by user, each clicking operation are identified 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 being determined as to shoot main body.
Using one of identification even more than object as shooting main body, to carry out subsequent adjustment.
In the present embodiment, a kind of scheme of manually identifying shooting main body is provided, further, can also provide list Subject mode and multiagent mode, when for single subject mode, user can choose an object as shooting main body, when to lead more When bulk-mode, user can choose multiple objects as shooting main body.
It of courses, in the present invention, in the automatic scheme for choosing shooting main body, also can provide single subject mode and multiagent Mode, when for single subject mode, can the nearest object of automatic selected distance camera as shooting main body, when for multiagent mould When formula, some or all of object in shooting preview interface can be chosen automatically as shooting main body.
When selecting multiple objects as shooting main body, 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: the first operation of bust shot main body and the second operation for reducing shooting main body.
Step 103 includes:
Step 1037: if detecting, the first touch control operation is the first operation, according to preset ratio, bust shot main body.
When the first touch control operation is the first operation, the specific adjustment operation to shooting main body is to be enlarged.
Step 1038: if detecting, the first touch control operation is the second operation, according to preset ratio, reduces shooting main body.
When the first touch control operation is the second operation, the specific adjustment operation to shooting main body is reduction operation.
In the present embodiment, two kinds of operations of the first touch control operation are limited, lists specific adjustment mode and makees For reference.The reduction operation of amplifying operation and the second operation for the first operation, can meet user to the scaling of shooting main body Demand.
Illustratively, 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 with the second preset direction on the contrary, to distinguish, such as: the first preset direction To be upward, the second preset direction is downward.Preferably, it is shown on a vertical direction in the predeterminated position of shooting preview interface Item is dragged, shows a sliding block on dragging item, when detecting the upward sliding operation on sliding block, according to preset ratio, is put Big shooting main body;When detecting the slide downward operation on sliding block, according to preset ratio, shooting main body is reduced.
Alternatively, the first operation and the second operation are respectively one of single-click operation and double click operation.It is put specifically, clicking Greatly, it double-clicks and reduces;Alternatively, clicking diminution, amplification is double-clicked.
Alternatively, the first operation is the two fingers kneading operation on third preset direction, the second operation is on the 4th preset direction Two fingers kneading operation.Wherein, third preset direction here can with the 4th preset direction on the contrary, to distinguish, such as: third Preset direction is that two fingers open kneading, and the 4th preset direction is that two fingers merging is mediated.
Alternatively, 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 process In figure, after step 102, further includes:
Step 113: if detecting, the first touch control operation is long press operation, it is determined that the corresponding mesh in long press operation position Mark shooting main body.
In addition, in addition to the type of aforementioned first touch control operation, the first touch control operation can also be 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 to target shooting main body.
Step 114: focusing is tracked to target shooting main body.
In the present embodiment, main body is shot by long press operation target, focusing is tracked to target shooting main body, with lock It sets the goal and shoots main body, when shooting angle changes or shoot 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 process In figure,
After step 114 further include:
Step 115: change in location of the detection target shooting main body in shooting preview interface.
Step 116: if the position for detecting target shooting main body exports prompt information beyond preset central area, Prompt information is for prompting user to adjust composition.
In the present embodiment, can also in shooting preview interface real-time detection target shooting main body position, when detecting Target shoots the position of main body beyond behind preset central area, may influence whether the effect of image, at this moment can export prompt Information, for example, " shooting main body has left center, please adjust composition ", to remind user in shooting preview interface, target The position for shooting main body exceeds preset central area, or even to approach edge, needs to adjust composition, to help user Take optimal image.
It is noted that for the image that step 104 exports, if user also needs to individual or multiple in image Object is adjusted operation, can also choose the object in image, and using the object of selection as bat according to correlation step above-mentioned It takes the photograph main body and is adjusted operation, after being adjusted to suitable size, save image adjusted.
The image pickup method of the embodiment of the present invention, under shooting preview mode, 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 of shooting main body is adjusted;User can also be realized to shoot target and be led by the long press operation to target shooting main body The tracking of body is focused, when shooting angle, which changes or shoot main body, to be moved, the distance of focus can with the movement of main body and Change, remains that shooting main body is clear.Detect that the position of target shooting main body beyond preset central area, then prompts to use Family adjusts composition, has advanced optimized the effect of shooting.
Fig. 9 is the block diagram of the mobile terminal of one embodiment of the invention, which includes:
Wide-angle camera 1 and focal length camera 2;
Main body determining module 10 is shot, for determining the shooting main body in shooting preview interface under shooting preview mode;
First touch control operation detection module 20, for detecting the first touch control operation in shooting preview interface;
It shoots main body and adjusts module 30, if for detecting that the first touch control operation is preset shooting main body size adjustment behaviour Make, then adjusts the size of shooting main body;
Output module 40, if for receiving shooting instruction, 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 mode, it may be determined that Shooting main body in shooting preview interface, after shooting main body determines, 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 used as size adjustment operation of the user to shooting main body, When shoot main body adjustment module 30 detect user to shooting main body size adjustment operation when, correspondingly to shooting main body it is big It is small to be adjusted, and the size of the other positions of shooting preview interface is constant, after being adjusted to suitable size, output module 40 Export 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 shooting Head can both collect the biggish background frame of range, can also collect the higher main body of image quality.
Particularly, shooting main body determining module 10 can be used for realizing the step 101 in previous embodiment, the first touch control operation Detection module 20 can be used for realizing that the step 102 in previous embodiment, shooting main body adjustment module 30 can be used for realizing aforementioned 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, which also wraps It includes:
Dual camera opening module 50, if opening wide-angle camera 1 and length for receiving shooting function enabled instruction Burnt camera 2 carries out preview image acquisition;
Preview image display module 60, for showing the preview image collected of wide-angle camera 1 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 Include:
Preview image obtains module 70, the first preview graph of the photographed scene for obtaining the acquisition of wide-angle camera 1 respectively Second preview image of the photographed scene that picture and focal length camera 2 acquire;
Depth information computing module 80 calculates shooting main body for being based on the first preview image and the second preview image Depth information;
First subject image determining module 90, for according to depth information, determining shooting 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 corresponding position Two subject images;
Subject image replacement module 110, for the second subject image to be replaced with the first subject image;
Wherein, the first size of the first subject image is greater than the second size of the second subject image.
Particularly, preview image, which obtains module 70, can be used for realizing the step 107 in previous embodiment, and depth information calculates Module 80 can be used for realizing that the step 108 in previous embodiment, the first subject image determining module 90 can be used for realizing aforementioned 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 adjustment module 30 includes:
Scaling acquiring unit 31, for obtaining the scaling of the corresponding shooting main body of the first touch control operation;
The first coordinate of main body acquiring unit 32 is shot, shoots master in the preview image for obtaining the acquisition of wide-angle camera 1 All characteristic point coordinates (x, y, z) of body;
The second coordinate of main body acquiring unit 33 is shot, shoots master in the preview image for obtaining the acquisition of focal length camera 2 All characteristic point coordinates (a, b, c) of body;
Shoot main body third coordinate acquiring unit 34, for according to scaling, by all characteristic point coordinates (x, y, z) and All characteristic point coordinates (a, b, c) carry out interpolation calculations, all characteristic point coordinates of the shooting main body after being scaled (X, Y, Z);
Third subject image generation unit 35, for based on the shooting main body after scaling all characteristic point coordinates (X, Y, Z), third subject image is generated;
Third subject image replacement unit 36, for by the shooting main body in the preview image collected of wide-angle camera 1 The image of region replaces with third subject image.
Particularly, scaling acquiring unit 31 can be used for realizing the step 1031 in previous embodiment, shooting 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, shooting main body third coordinate acquiring unit 34 can be used for realizing previous embodiment In step 1034, third subject image generation unit 35 can be used for realizing the step 1035 in previous embodiment, third 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 being touched to second when detecting the second touch control operation is clicking operation at least once Image-region where control operation carries out Object identifying, identifies at least one object;
Object determination unit 13 shoots main body at least one object to be determined as.
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 that the step 1012 in previous embodiment, object determination 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: the first operation of bust shot main body and the second operation for reducing shooting main body;It claps Taking the photograph main body adjustment module 30 includes:
Amplifying unit 37, if for detecting that the first touch control operation is the first operation, according to preset ratio, bust shot Main body;
Reducing unit 38, if for detecting that the first touch control operation is the second operation, according to preset ratio, diminution shooting Main body.
Particularly, amplifying unit 37 can be used for realizing that the step 1037 in previous embodiment, reducing unit 38 can be used for reality 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;
Alternatively, the first operation and the second operation are respectively one of single-click operation and double click operation;
Alternatively, the first operation is the two fingers kneading operation on third preset direction, the second operation is on the 4th preset direction Two fingers kneading operation.
On the basis of Fig. 9, Figure 15 is the block diagram of the mobile terminal of another embodiment of the present invention, which also wraps It includes:
Long press operation detection module 120, if for detecting that the first touch control operation is long press operation, it is determined that long press operation The corresponding target in position shoots main body;
Focusing module 130 is tracked, for being tracked focusing to target shooting main body.
Particularly, long press operation detection module 120 can be used for realizing the step 113 in previous embodiment, tracking 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 Include:
Position detecting module 140, for detecting change in location of the target shooting main body in shooting preview interface;
Prompt information output module 150, if for detecting that the position of target shooting main body exceeds preset central area, Prompt information is then exported, prompt information is for prompting user to adjust composition.
Particularly, long press operation detection module 140 can be used for realizing the step 115 in previous embodiment, tracking focusing mould Block 150 can be used for realizing the step 116 in previous embodiment.
It is noted that each structure can be used for the correspondence step in implementation method embodiment for Installation practice.
The mobile terminal of the embodiment of the present invention, under shooting preview mode, it may be determined that the shooting master in shooting preview interface Body can detect the first touch control operation of user's input, the first touch control operation after shooting main body determines in shooting preview interface It can be used as size adjustment operation of the user to shooting main body, when detecting size adjustment operation of the user to shooting main body, move Dynamic terminal is correspondingly adjusted the size of shooting main body, and the size of the other positions of shooting preview interface is constant, works as tune It is whole to after suitable size, export 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 biggish background frame of range, 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, storage is on a memory And the computer program that can be run on a processor, such as any of the above-described image pickup method is realized when computer program is executed by processor Embodiment each process, and identical technical effect can be reached, to avoid repeating, which is not described herein again.
Another embodiment of the present invention additionally provides a kind of computer readable storage medium, deposits on computer readable storage medium Computer program is contained, each mistake of the embodiment such as any of the above-described image pickup method is realized in shooting processing when being executed by processor Journey, and identical technical effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer-readable storage medium Matter, such as read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic or disk 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 include: to 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.Various components in mobile terminal 800 are coupled by bus system 805.It is understood that bus System 805 is for realizing the connection communication between these components.Bus system 805 further includes electricity in addition to including data/address bus Source bus, control bus and status signal bus in addition.But for the sake of clear explanation, various buses are all designated as always in Figure 17 Linear system system 805.
Wherein, user interface 803 may 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, It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read- OnlyMemory, ROM), programmable read only memory (ProgrammableROM, PROM), Erasable Programmable Read Only Memory EPROM (ErasablePROM, EPROM), electrically erasable programmable read-only memory (ElectricallyEPROM, EEPROM) dodge It deposits.Volatile memory can be random access memory (RandomAccessMemory, RAM), and it is slow to be used as external high speed It deposits.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory (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 unlimited In the memory of these and any other suitable type.
In some embodiments, memory 802 stores following element, executable modules or data structures, or Their subset of person or their superset: operating system 8021 and application program 8022.
Wherein, operating system 8021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for Realize various basic businesses and the hardware based task of processing.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 further include: storage on a memory 802 and can be on processor 801 The shooting of operation controls program, specifically, can be the shooting control program in application program 8022, shooting control program is located Reason device 801 realizes following steps when executing: under shooting preview mode, determining the shooting main body in shooting preview interface;Detection The first touch control operation in shooting preview interface;If detecting first touch control operation for the adjustment of preset shooting main body size Operation then adjusts 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 disclose can be applied in processor 801, or be realized by processor 801. Processor 801 may be a kind of IC chip, the processing capacity with signal.During realization, 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), specific integrated circuit (ApplicationSpecific IntegratedCircuit, ASIC), ready-made programmable gate array (FieldProgrammableGateArray, FPGA) either other programmable logic device, discrete gate or transistor logic Device, discrete hardware components.It may be implemented or execute disclosed each method, step and the logical box in the embodiment of the present invention Figure.General processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with the present invention The step of method disclosed in embodiment, can be embodied directly in hardware decoding processor and execute completion, or use decoding processor In hardware and software module combination execute completion.Software module can be located at random access memory, and flash memory, read-only memory can The computer readable storage medium of this fields such as program read-only memory or electrically erasable programmable memory, register maturation In.The computer readable storage medium is located at memory 702, and processor 801 reads the information in memory 802, hard in conjunction with it Part completes the step of above method.Specifically, computer program, computer program are stored on the computer readable storage medium The step of embodiment such as any of the above-described image pickup method is realized when being executed by processor 801.
It is understood that the embodiment of the present invention description these embodiments can with hardware, software, firmware, middleware, Microcode or combinations thereof is realized.For hardware realization, processing unit be may be implemented in one or more specific integrated circuit (App LicationSpecificIntegratedCircuits, 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 executing herein described function In member or combinations thereof.
For software implementations, can by execute the embodiment of the present invention described in function module (such as process, function etc.) come Realize technology described in the embodiment of the present invention.Software code is storable in memory and is executed by processor.Memory can With portion realizes in the processor or outside the processor.
Optionally, following steps be can also be achieved when computer program is executed by processor 801: being opened if receiving shooting function Dynamic instruction, then open wide-angle camera and focal length camera carries out preview image acquisition;The wide-angle camera is collected Preview image is shown in shooting preview interface.
Optionally, following steps be can also be achieved when computer program is executed by processor 801: obtaining wide-angle camera respectively Second preview image of the photographed scene of the first preview image and focal length the camera acquisition of the photographed scene of acquisition;Based on described First preview image and second preview image calculate the depth information of the shooting main body;According to the depth information, really Corresponding first subject image of shooting main body in fixed second preview image;Determine first subject image described first Second subject image of corresponding position in preview image;Second subject image is replaced with into first subject image;Its In, the first size of first subject image is greater than the second size of second subject image.
Optionally, as another embodiment, computer program can also be achieved following steps when being executed by processor 801: Obtain the scaling of the corresponding shooting main body of first touch control operation;Obtain the preview image of the wide-angle camera acquisition Middle all characteristic point coordinates (x, y, z) of shooting main body;It obtains in the preview image of the focal length camera acquisition and shoots main body institute There is characteristic point coordinate (a, b, c);According to the scaling, by all characteristic point coordinates (x, y, z) and all spies Sign point coordinate (a, b, c) carries out interpolation calculation, all characteristic point coordinates (X, Y, Z) of the shooting main body after being scaled;It is based on All characteristic point coordinates (X, Y, Z) of shooting main body after the scaling generate third subject image;By the wide-angle camera The image of shooting main body region in preview image collected replaces with the third subject image.
Optionally, as another embodiment, computer program can also be achieved following steps when being executed by processor 801: Detect the second touch control operation in shooting preview interface;When detecting that second touch control operation is clicking operation at least once When, Object identifying is carried out to the image-region where second touch control operation, identifies at least one object;By described at least One object is determined as shooting main body.
Optionally, 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, computer program can also be achieved following steps when being executed by processor 801: if It detects that first touch control operation is first operation, then according to preset ratio, amplifies the shooting main body;If detecting First touch control operation is second operation, then according to preset ratio, reduces the shooting main body.
Optionally, 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;Alternatively, first operation and second operation are respectively to click behaviour One of work and double click operation;Alternatively, the first operation is the two fingers kneading operation on third preset direction, second operation For the two fingers kneading operation on the 4th preset direction.
Optionally, as another embodiment, computer program can also be achieved following steps when being executed by processor 801: If detecting, first touch control operation is long press operation, it is determined that the corresponding target shooting master in the long press operation position Body;Focusing is tracked to target shooting main body.
Optionally, as another embodiment, computer program can also be achieved following steps when being executed by processor 801: Detect change in location of the target shooting main body in shooting preview interface;If detecting the position of the target shooting main body Beyond preset central area, then prompt information is exported, the prompt information is for prompting user to adjust composition.
Mobile terminal 800 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, here It repeats no more.
The mobile terminal of the embodiment of the present invention, under shooting preview mode, it may be determined that the shooting master in shooting preview interface Body can detect the first touch control operation of user's input, the first touch control operation after shooting main body determines in shooting preview interface It can be used as size adjustment operation of the user to shooting main body, when detecting size adjustment operation of the user to shooting main body, move Dynamic terminal is correspondingly adjusted the size of shooting main body, and the size of the other positions of shooting preview interface is constant, works as tune It is whole to after suitable size, export 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 biggish background frame of range, can also collect the higher master of image quality Body.
Figure 18 is the structural schematic diagram 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 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 990, focal length camera 9100 and wide-angle camera 9200.
Wherein, input unit 930 can be used for receiving the number or character information of user's input, and generation and mobile terminal The related signal input of 900 user setting and function control.Specifically, in the embodiment of the present invention, which can To include touch panel 931.Touch panel 931, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses the operations of any suitable object or attachment on touch panel 931 such as finger, stylus), and according to preparatory The formula of setting drives corresponding attachment device.Optionally, touch panel 931 may include touch detecting apparatus and touch controller Two parts.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, by signal Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, The processor 960 is given again, and can be received order that processor 960 is sent and be executed.Furthermore, it is possible to using resistance-type, The multiple types such as condenser type, infrared ray and surface acoustic wave realize touch panel 931.In addition to touch panel 931, input unit 930 can also include other input equipments 932, other input equipments 932 can include but is not limited to physical keyboard, function key One of (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Wherein, display unit 940 can be used for showing information input by user or be supplied to the information and movement of user The various menu interfaces of terminal 900.Display unit 940 may include display panel 941, optionally, can use LCD or organic hair The forms such as optical diode (OrganicLight-EmittingDiode, OLED) configure display panel 941.
It should be noted that touch panel 931 can cover display panel 941, touch display screen is formed, when the touch display screen is examined After measuring touch operation on it or nearby, processor 960 is sent to determine the type of touch event, is followed by subsequent processing device 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 common control viewing area.The Application Program Interface viewing area And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious 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 elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing area Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example, Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Wherein processor 960 is the control centre of mobile terminal 900, utilizes various interfaces and connection whole mobile phone Various pieces, by running or executing the software program and/or module that are stored in first memory 921, and calling storage Data in second memory 922 execute the various functions and processing data of mobile terminal 900, thus 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 further include: be stored in memory 920 and can be transported on processor 960 Capable shooting controls program, specifically, can be the shooting control program in application program, shooting control program is by processor 960 realize following steps when executing: under shooting preview mode, determining the shooting main body in shooting preview interface;Detection shooting The first touch control operation in preview interface;If detecting, first touch control operation is preset shooting main body size adjustment behaviour Make, then adjusts the size of the shooting main body;If receiving shooting instruction, output adjustment shoots the image after main body size.
Optionally, following steps be can also be achieved when computer program is executed by processor 960: being opened if receiving shooting function Dynamic instruction, then open wide-angle camera and focal length camera carries out preview image acquisition;The wide-angle camera is collected Preview image is shown in shooting preview interface.
Optionally, following steps be can also be achieved when computer program is executed by processor 960: obtaining wide-angle camera respectively Second preview image of the photographed scene of the first preview image and focal length the camera acquisition of the photographed scene of acquisition;Based on described First preview image and second preview image calculate the depth information of the shooting main body;According to the depth information, really Corresponding first subject image of shooting main body in fixed second preview image;Determine first subject image described first Second subject image of corresponding position in preview image;Second subject image is replaced with into first subject image;Its In, the first size of first subject image is greater than the second size of second subject image.
Optionally, as another embodiment, computer program can also be achieved following steps when being executed by processor 960: Obtain the scaling of the corresponding shooting main body of first touch control operation;Obtain the preview image of the wide-angle camera acquisition Middle all characteristic point coordinates (x, y, z) of shooting main body;It obtains in the preview image of the focal length camera acquisition and shoots main body institute There is characteristic point coordinate (a, b, c);According to the scaling, by all characteristic point coordinates (x, y, z) and all spies Sign point coordinate (a, b, c) carries out interpolation calculation, all characteristic point coordinates (X, Y, Z) of the shooting main body after being scaled;It is based on All characteristic point coordinates (X, Y, Z) of shooting main body after the scaling generate third subject image;By the wide-angle camera The image of shooting main body region in preview image collected replaces with the third subject image.
Optionally, as another embodiment, computer program can also be achieved following steps when being executed by processor 960: Detect the second touch control operation in shooting preview interface;When detecting that second touch control operation is clicking operation at least once When, Object identifying is carried out to the image-region where second touch control operation, identifies at least one object;By described at least One object is determined as shooting main body.
Optionally, 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, computer program can also be achieved following steps when being executed by processor 960: if It detects that first touch control operation is first operation, then according to preset ratio, amplifies the shooting main body;If detecting First touch control operation is second operation, then according to preset ratio, reduces the shooting main body.
Optionally, 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;Alternatively, first operation and second operation are respectively to click behaviour One of work and double click operation;Alternatively, the first operation is the two fingers kneading operation on third preset direction, second operation For the two fingers kneading operation on the 4th preset direction.
Optionally, as another embodiment, computer program can also be achieved following steps when being executed by processor 960: If detecting, first touch control operation is long press operation, it is determined that the corresponding target shooting master in the long press operation position Body;Focusing is tracked to target shooting main body.
Optionally, as another embodiment, computer program can also be achieved following steps when being executed by processor 960: Detect change in location of the target shooting main body in shooting preview interface;If detecting the position of the target shooting main body Beyond preset central area, then prompt information is exported, the prompt information is for prompting user to adjust composition.
The mobile terminal of the embodiment of the present invention, under shooting preview mode, it may be determined that the shooting master in shooting preview interface Body can detect the first touch control operation of user's input, the first touch control operation after shooting main body determines in shooting preview interface It can be used as size adjustment operation of the user to shooting main body, when detecting size adjustment operation of the user to shooting main body, move Dynamic terminal is correspondingly adjusted the size of shooting main body, and the size of the other positions of shooting preview interface is constant, works as tune It is whole to after suitable size, export 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 biggish background frame of range, can also collect the higher master of image quality Body.
Those of ordinary skill in the art may be aware that the embodiment in conjunction with disclosed in the embodiment of the present invention describe it is each Exemplary unit and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered 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, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a computer readable storage medium, including some instructions are used so that a computer equipment (can be personal computer, server or the network equipment etc.) execute each embodiment the method for the present invention whole or Part steps.And computer readable storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are each Kind can store the medium of program code.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (16)

1. a kind of image pickup method is applied to mobile terminal, which is characterized in that the mobile terminal includes wide-angle camera and focal length Camera, the image pickup method include:
Under shooting preview mode, the shooting main body in shooting preview interface is determined;
Detect the first touch control operation in shooting preview interface;
If detecting, first touch control operation is the adjustment operation of preset shooting main body size, adjusts the shooting main body Size;
If receiving shooting instruction, output adjustment shoots the image after main body size;
Wherein, before the step of shooting main body in the determining shooting preview interface, further includes:
If receiving shooting function enabled instruction, opens wide-angle camera and focal length camera carries out preview image acquisition;
Wide-angle camera preview image collected is shown in shooting preview interface;
The step of size of the adjustment shooting main body, comprising:
Obtain the scaling of the corresponding shooting main body of first touch control operation;
It obtains in the preview image of the wide-angle camera acquisition and shoots all characteristic point coordinates (x, y, z) of main body;
It obtains in the preview image of the focal length camera acquisition and shoots all characteristic point coordinates (a, b, c) of main body;
According to the scaling, by all characteristic point coordinates (x, y, z) and all characteristic point coordinates (a, b, c) into Row interpolation calculates, all characteristic point coordinates (X, Y, Z) of the shooting main body after being scaled;
All characteristic point coordinates (X, Y, Z) based on the shooting main body after the scaling generate third subject image;
The image of shooting main body region in wide-angle camera preview image collected is replaced with into the third Subject image.
2. the method according to claim 1, wherein the step of the shooting main body in the determining shooting preview interface After rapid, further includes:
The first preview image of the photographed scene of wide-angle camera acquisition and the photographed scene of focal length camera acquisition are obtained respectively The second preview image;
Based on first preview image and second preview image, the depth information of the shooting main body is calculated;
According to the depth information, determines and shoot corresponding first subject image of main body in second preview image;
Determine the second subject image of first subject image corresponding position in first preview image;
Second subject image is replaced with into first subject image;
Wherein, the first size of first subject image is greater than the second size of second subject image.
3. the method according to claim 1, wherein the step of the shooting main body in the determining shooting preview interface Suddenly, comprising:
Detect the second touch control operation in shooting preview interface;
When detecting second touch control operation is clicking operation at least once, to the image where second touch control operation Region carries out Object identifying, identifies at least one object;
At least one described object is determined as to shoot main body.
4. the method according to claim 1, wherein shooting main body size adjustment operation includes: that amplification is clapped It takes the photograph the first operation of main body and reduces the second operation of shooting main body;
If described detect that first touch control operation is the adjustment operation of preset shooting main body size, the shooting master is adjusted The step of size of body, comprising:
If detecting, first touch control operation is first operation, according to preset ratio, amplifies the shooting main body;
If detecting, first touch control operation is second operation, according to preset ratio, reduces the shooting main body.
5. according to the method described in claim 4, it is characterized in that,
First operation is the slide on the first preset direction, and second operation is the sliding on the second preset direction Operation;
Alternatively, first operation and second operation are respectively one of single-click operation and double click operation;
Alternatively, the first operation is the two fingers kneading operation on third preset direction, second operation is on the 4th preset direction Two fingers kneading operation.
6. the method according to claim 1, wherein the first touch control operation in the detection shooting preview interface The step of after, further includes:
If detecting, first touch control operation is long press operation, it is determined that the corresponding target in the long press operation position is clapped Take the photograph main body;
Focusing is tracked to target shooting main body.
7. according to the method described in claim 6, it is characterized in that, described be tracked focusing to target shooting main body After step, further includes:
Detect change in location of the target shooting main body in shooting preview interface;
If detecting, the position of the target shooting main body beyond preset central area, exports prompt information, the prompt Information is for prompting user to adjust composition.
8. a kind of mobile terminal, which is characterized in that the mobile terminal includes wide-angle camera and focal length camera, further includes:
Main body determining module is shot, for determining the shooting main body in shooting preview interface under shooting preview mode;
First touch control operation detection module, for detecting the first touch control operation in shooting preview interface;
It shoots main body and adjusts module, if for detecting that first touch control operation is preset shooting main body size adjustment behaviour Make, then adjusts the size of the shooting main body;
Output module, if for receiving shooting instruction, output adjustment shoots the image after main body size;
Further include:
Dual camera opening module, if opening wide-angle camera and focal length camera shooting for receiving shooting function enabled instruction Head carries out preview image acquisition;
Preview image display module, for showing wide-angle camera preview image collected in shooting preview interface On;
The shooting main body adjusts module
Scaling acquiring unit, for obtaining the scaling of the corresponding shooting main body of first touch control operation;
The first coordinate of main body acquiring unit is shot, shoots main body institute in the preview image for obtaining the wide-angle camera acquisition There is characteristic point coordinate (x, y, z);
The second coordinate of main body acquiring unit is shot, shoots main body institute in the preview image for obtaining the focal length camera acquisition There is characteristic point coordinate (a, b, c);
Main body third coordinate acquiring unit is shot, is used for according to the scaling, by all characteristic point coordinates (x, y, z) Interpolation calculation, all characteristic point coordinates of the shooting main body after being scaled are carried out with all characteristic point coordinates (a, b, c) (X,Y,Z);
Third subject image generation unit, for all characteristic point coordinates (X, Y, Z) based on the shooting main body after the scaling, Generate third subject image;
Third subject image replacement unit, for will be where the shooting main body in wide-angle camera preview image collected The image in region replaces with the third subject image.
9. mobile terminal according to claim 8, which is characterized in that further include:
Preview image obtains module, the first preview image and focal length of the photographed scene for obtaining wide-angle camera acquisition respectively Second preview image of the photographed scene of camera acquisition;
Depth information computing module calculates the shooting for being based on first preview image and second preview image The depth information of main body;
First subject image determining module, for determining in second preview image and shooting main body according to the depth information Corresponding first subject image;
Second subject image determining module, determine first subject image in first preview image corresponding position Two subject images;
Subject image replacement module, for second subject image to be replaced with first subject image;
Wherein, the first size of first subject image is greater than the second size of second subject image.
10. mobile terminal according to claim 8, which is characterized 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 detect second touch control operation be clicking operation at least once when, to described second Image-region where touch control operation carries out Object identifying, identifies at least one object;
Object determination unit shoots main body at least one described object to be determined as.
11. mobile terminal according to claim 8, which is characterized in that the shooting main body size adjustment operation includes: to put First operation of big shooting main body and the second operation for reducing shooting main body;
The shooting main body adjusts module
Amplifying unit, if for detecting that first touch control operation is first operation, according to preset ratio, amplification institute State shooting main body;
Reducing unit, if for detecting that first touch control operation is second operation, according to preset ratio, diminution institute State shooting main body.
12. mobile terminal according to claim 11, which is characterized in that
First operation is the slide on the first preset direction, and second operation is the sliding on the second preset direction Operation;
Alternatively, first operation and second operation are respectively one of single-click operation and double click operation;
Alternatively, the first operation is the two fingers kneading operation on third preset direction, second operation is on the 4th preset direction Two fingers kneading operation.
13. mobile terminal according to claim 8, which is characterized in that further include:
Long press operation detection module, if for detecting that first touch control operation is long press operation, it is determined that the long-pressing behaviour Make the corresponding target shooting main body in position;
Focusing module is tracked, for being tracked focusing to target shooting main body.
14. mobile terminal according to claim 13, which is characterized in that further include:
Position detecting module, for detecting change in location of the target shooting main body in shooting preview interface;
Prompt information output module, if for detecting that the position of the target shooting main body exceeds preset central area, Prompt information is exported, the prompt information is for prompting user to adjust composition.
15. a kind of mobile terminal, which is characterized in that including processor, memory is stored on the memory and can be described The computer program run on processor is realized when the computer program is executed by the processor as in claim 1 to 7 The step of described in any item image pickup methods.
16. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes the step of the image pickup method as described in any one of claims 1 to 7 when the computer program is executed by processor Suddenly.
CN201710491041.9A 2017-06-23 2017-06-23 A kind of image pickup method and mobile terminal Active CN107155064B (en)

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 CN107155064A (en) 2017-09-12
CN107155064B true 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)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107707824B (en) * 2017-10-27 2020-07-31 Oppo广东移动通信有限公司 Shooting method, shooting device, storage medium and electronic equipment
CN107948505B (en) * 2017-11-14 2020-06-23 维沃移动通信有限公司 Panoramic shooting method and mobile terminal
CN108024056B (en) 2017-11-30 2019-10-29 Oppo广东移动通信有限公司 Imaging method and device based on dual camera
CN111103921A (en) * 2018-10-26 2020-05-05 广东小天才科技有限公司 Study is dull and stereotyped based on formula camera of bounceing
CN109639997B (en) * 2018-12-20 2020-08-21 Oppo广东移动通信有限公司 Image processing method, electronic device, and medium
CN112839161A (en) 2019-11-22 2021-05-25 北京小米移动软件有限公司 Shooting method and device
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

Citations (8)

* Cited by examiner, † Cited by third party
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

Patent Citations (8)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN107155064A (en) 2017-09-12

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
CN105847674B (en) A kind of preview image processing method and mobile terminal based on mobile terminal
CN106131449B (en) A kind of photographic method and mobile terminal
CN105959544B (en) A kind of image processing method and mobile terminal of mobile terminal
CN107395976B (en) A kind of acquisition parameters setting method and mobile terminal
CN107343149B (en) A kind of photographic method and mobile terminal
CN105827754B (en) A kind of generation method and mobile terminal of high dynamic range images
CN106101553B (en) A kind of photographic method and mobile terminal
CN106126108B (en) A kind of generation method and mobile terminal of thumbnail
CN106101545B (en) A kind of image processing method and mobile terminal
CN107172361B (en) A kind of method and mobile terminal of pan-shot
CN106027900A (en) Photographing method and mobile terminal
CN107026982B (en) A kind of photographic method and mobile terminal of mobile terminal
CN105959564B (en) A kind of photographic method and mobile terminal
CN106657806B (en) A kind of exposure method and mobile terminal
CN106534685A (en) Panoramic image generation method and mobile terminal
CN106227488B (en) A kind of display methods and mobile terminal of reminder message
CN106354303B (en) A kind of photographic method and mobile terminal of mobile terminal
CN106791375B (en) A kind of shooting focusing method and mobile terminal
CN105827963B (en) Scene-change detecting method and mobile terminal during one kind is taken pictures
CN106713659B (en) A kind of panorama shooting method and mobile terminal
CN106911897B (en) A kind of determination method and mobile terminal shooting focus
CN107172346A (en) A kind of weakening method and mobile terminal
CN106097398B (en) A kind of detection method and mobile terminal of Moving Objects

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