CN107509034A - 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
CN107509034A
CN107509034A CN201710865596.5A CN201710865596A CN107509034A CN 107509034 A CN107509034 A CN 107509034A CN 201710865596 A CN201710865596 A CN 201710865596A CN 107509034 A CN107509034 A CN 107509034A
Authority
CN
China
Prior art keywords
picture frame
target
timestamp
mobile terminal
frame
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
Application number
CN201710865596.5A
Other languages
Chinese (zh)
Other versions
CN107509034B (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 CN201710865596.5A priority Critical patent/CN107509034B/en
Publication of CN107509034A publication Critical patent/CN107509034A/en
Application granted granted Critical
Publication of CN107509034B publication Critical patent/CN107509034B/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/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/681Motion detection
    • 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/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • 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/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/682Vibration or motion blur correction
    • H04N23/683Vibration or motion blur correction performed by a processor, e.g. controlling the readout of an image memory

Landscapes

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

Abstract

The present invention, which provides a kind of image pickup method and mobile terminal, this method, to be included:During the preview image of caching camera collection, if receiving photographing instruction, whether detection mobile terminal is shaken;If detecting, mobile terminal is shaken, and obtains jitter amplitude value;According to jitter amplitude value, target cache picture frame is determined;The picture frame for meeting preparatory condition is chosen from target cache picture frame as target shooting image.So, when mobile terminal receives photographing instruction, if mobile terminal is shaken, the jitter amplitude value of mobile terminal can be obtained.And then target cache picture frame can be determined according to jitter amplitude value.Finally, the picture frame for meeting preparatory condition can be chosen from target cache picture frame as target shooting image.The photo of shooting is than more visible, perfect photograph taking effect.

Description

A kind of image pickup method and mobile terminal
Technical field
The present invention relates to communication technical field, more particularly to a kind of image pickup method and mobile terminal.
Background technology
At present, mobile terminal possessed function is more and more diversified.For example, audio-frequency function, camera function, camera function All have become the necessary functions of mobile terminal with store function etc..
All it is many caching (buffer) data of caching in the prior art for camera function.When receiving photographing command When, just take a frame data to be pushed to user from data cached.If user is when pressing shoot button, firmly larger, will Mobile terminal is caused to have rocking by a relatively large margin, so shooting the photo come will be relatively fuzzyyer.Therefore, in the prior art, If the hand of user is shaken in shooting process, captured image can obscure.
The content of the invention
The embodiment of the present invention provides a kind of image pickup method and mobile terminal, to solve trembling due to user's hand in shooting process The problem of dynamic shooting image brought obscures.
In order to solve the above-mentioned technical problem, the present invention is realized in:A kind of image pickup method, including:
During the preview image of caching camera collection, if receiving photographing instruction, detection mobile terminal is It is no to shake;
If detecting, mobile terminal is shaken, and obtains jitter amplitude value;
According to the jitter amplitude value, target cache picture frame is determined;
The picture frame for meeting preparatory condition is chosen from the target cache picture frame as target shooting image.
In a first aspect, the embodiments of the invention provide a kind of image pickup method, including:
During the preview image of caching camera collection, if receiving photographing instruction, detection mobile terminal is It is no to shake;
If detecting, mobile terminal is shaken, and obtains jitter amplitude value;
According to the jitter amplitude value, target cache picture frame is determined;
The picture frame for meeting preparatory condition is chosen from the target cache picture frame as target shooting image.
Second aspect, the embodiment of the present invention also provide a kind of mobile terminal, including:
Detection module, for during the preview image of caching camera collection, if receiving photographing instruction, examining Survey whether mobile terminal is shaken;
First acquisition module, if for detecting that mobile terminal is shaken, obtain jitter amplitude value;
Determining module, for according to the jitter amplitude value, determining target cache picture frame;
Module is chosen, meets that the picture frame of preparatory condition is clapped as target for being chosen from the target cache picture frame Take the photograph image.
The third aspect, the embodiment of the present invention also provide a kind of mobile terminal, it is characterised in that including processor, memory And the computer program that can be run on the memory and on the processor is stored in, the computer program is by the place The step of reason device realizes above-mentioned image pickup method when performing.
Fourth aspect, the embodiment of the present invention also provide a kind of computer read/write memory medium, it is characterised in that the meter Computer program is stored with calculation machine read/write memory medium, the computer program realizes above-mentioned shooting when being executed by processor The step of method.
So, in the embodiment of the present invention, during the preview image of caching camera collection, if receiving finger of taking pictures Order, then detect whether mobile terminal is shaken;If detecting, mobile terminal is shaken, and obtains jitter amplitude value;According to The jitter amplitude value, determines target cache picture frame;The figure for meeting preparatory condition is chosen from the target cache picture frame As frame is as target shooting image.So,, can if mobile terminal is shaken when mobile terminal receives photographing instruction To obtain the jitter amplitude value of mobile terminal.And then target cache picture frame can be determined according to jitter amplitude value.Finally, may be used Meet that the picture frame of preparatory condition is used as target shooting image to be chosen from target cache picture frame.The photo of shooting is more clear It is clear, perfect photograph taking effect.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, needed for being described below to the embodiment of the present invention The accompanying drawing to be used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, For those of ordinary skill in the art, without having to pay creative labor, can also be obtained according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 is one of flow chart of image pickup method of mobile terminal provided in an embodiment of the present invention;
Fig. 2 is that of the prior art take pictures provided in an embodiment of the present invention takes frame schematic diagram;
Fig. 3 is the schematic diagram provided in an embodiment of the present invention for establishing three-dimensional cartesian coordinate system on mobile terminals;
Fig. 4 is a kind of schematic diagram of mode for determining target shooting image provided in an embodiment of the present invention;
Fig. 5 is the two of the flow chart of image pickup method provided in an embodiment of the present invention;
Fig. 6 is that a kind of cache image frame queue provided in an embodiment of the present invention and the data of gravity sensor output form The schematic diagram of buffer queue;
Fig. 7 is the three of the flow chart of image pickup method provided in an embodiment of the present invention;
Fig. 8 is that another cache image frame queue provided in an embodiment of the present invention and the data of gravity sensor output form Buffer queue schematic diagram;
Fig. 9 is one of structure chart of mobile terminal provided in an embodiment of the present invention;
Figure 10 is the two of the structure chart of mobile terminal provided in an embodiment of the present invention;
Figure 11 is the three of the structure chart of mobile terminal provided in an embodiment of the present invention;
Figure 12 is the four of the structure chart of mobile terminal provided in an embodiment of the present invention;
Figure 13 is the five of the structure chart of mobile terminal provided in an embodiment of the present invention;
Figure 14 is the six of the structure chart of mobile terminal provided in an embodiment of the present invention;
Figure 15 is the seven of the structure chart of mobile terminal provided in an embodiment of the present invention;
Figure 16 is the eight of the structure chart of mobile terminal provided in an 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 describes, it is clear that described embodiment is part of the embodiment of the present 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.
Referring to Fig. 1, Fig. 1 is the flow chart of image pickup method provided in an embodiment of the present invention, as shown in figure 1, including following step Suddenly:
Step 101, caching camera collection preview image during, if receiving photographing instruction, detection move Whether dynamic terminal shakes.
In a step 101, in the prior art, all it is many buffer data of caching.When receiving photographing command, just from A frame data are taken to be pushed to user in data cached.As shown in Fig. 2 take frame schematic diagram for of the prior art take pictures.
In fig. 2, buffer queues include n picture frame altogether, when receiving photographing command, typically take in buffer queues Third last picture frame, that is, take (n-2) individual picture frame to be pushed to user.If user when pressing shoot button, uses Power is larger, and may result in mobile terminal has rocking by a relatively large margin, and being so pushed to (n-2) individual picture frame of user will compare It is relatively fuzzy.
In the embodiment of the present invention, at least two cache image frames can be first obtained, you can first to obtain cache image frame team Row.Can include 8 picture frames in cache image frame queue, and 8 picture frames included in cache image frame queue be can be with Real-time update.For example, after the camera function of unlatching mobile terminal, under preview state, mobile terminal can be according to predetermined Time interval, multiple picture frames are obtained, predetermined time interval can be 33 milliseconds, i.e., mobile terminal can obtain one with every 33 milliseconds Individual picture frame.The picture frame got can be the image processor that sensor raw data passes through in mobile terminal chip The multiple working procedure processing of (Image Signal Processor, ISP), including go bad point, gamma correction, color correction, color Enhancing and denoising etc. algorithm process, obtained picture frame.
It should be noted that often getting a picture frame, mobile terminal can get the timestamp of the picture frame, And the jitter amplitude value of mobile terminal corresponding to the picture frame.Two threshold values, respectively first threshold a and can also be set Two threshold value b, and first threshold a is less than Second Threshold b.When the jitter amplitude value of mobile terminal is less than or equal to first threshold a When, it is believed that mobile terminal is not shaken;When mobile terminal jitter amplitude value be more than first threshold a and be less than or During equal to Second Threshold b, it is believed that slight jitter occurs for mobile terminal;When the jitter amplitude value of mobile terminal is more than the second threshold During value b, it is believed that serious shake occurs for mobile terminal.
Cache image frame queue can include two kinds of situations, first explain the first situation here.
Since the timing opening the camera function of mobile terminal, often get a picture frame, it is possible to by the picture frame Add cache image frame queue.After 8 picture frames are filled up in cache image frame queue, when getting the 9th picture frame, 9th picture frame can be added to cache image frame queue, while the 1st picture frame in cache image frame queue is abandoned; When getting the 10th picture frame, the 10th picture frame can add to cache image frame queue, while by cache image frame The 2nd picture frame in queue abandons.So circulation is gone down, it is ensured that includes 8 images in cache image frame queue always Frame, and comprising 8 picture frames be real-time update.And for the first situation, two neighboring figure in cache image frame queue As frame timestamp between interval can be 33 milliseconds.
For second case, mobile terminal often gets a picture frame, will can be moved corresponding to the picture frame The jitter amplitude value of terminal is less than compared with default Second Threshold b, and by the jitter amplitude value of corresponding mobile terminal Or picture frame equal to default Second Threshold b adds cache image frame queue, you can with by no picture frame shaken And the picture frame addition cache image frame queue of slight jitter occurs;And the jitter amplitude value of corresponding mobile terminal is more than in advance If Second Threshold b picture frame is then added without cache image frame queue, i.e., the picture frame seriously shaken will not add cache image Frame queue.Included in cache image frame queue be all corresponding mobile terminal jitter amplitude value be less than or equal to it is default What is included in Second Threshold b picture frame, namely cache image frame queue is all the picture frame and generation do not shaken The picture frame of slight jitter.In second case, 8 picture frames can be equally included in cache image frame queue always, and wrap 8 picture frames contained are real-time updates.So, 8 picture frames, rather than preview are only included in cache image frame queue always Accessed all picture frames under state, greatly reduce the internal memory of shared mobile terminal.
During the preview image of caching camera collection, if user clicks on shoot button, mobile terminal can To receive photographing instruction.And then it can detect whether mobile terminal is shaken.
It should be noted that after the camera function of unlatching mobile terminal, under preview state, the gravity of mobile terminal passes Sensor can be spaced output data to schedule, and can be that each data stamps timestamp.Three-dimensional straight can be established Angular coordinate system, as shown in figure 3, to establish the schematic diagram of three-dimensional cartesian coordinate system on mobile terminals.
The data of gravity sensor output can be (x, y, z).Wherein, x is the acceleration of mobile terminal in the direction of the x axis Value;Y is the acceleration magnitude of mobile terminal in the y-axis direction;Z is the acceleration magnitude of mobile terminal in the z-axis direction.For gravity Sensor, predetermined time interval can be 20 milliseconds, i.e., gravity sensor can be with one data of every 20 milliseconds output.Gravity sensitive The data of device output can also form a buffer queue, and 13 data can be included in the buffer queue, and in buffer queue 13 data can be with real-time update.Interval in the buffer queue between the timestamp of adjacent two data can be 20 milliseconds.
After receiving photographing instruction, the reception time for receiving photographing instruction can be obtained.And then it can be based on above-mentioned Receive the time, determine the very first time stamp and the second timestamp, wherein, receive the time between the very first time stamp and the second timestamp it Between.Next, mobile terminal can obtain gravity sensor in the first data of very first time stamp collection and in the second timestamp Second data of collection.Assuming that gravity sensor is (x in the first data of very first time stamp collection1, y1, z1);Gravity sensor It is (x in the second data of the second timestamp collection2, y2, z2).The arrow between the first data and the second data can then be calculated Measure length value:
Wherein, vector length values of the A between the first data and the second data;x1The movement of this moment is stabbed for the very first time The acceleration magnitude of terminal in the direction of the x axis;y1This acceleration of moment mobile terminal in the y-axis direction is stabbed for the very first time Value;z1This acceleration magnitude of moment mobile terminal in the z-axis direction is stabbed for the very first time;x2For this moment of the second timestamp The acceleration magnitude of mobile terminal in the direction of the x axis;y2For this acceleration of moment mobile terminal in the y-axis direction of the second timestamp Angle value;z2For this acceleration magnitude of moment mobile terminal in the z-axis direction of the second timestamp.
After calculating the vector length value between the first data and the second data, it can be determined that above-mentioned vector length value is It is no to be more than first threshold a.If mobile terminal judges that above-mentioned vector length value is more than first threshold a, can determine to receive At the time of to photographing instruction, mobile terminal is shaken.
If step 102, detecting that mobile terminal is shaken, jitter amplitude value is obtained.
In a step 102,, can if detecting that mobile terminal is shaken at the time of photographing instruction is received To obtain jitter amplitude value.And can be using above-mentioned vector length value as mobile terminal jitter amplitude value.
Step 103, according to the jitter amplitude value, determine target cache picture frame.
In step 103, mobile terminal can determine target cache according to jitter amplitude value when receiving photographing instruction Picture frame.
Can be had by determining the mode of target cache picture frame by two kinds, introduce first way first here.For the first The cache image frame queue of situation, if above-mentioned vector length value is less than or equal to first threshold a, i.e., taken pictures if received During instruction, the jitter amplitude value of mobile terminal is less than or equal to first threshold a, then when can determine in cache image frame queue Between the stamp first object picture frame minimum receiving the interval between the time.It is then possible to by the time in cache image frame queue Stamp is defined as target cache picture frame less than or equal to the picture frame of the timestamp of first object picture frame.
If above-mentioned vector length value is more than first threshold a, it can determine that timestamp is with connecing in cache image frame queue Second target image frame of the interval minimum between the time receiving.It is then possible to since the second target image frame, you can to postpone Deposit individual picture frame last in image frame queue to start, can also postpone and deposit the 8th picture frame in image frame queue and start, According to timestamp reduce order, by jitter amplitude value corresponding to the picture frame in cache image frame queue successively with first threshold A is compared.Next it may be determined to compare the of obtained first jitter amplitude value less than or equal to first threshold a Three target image frames.
For example, can be by the jitter amplitude value of the 8th mobile terminal corresponding to picture frame compared with first threshold a. , can be by the 7th picture frame pair if the jitter amplitude value of the 8th mobile terminal corresponding to picture frame is more than first threshold a The jitter amplitude value for the mobile terminal answered is compared with first threshold a.If the 7th mobile terminal corresponding to picture frame is trembled Dynamic range value is more than first threshold a, then can be by the jitter amplitude value and first threshold of the 6th mobile terminal corresponding to picture frame A is compared.By that analogy, until the jitter amplitude value for finding first corresponding mobile terminal is less than or equal to the first threshold Untill value a the 3rd target image frame.Finally, timestamp in cache image frame queue can be less than or equal to the 3rd target The picture frame of the timestamp of picture frame is defined as target cache picture frame.
It should be noted that the shake of the first corresponding mobile terminal found for the order reduced according to timestamp Range value is less than or equal to first threshold a the 3rd target image frame, it is believed that in cache image frame queue, timestamp is small In or equal to the timestamp of the 3rd target image frame all picture frames corresponding to the jitter amplitude value of mobile terminal be respectively less than Or equal to first threshold a.Target cache picture frame determined by can thinking is the shake width of corresponding mobile terminal Angle value is less than or equal to first threshold a picture frame, namely can consider that identified target cache picture frame is not have The picture frame shaken.
And if when user clicks on shoot button, firmly smaller, then the jitter amplitude value of mobile terminal may be between first Between threshold value a and Second Threshold b, i.e., now slight jitter may occur for mobile terminal.The order then reduced according to timestamp is looked for The jitter amplitude value of the first corresponding mobile terminal arrived less than or equal to first threshold a the 3rd target image frame when Between stamp can be relatively close to the reception time for receiving photographing instruction, for example, it may be possible to be the 5th picture frame;Clapped if user clicks on Firmly larger during according to button, then the jitter amplitude value of mobile terminal is likely larger than Second Threshold b, i.e., now mobile terminal may Serious shake occurs.The jitter amplitude value for first corresponding mobile terminal that the order then reduced according to timestamp is found is less than Or the 3rd target image frame equal to first threshold a timestamp and receive photographing instruction receive the time between interval Will be long.For example, it may be possible to it is the 2nd picture frame.
Assuming that the order reduced according to timestamp, the jitter amplitude value of the first corresponding mobile terminal eventually found are small In or equal to first threshold a the 3rd target image frame be the 5th picture frame, i.e., the 4th picture frame reciprocal.Then can be from The 4th picture frame of number starts, the order reduced according to timestamp, finds the picture frame that image parameter instruction focusing is completed, and can Picture frame so that find first image parameter instruction focusing to be completed is used as target shooting image.As shown in figure 4, it is one kind Determine the schematic diagram of the mode of target shooting image.
Here the mode of second of determination target cache picture frame is introduced again.For the cache image frame of second case Queue, i.e., the jitter amplitude value for for the picture frame included being corresponding mobile terminal are less than or equal to Second Threshold b Picture frame cache image frame queue, mobile terminal can determine in cache image frame queue timestamp and receive between the time Minimum the 4th target image frame in interval.And then timestamp in cache image frame queue can be less than or equal to the 4th mesh The picture frame of the timestamp of logo image frame is defined as target cache picture frame.
If it should be noted that the timestamp of the 4th target image frame and the target time interval received between the time are small In or equal to prefixed time interval, then mobile terminal can since being cached the 4th target image frame in picture frame queue, It can also postpone since caching in picture frame queue individual picture frame last and deposit in image frame queue the 8th Picture frame starts, the order reduced according to timestamp, finds the picture frame that image parameter instruction focusing is completed, and will can find First image parameter instruction focusing complete picture frame as target shooting image.
If the timestamp of the 4th target image frame and the target time interval received between the time are more than between preset time Every can not then export photo, and prompt message can be exported.The prompt message is used to prompt trembling for user's current mobile terminal Dynamic range value is larger, to keep mobile terminal to grip steady.
Step 104, the picture frame for meeting preparatory condition is chosen as target shooting figure from the target cache picture frame Picture.
At step 104, it is determined that after target cache picture frame, it is possible to choose and meet from target cache picture frame The picture frame of preparatory condition is as target shooting image.For example, image parameter instruction can be chosen from target cache picture frame The picture frame completed focus as target shooting image.
So, can solve user to be taken pictures in outdoor, and when outdoor wind is larger, mobile terminal, which grips shakiness, to be caused The problem of shooting photographic fog;It is handshaking to cause mobile terminal to shake when can solve user and pressing volume key or shoot button The problem of moving, and then causing to shoot photographic fog;Can also solve when taking pictures, user due to it is uncomfortable cause it is handshaking, The problem of ultimately resulting in shooting photographic fog etc..It ensure that the definition of captured photo.
In the embodiment of the present invention, above-mentioned mobile terminal can be mobile phone, tablet personal computer (Tablet Personal Computer), laptop computer (Laptop Computer), personal digital assistant (personal digital Assistant, abbreviation PDA), mobile Internet access device (Mobile Internet Device, MID) or wearable device (Wearable Device) etc..
The image pickup method of the embodiment of the present invention, during the preview image of caching camera collection, if receiving bat According to instruction, then detect whether mobile terminal is shaken;If detecting, mobile terminal is shaken, and obtains jitter amplitude value; According to the jitter amplitude value, target cache picture frame is determined;Chosen from the target cache picture frame and meet preparatory condition Picture frame as target shooting image.So, when mobile terminal receives photographing instruction, if mobile terminal is shaken, The jitter amplitude value of mobile terminal can then be obtained.And then target cache picture frame can be determined according to jitter amplitude value.Most Afterwards, the picture frame for meeting preparatory condition can be chosen from target cache picture frame as target shooting image.The photo of shooting Than more visible, perfect photograph taking effect.
Referring to Fig. 5, Fig. 5 is the flow chart of image pickup method provided in an embodiment of the present invention, the present embodiment and previous implementation The difference of example is to illustrate the mode for determining target shooting image.As shown in figure 5, comprise the following steps:
Step 501, caching camera collection preview image during, obtain first group of picture frame, described first The timestamp of jitter amplitude value corresponding to each picture frame and each picture frame in group picture frame, wherein, described first group Picture frame includes at least two cache image frames.
In step 501, caching camera collection preview image during, can obtain first group of picture frame, The timestamp of jitter amplitude value corresponding to each picture frame and each picture frame in first group of picture frame.Wherein, first group Picture frame includes at least two cache image frames.
Once mentioned in previous embodiment, it is mobile whole under preview state after the camera function for opening mobile terminal The gravity sensor at end can be spaced output data to schedule, and can be that each data stamps timestamp.For Any one picture frame, two data that can be exported to should determine that gravity sensor.Wherein, gravity sensor is exported Two data timestamp and the picture frame timestamp it is closest.
As shown in fig. 6, it is the buffer queue of a kind of cache image frame queue and the data composition of gravity sensor output Schematic diagram.
In figure 6, first group of picture frame includes 8 picture frames, the buffer queue of the data composition of gravity sensor output Include 13 data.For the 2nd picture frame, the t=20ms that can be exported by gravity sensor data and t=40ms Data calculate the jitter amplitude value of the 2nd mobile terminal corresponding to picture frame;For the 3rd picture frame, weight can be passed through The t=60ms data and t=80ms data of force snesor output calculate the 3rd mobile terminal corresponding to picture frame Jitter amplitude value;For the 4th picture frame, the t=80ms that can be exported by gravity sensor data and t=100ms Data calculate jitter amplitude value of the 4th mobile terminal corresponding to picture frame etc..So, first group of figure can be calculated As in frame 8 picture frames distinguish corresponding to mobile terminal jitter amplitude value.Specific calculating process is in previous embodiment It is middle to have carried out detailed elaboration, it will not be repeated here.
If step 502, receiving the photographing instruction, the reception time for receiving the photographing instruction is obtained.
In step 502, if user clicks on shoot button, mobile terminal can receives photographing instruction, Jin Erke To obtain the reception time for receiving photographing instruction.Assuming that the reception time for receiving photographing instruction is 10:00.
Step 503, based on the reception time, determine very first time stamp and the second timestamp, wherein, the reception time Between very first time stamp and second timestamp.
In step 503, the above-mentioned reception time can be based on, determines very first time stamp and the second timestamp, wherein, receive Time is stabbed between the second timestamp between the very first time.
Step 504, gravity sensor is obtained in the first data of very first time stamp collection and in the collection of the second timestamp Second data.
In step 504, mobile terminal can obtain gravity sensor the very first time stamp collection the first data and Second data of the second timestamp collection.
Vector length value between step 505, calculating first data and second data.
In step 505, mobile terminal can also calculate the vector length value between the first data and the second data.Specifically Calculating process has carried out detailed elaboration in previous embodiment, will not be repeated here.
If step 506, the vector length value are more than first threshold, it is determined that mobile terminal is shaken.
In step 506, mobile terminal may determine that whether above-mentioned vector length value is more than first threshold a.It is if mobile Terminal judges that above-mentioned vector length value is more than first threshold a, then at the time of can determining to receive photographing instruction, mobile terminal Shaken.
If step 507, detecting that mobile terminal is shaken, jitter amplitude value is obtained, the jitter amplitude value is institute State vector length value.
,, can if detecting that mobile terminal is shaken at the time of photographing instruction is received in step 507 To obtain jitter amplitude value.And can be using above-mentioned vector length value as mobile terminal jitter amplitude value.
If step 508, the vector length value are less than or equal to the first threshold, it is determined that first group of image Timestamp and the first object picture frame for receiving the interval minimum between the time in frame.
In step 508, if above-mentioned vector length value is less than or equal to first threshold a, i.e., taken pictures if received During instruction, the jitter amplitude value of mobile terminal is less than or equal to first threshold a, then can determine the time in first group of picture frame Stamp and the first object picture frame for receiving the interval minimum between the time.
Step 509, by timestamp in first group of picture frame be less than or equal to the first object picture frame when Between the picture frame that stabs be defined as the target cache picture frame.
In step 509, can by timestamp in first group of picture frame be less than or equal to first object picture frame when Between the picture frame that stabs be defined as target cache picture frame.
If step 5010, the vector length value are more than the first threshold, it is determined that when in first group of picture frame Between minimum the second target image frame in interval between stamp and the reception time.
In step 5010, if above-mentioned vector length value is more than first threshold a, it can determine in first group of picture frame Timestamp and the second target image frame for receiving the interval minimum between the time.
Step 5011, since the second target image frame, according to timestamp reduce order, by first group of figure Jitter amplitude value is successively compared with the first threshold as corresponding to the picture frame in frame.
, can be since the second target image frame, you can with last from first group of picture frame in step 5011 Individual picture frame starts, also can be since first group of picture frame the 8th picture frame, will according to the order of timestamp reduction Jitter amplitude value corresponding to picture frame in first group of picture frame is successively compared with first threshold a.
For example, can be by the jitter amplitude value of the 8th mobile terminal corresponding to picture frame compared with first threshold a. , can be by the 7th picture frame pair if the jitter amplitude value of the 8th mobile terminal corresponding to picture frame is more than first threshold a The jitter amplitude value for the mobile terminal answered is compared with first threshold a.If the 7th mobile terminal corresponding to picture frame is trembled Dynamic range value is more than first threshold a, then can be by the jitter amplitude value and first threshold of the 6th mobile terminal corresponding to picture frame A is compared.By that analogy, until the jitter amplitude value for finding first corresponding mobile terminal is less than or equal to the first threshold Untill value a picture frame.
First jitter amplitude value that step 5012, determination compare to obtain is less than or equal to the 3rd of the first threshold Target image frame.
In step 5012, it may be determined that first jitter amplitude value for comparing to obtain is less than or equal to first threshold a The 3rd target image frame.If user clicks on shoot button, firmly smaller, then the jitter amplitude value of mobile terminal may be situated between Between first threshold a and Second Threshold b, i.e., now slight jitter may occur for mobile terminal.Then reduce according to timestamp The jitter amplitude value for first corresponding mobile terminal that order is found is less than or equal to first threshold a the 3rd target image The timestamp of frame can be relatively close to the reception time for receiving photographing instruction, for example, it may be possible to be the 5th picture frame;If user When clicking on shoot button, firmly larger, then the jitter amplitude value of mobile terminal is likely larger than Second Threshold b, i.e., now mobile whole End may occur seriously to shake.The jitter amplitude for first corresponding mobile terminal that the order then reduced according to timestamp is found Between the timestamp of the 3rd target image frame of the value less than or equal to first threshold a and the reception time for receiving photographing instruction Interval will be long.For example, it may be possible to it is the 2nd picture frame.
Assuming that the order reduced according to timestamp, the jitter amplitude value of the first corresponding mobile terminal eventually found are small In or equal to first threshold a the 3rd target image frame be the 5th picture frame, i.e., the 4th picture frame reciprocal.Then can be from The 4th picture frame of number starts, the order reduced according to timestamp, finds the picture frame that image parameter instruction focusing is completed, and can Picture frame so that find first image parameter instruction focusing to be completed is used as target shooting image.
Step 5013, by timestamp in first group of picture frame be less than or equal to the 3rd target image frame when Between the picture frame that stabs be defined as the target cache picture frame.
In step 5013, can by timestamp in first group of picture frame be less than or equal to the 3rd target image frame when Between the picture frame that stabs be defined as target cache picture frame.
Timestamp in first group of picture frame can be less than or equal to the 1st of the timestamp of the 3rd target image frame 2nd picture frame, timestamp of the timestamp that picture frame, timestamp are less than or equal to the 3rd target image frame are less than or waited The 3rd picture frame, timestamp in the timestamp of the 3rd target image frame are less than or equal to the time of the 3rd target image frame The 4th picture frame and timestamp of stamp are equal to the 5th picture frame of the timestamp of the 3rd target image frame as above-mentioned target Cache image frame.
Step 5014, the picture frame for meeting preparatory condition is chosen as target shooting figure from the target cache picture frame Picture.
In step 5014, it can be chosen from target cache picture frame and meet that the picture frame of preparatory condition is clapped as target Take the photograph image.Clapped for example, the picture frame that image parameter instruction focusing is completed can be chosen from target cache picture frame as target Take the photograph image.
So, can solve user to be taken pictures in outdoor, and when outdoor wind is larger, mobile terminal, which grips shakiness, to be caused The problem of shooting photographic fog;It is handshaking to cause mobile terminal to shake when can solve user and pressing volume key or shoot button The problem of moving, and then causing to shoot photographic fog;Can also solve when taking pictures, user due to it is uncomfortable cause it is handshaking, The problem of ultimately resulting in shooting photographic fog etc..It ensure that the definition of captured photo.
The image pickup method of the embodiment of the present invention, during the preview image of caching camera collection, obtain first group The timestamp of jitter amplitude value and each picture frame corresponding to each picture frame in picture frame, first group of picture frame, Wherein, first group of picture frame includes at least two cache image frames;If receiving the photographing instruction, acquisition receives The reception time of the photographing instruction;Based on the reception time, very first time stamp and the second timestamp are determined, wherein, it is described The reception time is stabbed between second timestamp between the very first time;Obtain gravity sensor and stab collection in the very first time The first data and the second timestamp collection the second data;Calculate the arrow between first data and second data Measure length value;If the vector length value is more than first threshold, it is determined that mobile terminal is shaken;If detect mobile terminal Shake, then obtain jitter amplitude value, the jitter amplitude value is the vector length value;If the vector length value is less than Or equal to the first threshold, it is determined that the interval in first group of picture frame between timestamp and the reception time is most Small first object picture frame;Timestamp in first group of picture frame is less than or equal to the first object picture frame The picture frame of timestamp is defined as the target cache picture frame;If the vector length value is more than the first threshold, really Timestamp and the second target image frame for receiving the interval minimum between the time in fixed first group of picture frame;From described Second target image frame starts, and the order reduced according to timestamp, will be trembled corresponding to the picture frame in first group of picture frame Dynamic range value is successively compared with the first threshold;It is determined that first jitter amplitude value for comparing to obtain is less than or equal to 3rd target image frame of the first threshold;Timestamp in first group of picture frame is less than or equal to the 3rd mesh The picture frame of the timestamp of logo image frame is defined as the target cache picture frame;Chosen from the target cache picture frame full The picture frame of sufficient preparatory condition is as target shooting image.So, when mobile terminal receives photographing instruction, if mobile terminal Shake, then can obtain the jitter amplitude value of mobile terminal.And then target cache figure can be determined according to jitter amplitude value As frame.Finally, the picture frame for meeting preparatory condition can be chosen from target cache picture frame as target shooting image.Shooting Photo than more visible, perfect photograph taking effect.
Referring to Fig. 7, Fig. 7 is the flow chart of image pickup method provided in an embodiment of the present invention, the present embodiment and previous implementation The difference of example is to illustrate another mode for determining target shooting image.As shown in fig. 7, comprises following steps:
Step 701, caching camera collection preview image during, obtain jitter amplitude value be less than or equal to The timestamp of each picture frame in second group of picture frame of Second Threshold and second group of picture frame, wherein, described second Group picture frame includes at least two cache image frames, and the Second Threshold is more than the first threshold.
In step 701, during the preview image of caching camera collection, jitter amplitude value can be obtained and be less than Or in the second group of picture frame and second group of picture frame equal to Second Threshold b each picture frame timestamp.Wherein, second Group picture frame includes at least two cache image frames, and Second Threshold b is more than first threshold a.That is included in second group of picture frame All it is the picture frame do not shaken and the picture frame that slight jitter occurs.
If step 702, receiving the photographing instruction, the reception time for receiving the photographing instruction is obtained.
In a step 702, if user clicks on shoot button, mobile terminal can receives photographing instruction, Jin Erke To obtain the reception time for receiving photographing instruction.Assuming that the reception time for receiving photographing instruction is 11:00.
Step 703, based on the reception time, determine very first time stamp and the second timestamp, wherein, the reception time Between very first time stamp and second timestamp.
In step 703, the above-mentioned reception time can be based on, determines very first time stamp and the second timestamp, wherein, receive Time is stabbed between the second timestamp between the very first time.
Step 704, gravity sensor is obtained in the first data of very first time stamp collection and in the collection of the second timestamp Second data.
In step 704, mobile terminal can obtain gravity sensor the very first time stamp collection the first data and Second data of the second timestamp collection.
Vector length value between step 705, calculating first data and second data.
In step 705, mobile terminal can also calculate the vector length value between the first data and second data. Specific calculating process has carried out detailed elaboration in one embodiment, will not be repeated here.
If step 706, the vector length value are more than first threshold, it is determined that mobile terminal is shaken.
In step 706, mobile terminal may determine that whether above-mentioned vector length value is more than first threshold a.It is if mobile Terminal judges that above-mentioned vector length value is more than first threshold a, then at the time of can determining to receive photographing instruction, mobile terminal Shaken.
If step 707, detecting that mobile terminal is shaken, jitter amplitude value is obtained, the jitter amplitude value is institute State vector length value.
,, can if detecting that mobile terminal is shaken at the time of photographing instruction is received in step 707 To obtain jitter amplitude value.And can be using above-mentioned vector length value as mobile terminal jitter amplitude value.
Step 708, determine timestamp in second group of picture frame and the interval that receives between the time it is minimum the Four target image frames.
In step 708, as shown in figure 8, being another cache image frame queue and the data group of gravity sensor output Into buffer queue schematic diagram.
In fig. 8, cache image frame queue includes 8 picture frames, the caching team of the data composition of gravity sensor output Row include 13 data.
Mobile terminal can determine timestamp in second group of picture frame and receive the 4th mesh for being spaced minimum between the time Logo image frame.In fig. 8, the 8th picture frame in second group of picture frame is the 4th target image frame, i.e. second group of picture frame In individual picture frame last be the 4th target image frame.
Step 709, by timestamp in second group of picture frame be less than or equal to the 4th target image frame when Between the picture frame that stabs be defined as the target cache picture frame.
In step 709, can by timestamp in second group of picture frame be less than or equal to the 4th target image frame when Between the picture frame that stabs be defined as target cache picture frame.Timestamp in second group of picture frame can be less than or equal to the 4th The 1st picture frame, the timestamp of the timestamp of target image frame are less than or equal to the 2nd of the timestamp of the 4th target image frame Individual picture frame, timestamp be less than or equal to the 4th target image frame timestamp the 3rd picture frame, timestamp be less than or The 4th picture frame, timestamp equal to the timestamp of the 4th target image frame be less than or equal to the 4th target image frame when Between stab the 5th picture frame, timestamp be less than or equal to the 4th target image frame timestamp the 6th picture frame, time Stamp is equal to the 4th target image frame less than or equal to the 7th picture frame and timestamp of the timestamp of the 4th target image frame Timestamp the 8th picture frame as target cache picture frame.
Step 7010, the timestamp for obtaining the 4th target image frame and the target time interval received between the time.
In step 7010, can obtain the 4th target image frame timestamp and receive the time between object time between Every.As shown in figure 8, the timestamp of the 8th picture frame in second group of picture frame can be obtained and receive the target between the time Time interval;Also can obtain between the timestamp of the individual picture frame last in second group of picture frame and reception time Target time interval.
Step 7011, judge whether the target time interval is more than prefixed time interval.
In step 7011, mobile terminal may determine that whether above-mentioned target time interval is more than prefixed time interval.Its In the prefixed time interval can be 300 milliseconds.
If step 7012, the target time interval are less than or equal to the prefixed time interval, from the target The picture frame for meeting preparatory condition is chosen in cache image frame as target shooting image.
In step 7012, if target time interval is less than or equal to prefixed time interval, i.e., if the object time Interval is less than or equal to 300 milliseconds, then the picture frame conduct for meeting preparatory condition can be chosen from target cache picture frame Target shooting image.
As shown in Figure 8, it is assumed that within 100 milliseconds before at the time of receiving photographing instruction, the shake width of mobile terminal Angle value is more than Second Threshold b always, then is moved corresponding to mobile terminal 3 picture frames accessed within this 100 milliseconds The jitter amplitude value of terminal is all higher than Second Threshold b.Therefore, this 3 picture frames can not add cache image frame queue.Cause This, 11:00 at the time of receive photographing instruction, and the picture frame in cache image frame queue delays before being still 100 milliseconds The picture frame deposited.
, will but the timestamp due to the 4th target image frame and the time interval between the reception time are only 100 milliseconds The picture frame cached before 100 milliseconds is pushed to user still in tolerance interval.Therefore can be from target cache image The picture frame for meeting preparatory condition is chosen in frame as target shooting image.For example, can from second group of picture frame timestamp With receive time immediate 4th target image frame start, you can with from second group of picture frame individual picture frame last open Begin, also, according to the order of timestamp reduction, image parameter can be found since second group of picture frame the 8th picture frame The picture frame that focusing is completed is indicated, and the picture frame that can complete find first image parameter instruction focusing is as target Shooting image.
Optionally, described chosen from the target cache picture frame meets that the picture frame of preparatory condition is shot as target The step of image, including:
From the target cache picture frame, choose the picture frame that image parameter instruction focusing is completed and clapped as the target Take the photograph image;
Wherein, each picture frame in the target cache picture frame includes the image parameter of instruction focusing state.
As it was previously stated, the picture frame conduct that image parameter instruction focusing is completed can be chosen from target cache picture frame Target shooting image.Wherein, each picture frame in target cache picture frame includes the image parameter of instruction focusing state.
If step 7013, the target time interval are more than the prefixed time interval, prompt message is exported, it is described to carry Show that information is used to prompt user to keep mobile terminal to grip steadily.
In step 7013, if the timestamp of the 4th target image frame and the target time interval received between the time are big In prefixed time interval, i.e., if target time interval is more than 300 milliseconds, then photo can not be exported, and prompting can be exported Information.The prompt message is used to prompt the jitter amplitude value of user's current mobile terminal larger, to keep mobile terminal to grip flat Surely.
For example, it is assumed that within 10 seconds before at the time of receiving photographing instruction, the jitter amplitude value of mobile terminal is always More than Second Threshold b, then the shake of mobile terminal corresponding to mobile terminal multiple images frame accessed within this 10 seconds Range value is all higher than Second Threshold b.Therefore, mobile terminal multiple images frame accessed within this 10 seconds can not add Cache image frame queue.Therefore, 11:00 at the time of receive photographing instruction, and the picture frame in cache image frame queue is still It is the picture frame cached before 10 seconds.The picture frame cached before 10 seconds is now pushed to user's not how many meaning Justice.Therefore, if above-mentioned target time interval is more than prefixed time interval, photo can not be exported, and prompting can be exported Information.The prompt message is used to prompt the jitter amplitude value of user's current mobile terminal larger, to keep mobile terminal to grip flat Surely.
The benefit of prefixed time interval is set to can be prevented from by timestamp before at the time of receiving photographing instruction, And timestamp with receiving photographing instruction at the time of the picture frame that differs farther out be pushed to user.It can ensure to be pushed to user's Picture frame be timestamp with receiving photographing instruction at the time of differ less picture frame.
So, can solve user to be taken pictures in outdoor, and when outdoor wind is larger, mobile terminal, which grips shakiness, to be caused The problem of shooting photographic fog;It is handshaking to cause mobile terminal to shake when can solve user and pressing volume key or shoot button The problem of moving, and then causing to shoot photographic fog;Can also solve when taking pictures, user due to it is uncomfortable cause it is handshaking, The problem of ultimately resulting in shooting photographic fog etc..It ensure that the definition of captured photo.
The image pickup method of the embodiment of the present invention, during the preview image of caching camera collection, obtain shake width Time of the angle value less than or equal to each picture frame in second group of picture frame of Second Threshold and second group of picture frame Stamp, wherein, second group of picture frame includes at least two cache image frames, and the Second Threshold is more than the first threshold; If receiving the photographing instruction, the reception time for receiving the photographing instruction is obtained;Based on the reception time, it is determined that The very first time stab and the second timestamp, wherein, it is described reception the time between the very first time stamp and second timestamp it Between;Obtain first data of the gravity sensor in very first time stamp collection and the second data in the collection of the second timestamp;Calculate Vector length value between first data and second data;If the vector length value is more than first threshold, really Determine mobile terminal to shake;If detecting, mobile terminal is shaken, and obtains jitter amplitude value, and the jitter amplitude value is The vector length value;Determine the 4th of the interval minimum in second group of picture frame between timestamp and the reception time Target image frame;Timestamp in second group of picture frame is less than or equal to the timestamp of the 4th target image frame Picture frame is defined as the target cache picture frame;Obtain between the timestamp of the 4th target image frame and the reception time Target time interval;Judge whether the target time interval is more than prefixed time interval;If the target time interval is less than Or equal to the prefixed time interval, then the picture frame conduct for meeting preparatory condition is chosen from the target cache picture frame Target shooting image;If the target time interval is more than the prefixed time interval, prompt message, the prompting letter are exported Cease steady for prompting user to keep mobile terminal to grip.So, when mobile terminal receives photographing instruction, if mobile terminal Shake, then can obtain the jitter amplitude value of mobile terminal.And then target cache figure can be determined according to jitter amplitude value As frame.Finally, the picture frame for meeting preparatory condition can be chosen from target cache picture frame as target shooting image.Shooting Photo than more visible, perfect photograph taking effect.
Referring to Fig. 9, Fig. 9 is the structure chart for the mobile terminal that the present invention implements offer, as shown in figure 9, mobile terminal 900 wraps Include detection module 901, the first acquisition module 902, determining module 903 and choose module 904, detection module 901 and first obtains Module 902 is connected, and the first acquisition module 902 is connected with determining module 903, and determining module 903 is connected with choosing module 904, its In:
Detection module 901, for caching camera collection preview image during, if receiving photographing instruction, Then whether detection mobile terminal is shaken;
First acquisition module 902, if for detecting that mobile terminal is shaken, obtain jitter amplitude value;
Determining module 903, for according to the jitter amplitude value, determining target cache picture frame;
Module 904 is chosen, for choosing the picture frame for meeting preparatory condition from the target cache picture frame as mesh Mark shooting image.
Optionally, as shown in Figure 10, the detection module 901 includes:
First acquisition submodule 9011, if for receiving the photographing instruction, acquisition receives the photographing instruction The reception time;
First determination sub-module 9012, for based on the reception time, determining very first time stamp and the second timestamp;
Second acquisition submodule 9013, for obtaining gravity sensor in the first data of very first time stamp collection and the Second data of two timestamps collection;
Calculating sub module 9014, for calculating the vector length value between first data and second data;
Second determination sub-module 9015, if being more than first threshold for the vector length value, it is determined that mobile terminal is sent out Raw shake;
Wherein, the reception time is stabbed between second timestamp between the very first time;The jitter amplitude It is worth for the vector length value.
Optionally, as shown in figure 11, the mobile terminal also includes:
Second acquisition module 905, for obtaining each picture frame pair in first group of picture frame, first group of picture frame The jitter amplitude value and the timestamp of each picture frame answered;
Wherein, first group of picture frame includes at least two cache image frames;
The determining module 903 includes:
3rd determination sub-module 9031, if being less than or equal to the first threshold for the vector length value, really Timestamp and the first object picture frame for receiving the interval minimum between the time in fixed first group of picture frame;
4th determination sub-module 9032, for timestamp in first group of picture frame to be less than or equal into described first The picture frame of the timestamp of target image frame is defined as the target cache picture frame.
Optionally, as shown in figure 12, the determining module 903 also includes:
5th determination sub-module 9033, if being more than the first threshold for the vector length value, it is determined that described Timestamp and the second target image frame for receiving the interval minimum between the time in one group of picture frame;
Comparison sub-module 9034, for the order since the second target image frame, reduced according to timestamp, by institute Jitter amplitude value corresponding to the picture frame in first group of picture frame is stated successively compared with the first threshold;
6th determination sub-module 9035, first jitter amplitude value for determining to compare to obtain are less than or equal to described 3rd target image frame of first threshold;
7th determination sub-module 9036, for timestamp in first group of picture frame to be less than or equal into the described 3rd The picture frame of the timestamp of target image frame is defined as the target cache picture frame.
Optionally, as shown in figure 13, the mobile terminal also includes:
3rd acquisition module 906, second group of picture frame of Second Threshold is less than or equal to for obtaining jitter amplitude value With the timestamp of each picture frame in second group of picture frame;
Wherein, second group of picture frame includes at least two cache image frames;
The determining module 903 also includes:
8th determination sub-module 9037, for determining in second group of picture frame between timestamp and the reception time Minimum the 4th target image frame in interval;
9th determination sub-module 9038, for timestamp in second group of picture frame to be less than or equal into the described 4th The picture frame of the timestamp of target image frame is defined as the target cache picture frame;
Wherein, the Second Threshold is more than the first threshold.
Optionally, as shown in figure 14, the mobile terminal also includes:
4th acquisition module 907, for the timestamp for obtaining the 4th target image frame and the mesh received between the time Mark time interval;
Judge module 908, for judging whether the target time interval is more than prefixed time interval;
Execution module 909, if being less than or equal to the prefixed time interval for the target time interval, perform It is described that the step of picture frame for meeting preparatory condition is as target shooting image is chosen from the target cache picture frame;
Output module 9010, if being more than the prefixed time interval, output prompting letter for the target time interval Breath, the prompt message are used to prompt user to keep mobile terminal to grip steadily.
Optionally, the selection module 904 is specifically used for:
From the target cache picture frame, choose the picture frame that image parameter instruction focusing is completed and clapped as the target Take the photograph image;
Wherein, each picture frame in the target cache picture frame includes the image parameter of instruction focusing state.
Mobile terminal 900 can realize each process that mobile terminal is realized in Fig. 1, Fig. 5 and Fig. 7 embodiment of the method, To avoid repeating, repeat no more here.And mobile terminal 900 can be realized when receiving photographing instruction, if mobile terminal is sent out Raw shake, then it can obtain the jitter amplitude value of mobile terminal.And then target cache image can be determined according to jitter amplitude value Frame.Finally, the picture frame for meeting preparatory condition can be chosen from target cache picture frame as target shooting image.Shooting Photo is than more visible, perfect photograph taking effect.
Referring to Figure 15, Figure 15 is the structure chart for the mobile terminal that the present invention implements offer, as shown in figure 15, mobile terminal 1500 include:At least one processor 1501, memory 1502, at least one network interface 1504 and user interface 1503 and deposit The computer program that can be run on memory 1502 and on processor 1501 is stored up, computer program is performed by processor 1501 The step of Shi Shixian above-mentioned image pickup methods.Each component in mobile terminal 1500 is coupled by bus system 1505. It is understood that bus system 1505 is used to realize the connection communication between these components.Bus system 1505, which is removed, includes data/address bus Outside, in addition to power bus, controlling bus and status signal bus in addition.But for the sake of clear explanation, in fig.15 will be each Kind bus is all designated as bus system 1505.
Wherein, user interface 1503 can include display, keyboard or pointing device (for example, mouse, trace ball (track ball), touch-sensitive plate or touch-screen etc..
It is appreciated that the memory 1502 in the embodiment of the present invention can be volatile memory or non-volatile memories Device, or may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read-Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), erasable programmable are only Read memory (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, ) or flash memory EEPROM.Volatile memory can be random access memory (Random Access Memory, RAM), and it is used Make External Cache.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static random-access Memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random-access Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SDRAM, DDRSDRAM), it is enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronous Connect dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The memory 1502 of system and method described herein be intended to including but not limited to this A little and any other suitable type memory.
In some embodiments, memory 1502 stores following element, can perform module or data structure, or Their subset of person, or their superset:Operating system 15021 and application program 15022.
Wherein, operating system 15021, comprising various system programs, such as ccf layer, core library layer, driving layer etc., it is used for Realize various basic businesses and the hardware based task of processing.Application program 15022, include various application programs, such as matchmaker Body player (Media Player), browser (Browser) etc., for realizing various applied business.Realize that the present invention is implemented The program of example method may be embodied in application program 15022.
In embodiments of the present invention, by calling program or the instruction of the storage of memory 1502, specifically, can be application The program stored in program 15022 or instruction, processor 1501 are used for:In the process of the preview image of caching camera collection In, if receiving photographing instruction, whether detection mobile terminal is shaken;If detecting, mobile terminal is shaken, and obtains Take jitter amplitude value;According to the jitter amplitude value, target cache picture frame is determined;Chosen from the target cache picture frame Meet the picture frame of preparatory condition as target shooting image.
The method that the embodiments of the present invention disclose can apply in processor 1501, or real by processor 1501 It is existing.Processor 1501 is probably a kind of IC chip, has the disposal ability of signal.In implementation process, the above method Each step can be completed by the instruction of the integrated logic circuit of the hardware in processor 1501 or software form.Above-mentioned Processor 1501 can be general processor, digital signal processor (Digital Signal Processor, DSP), special Integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) either other PLDs, discrete gate or transistor logic, Discrete hardware components.It can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general Processor can be microprocessor or the processor can also be any conventional processor etc..With reference to institute of the embodiment of the present invention The step of disclosed method, can be embodied directly in hardware decoding processor and perform completion, or with the hardware in decoding processor And software module combination performs completion.Software module can be located at random access memory, flash memory, read-only storage, may be programmed read-only In the ripe storage medium in this area such as memory or electrically erasable programmable memory, register.The storage medium is located at Memory 1502, processor 1501 read the information in memory 1502, with reference to the step of its hardware completion above method.
It is understood that embodiments described herein can use hardware, software, firmware, middleware, microcode or its Combine to realize.Realized for hardware, processing unit can be realized in one or more application specific integrated circuit (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor, In controller, microcontroller, microprocessor, other electronic units for performing herein described function or its combination.
Realize, can be realized herein by performing the module (such as process, function etc.) of function described herein for software Described technology.Software code is storable in memory and passes through computing device.Memory can within a processor or Realized outside processor.
Optionally, processor 1501 is additionally operable to:If receiving the photographing instruction, acquisition receives the photographing instruction The reception time;Based on the reception time, very first time stamp and the second timestamp are determined;Gravity sensor is obtained at first Between stab collection the first data and the second timestamp collection the second data;Calculate first data and second data Between vector length value;If the vector length value is more than first threshold, it is determined that mobile terminal is shaken;Wherein, institute The reception time is stated to stab between second timestamp between the very first time;The jitter amplitude value is the vector length Value.
Optionally, processor 1501 is additionally operable to:Obtain each image in first group of picture frame, first group of picture frame The timestamp of jitter amplitude value corresponding to frame and each picture frame;Wherein, first group of picture frame is slow including at least two Deposit picture frame;If the vector length value is less than or equal to the first threshold, it is determined that when in first group of picture frame Between the minimum first object picture frame in interval between stamp and the reception time;Timestamp in first group of picture frame is small It is defined as the target cache picture frame in or equal to the picture frame of timestamp of the first object picture frame.
Optionally, processor 1501 is additionally operable to:If the vector length value is more than the first threshold, it is determined that described Timestamp and the second target image frame for receiving the interval minimum between the time in one group of picture frame;From second target Picture frame starts, the order reduced according to timestamp, by jitter amplitude value corresponding to the picture frame in first group of picture frame Successively compared with the first threshold;It is determined that first jitter amplitude value for comparing to obtain is less than or equal to described first 3rd target image frame of threshold value;Timestamp in first group of picture frame is less than or equal to the 3rd target image frame The picture frame of timestamp be defined as the target cache picture frame.
Optionally, processor 1501 is additionally operable to:Obtain second group of figure that jitter amplitude value is less than or equal to Second Threshold As the timestamp of each picture frame in frame and second group of picture frame;Wherein, second group of picture frame includes at least two Open cache image frame;Determine timestamp and the 4th mesh for receiving the interval minimum between the time in second group of picture frame Logo image frame;Timestamp in second group of picture frame is less than or equal to the figure of the timestamp of the 4th target image frame As frame is defined as the target cache picture frame;Wherein, the Second Threshold is more than the first threshold.
Optionally, processor 1501 is additionally operable to:Obtain between the timestamp of the 4th target image frame and the reception time Target time interval;Judge whether the target time interval is more than prefixed time interval;If the target time interval is small In or equal to the prefixed time interval, then perform described chosen from the target cache picture frame and meet preparatory condition The step of picture frame is as target shooting image;If the target time interval is more than the prefixed time interval, output carries Show information, the prompt message is used to prompt user to keep mobile terminal to grip steadily.
Optionally, processor 1501 is additionally operable to:From the target cache picture frame, choose image parameter instruction and focused Into picture frame as the target shooting image;Wherein, each picture frame in the target cache picture frame includes referring to Show the image parameter of focusing state.
Mobile terminal 1500 can realize each process that mobile terminal is realized in previous embodiment, to avoid repeating, this In repeat no more., can be with if mobile terminal is shaken and mobile terminal 1500 can be realized when receiving photographing instruction Obtain the jitter amplitude value of mobile terminal.And then target cache picture frame can be determined according to jitter amplitude value.Finally, can be with The picture frame for meeting preparatory condition is chosen from target cache picture frame as target shooting image.The photo of shooting is more clear It is clear, perfect photograph taking effect.
Figure 16 is a kind of hardware architecture diagram for the mobile terminal for realizing each embodiment of the present invention.
The mobile terminal 1600 includes but is not limited to:Radio frequency unit 1601, mixed-media network modules mixed-media 1602, audio output unit 1603rd, input block 1604, sensor 1605, display unit 1606, user input unit 1607, interface unit 1608, storage The parts such as device 1609, processor 1610 and power supply 1611.It will be understood by those skilled in the art that the movement shown in Figure 16 Terminal structure does not form the restriction to mobile terminal, and mobile terminal can include parts more more or less than diagram, or Combine some parts, or different parts arrangement.In embodiments of the present invention, mobile terminal includes but is not limited to mobile phone, put down Plate computer, notebook computer, palm PC, car-mounted terminal, wearable device and pedometer etc..
Processor 1610, for caching camera collection preview image during, if receiving photographing instruction, Whether detection mobile terminal is shaken;If detecting, mobile terminal is shaken, and obtains jitter amplitude value;Trembled according to described Dynamic range value, determines target cache picture frame;Chosen from the target cache picture frame and meet that the picture frame of preparatory condition is made For target shooting image.
When receiving photographing instruction, if mobile terminal is shaken, the jitter amplitude value of mobile terminal can be obtained. And then target cache picture frame can be determined according to jitter amplitude value.Finally, satisfaction can be chosen from target cache picture frame The picture frame of preparatory condition is as target shooting image.The photo of shooting is than more visible, perfect photograph taking effect.
It should be understood that in the embodiment of the present invention, radio frequency unit 1601 can be used for receiving and sending messages or communication process in, signal Reception and transmission, specifically, by from base station downlink data receive after, handled to processor 1610;In addition, will be up Data are sent to base station.Generally, radio frequency unit 1601 includes but is not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 1601 can also pass through wireless communication system and network and other Equipment communication.
Mobile terminal has provided the user wireless broadband internet by mixed-media network modules mixed-media 1602 and accessed, and such as helps user to receive Send e-mails, browse webpage and access streaming video etc..
Audio output unit 1603 can be receiving by radio frequency unit 1601 or mixed-media network modules mixed-media 1602 or in memory It is sound that the voice data stored in 1609, which is converted into audio signal and exported,.Moreover, audio output unit 1603 can be with The audio output related to the specific function that mobile terminal 1600 performs is provided (for example, call signal receives sound, message sink Sound etc.).Audio output unit 1603 includes loudspeaker, buzzer and receiver etc..
Input block 1604 is used to receive audio or video signal.Input block 1604 can include graphics processor (Graphics Processing Unit, GPU) 16041 and microphone 16042, graphics processor 16041 in video to capturing The static images or the view data of video obtained in pattern or image capture mode by image capture apparatus (such as camera) enter Row processing.Picture frame after processing may be displayed on display unit 1606.Picture frame after the processing of graphics processor 16041 It can be stored in memory 1609 (or other storage mediums) or be carried out via radio frequency unit 1601 or mixed-media network modules mixed-media 1602 Send.Microphone 16042 can receive sound, and can be voice data by such acoustic processing.Audio after processing Data can be converted to the lattice that mobile communication base station can be sent to via radio frequency unit 1601 in the case of telephone calling model Formula exports.
Mobile terminal 1600 also includes at least one sensor 1605, for example, optical sensor, motion sensor and other Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to ring The light and shade of environmental light adjusts the brightness of display panel 16061, proximity transducer can when mobile terminal 1600 is moved in one's ear, Close display panel 16061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions The size of (generally three axles) acceleration, can detect that size and the direction of gravity when static, available for identification mobile terminal appearance State (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) Deng;Sensor 1605 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, gas Meter, hygrometer, thermometer, infrared ray sensor etc. are pressed, will not be repeated here.
Display unit 1606 is used for the information for showing the information inputted by user or being supplied to user.Display unit 1606 can Including display panel 16061, liquid crystal display (Liquid Crystal Display, LCD), organic light-emitting diodes can be used Forms such as (Organic Light-Emitting Diode, OLED) is managed to configure display panel 16061.
User input unit 1607 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal The key signals input that family is set and function control is relevant.Specifically, user input unit 1607 include contact panel 16071 with And other input equipments 16072.Contact panel 16071, also referred to as touch-screen, collect touch behaviour of the user on or near it Make (for example user uses any suitable objects or annex such as finger, stylus on contact panel 16071 or in contact panel Operation near 16071).Contact panel 16071 may include both touch detecting apparatus and touch controller.Wherein, touch The touch orientation of detection means detection user is touched, and detects the signal that touch operation is brought, transmits a signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 1610, Order that reception processing device 1610 is sent simultaneously is performed.Furthermore, it is possible to using resistance-type, condenser type, infrared ray and surface The polytypes such as sound wave realize contact panel 16071.Except contact panel 16071, user input unit 1607 can also include Other input equipments 16072.Specifically, other input equipments 16072 can include but is not limited to physical keyboard, function key (ratio Such as volume control button, switch key), trace ball, mouse, action bars, will not be repeated here.
Further, contact panel 16071 can be covered on display panel 16061, when contact panel 16071 detects After touch operation on or near it, processor 1610 is sent to determine the type of touch event, is followed by subsequent processing device 1610 Corresponding visual output is provided on display panel 16061 according to the type of touch event.Although in figure 16, contact panel 16071 realize the input of mobile terminal and output function with display panel 16061 is the part independent as two, but In some embodiments, contact panel 16071 and display panel 16061 can be integrated and realize the input and output of mobile terminal Function, do not limit herein specifically.
Interface unit 1608 is the interface that external device (ED) is connected with mobile terminal 1600.For example, external device (ED) can include Wired or wireless headphone port, external power source (or battery charger) port, wired or wireless FPDP, storage card Port, the port for connecting the device with identification module, audio input/output (I/O) port, video i/o port, earphone Port etc..Interface unit 1608 can be used for receiving the input (for example, data message, electric power etc.) from external device (ED) simultaneously And one or more elements that the input received is transferred in mobile terminal 1600 or it can be used in mobile terminal Data are transmitted between 1600 and external device (ED).
Memory 1609 can be used for storage software program and various data.Memory 1609 can mainly include storage program Area and storage data field, wherein, storing program area can storage program area, needed at least one function application program (such as Sound-playing function, image player function etc.) etc.;Storage data field can store uses created data (ratio according to mobile phone Such as voice data, phone directory) etc..In addition, memory 1609 can include high-speed random access memory, can also include non- Volatile memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.
Processor 1610 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection Individual part, by running or performing the software program and/or module that are stored in memory 1609, and call and be stored in storage Data in device 1609, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place Reason device 1610 may include one or more processing units;Preferably, processor 1610 can integrate application processor and modulation /demodulation Processor, wherein, application processor mainly handles operating system, user interface and application program etc., modem processor master Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 1610.
Mobile terminal 1600 can also include the power supply 1611 (such as battery) to all parts power supply, it is preferred that power supply 1611 can be logically contiguous by power-supply management system and processor 1610, so as to realize that management is filled by power-supply management system The functions such as electricity, electric discharge and power managed.
In addition, mobile terminal 1600 includes some unshowned functional modules, will not be repeated here.
Optionally, processor 1610 is additionally operable to:If receiving the photographing instruction, acquisition receives the photographing instruction The reception time;Based on the reception time, very first time stamp and the second timestamp are determined;Gravity sensor is obtained at first Between stab collection the first data and the second timestamp collection the second data;Calculate first data and second data Between vector length value;If the vector length value is more than first threshold, it is determined that mobile terminal is shaken;Wherein, institute The reception time is stated to stab between second timestamp between the very first time;The jitter amplitude value is the vector length Value.
Optionally, processor 1610 is additionally operable to:Obtain each image in first group of picture frame, first group of picture frame The timestamp of jitter amplitude value corresponding to frame and each picture frame;Wherein, first group of picture frame is slow including at least two Deposit picture frame;If the vector length value is less than or equal to the first threshold, it is determined that when in first group of picture frame Between the minimum first object picture frame in interval between stamp and the reception time;Timestamp in first group of picture frame is small It is defined as the target cache picture frame in or equal to the picture frame of timestamp of the first object picture frame.
Optionally, processor 1610 is additionally operable to:If the vector length value is more than the first threshold, it is determined that described Timestamp and the second target image frame for receiving the interval minimum between the time in one group of picture frame;From second target Picture frame starts, the order reduced according to timestamp, by jitter amplitude value corresponding to the picture frame in first group of picture frame Successively compared with the first threshold;It is determined that first jitter amplitude value for comparing to obtain is less than or equal to described first 3rd target image frame of threshold value;Timestamp in first group of picture frame is less than or equal to the 3rd target image frame The picture frame of timestamp be defined as the target cache picture frame.
Optionally, processor 1610 is additionally operable to:Obtain second group of figure that jitter amplitude value is less than or equal to Second Threshold As the timestamp of each picture frame in frame and second group of picture frame;Wherein, second group of picture frame includes at least two Open cache image frame;Determine timestamp and the 4th mesh for receiving the interval minimum between the time in second group of picture frame Logo image frame;Timestamp in second group of picture frame is less than or equal to the figure of the timestamp of the 4th target image frame As frame is defined as the target cache picture frame;Wherein, the Second Threshold is more than the first threshold.
Optionally, processor 1610 is additionally operable to:Obtain between the timestamp of the 4th target image frame and the reception time Target time interval;Judge whether the target time interval is more than prefixed time interval;If the target time interval is small In or equal to the prefixed time interval, then perform described chosen from the target cache picture frame and meet preparatory condition The step of picture frame is as target shooting image;If the target time interval is more than the prefixed time interval, output carries Show information, the prompt message is used to prompt user to keep mobile terminal to grip steadily.
Optionally, processor 1610 is additionally operable to:From the target cache picture frame, choose image parameter instruction and focused Into picture frame as the target shooting image;Wherein, each picture frame in the target cache picture frame includes referring to Show the image parameter of focusing state.
Mobile terminal 1600 can realize each process that mobile terminal is realized in previous embodiment, to avoid repeating, this In repeat no more., can be with if mobile terminal is shaken and mobile terminal 1600 can be realized when receiving photographing instruction Obtain the jitter amplitude value of mobile terminal.And then target cache picture frame can be determined according to jitter amplitude value.Finally, can be with The picture frame for meeting preparatory condition is chosen from target cache picture frame as target shooting image.The photo of shooting is more clear It is clear, perfect photograph taking effect.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 1610, memory 1609, storage On memory 1609 and the computer program that can be run on the processor 1610, the computer program is by processor 1610 Each process of above-mentioned image pickup method embodiment is realized during execution, and identical technique effect can be reached, to avoid repeating, here Repeat no more.
The embodiment of the present invention also provides a kind of computer-readable recording medium, and meter is stored with computer-readable recording medium Calculation machine program, the computer program realize each process of above-mentioned image pickup method embodiment when being executed by processor, and can reach Identical technique effect, to avoid repeating, repeat no more here.Wherein, described computer-readable recording medium, deposited Ru read-only Reservoir (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), Magnetic disc or CD etc..
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Other identical element also be present in the process of key element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal (can be mobile phone, computer, service Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot Form, belong within the protection of the present invention.

Claims (16)

  1. A kind of 1. image pickup method, it is characterised in that including:
    During the preview image of caching camera collection, if receiving photographing instruction, whether detection mobile terminal is sent out Raw shake;
    If detecting, mobile terminal is shaken, and obtains jitter amplitude value;
    According to the jitter amplitude value, target cache picture frame is determined;
    The picture frame for meeting preparatory condition is chosen from the target cache picture frame as target shooting image.
  2. 2. according to the method for claim 1, it is characterised in that if described receive photographing instruction, detect mobile terminal The step of whether shaking, including:
    If receiving the photographing instruction, the reception time for receiving the photographing instruction is obtained;
    Based on the reception time, very first time stamp and the second timestamp are determined;
    Obtain first data of the gravity sensor in very first time stamp collection and the second data in the collection of the second timestamp;
    Calculate the vector length value between first data and second data;
    If the vector length value is more than first threshold, it is determined that mobile terminal is shaken;
    Wherein, the reception time is stabbed between second timestamp between the very first time;The jitter amplitude value is The vector length value.
  3. 3. according to the method for claim 2, it is characterised in that if receiving the photographing instruction described, acquisition connects Before the step of receiving the reception time of the photographing instruction, methods described also includes:
    Obtain jitter amplitude value corresponding to each picture frame and each figure in first group of picture frame, first group of picture frame As the timestamp of frame;
    Wherein, first group of picture frame includes at least two cache image frames;
    It is described according to the jitter amplitude value, the step of determining target cache picture frame, including:
    If the vector length value is less than or equal to the first threshold, it is determined that in first group of picture frame timestamp with The first object picture frame for receiving the interval minimum between the time;
    Timestamp in first group of picture frame is less than or equal to the picture frame of the timestamp of the first object picture frame It is defined as the target cache picture frame.
  4. 4. according to the method for claim 3, it is characterised in that it is described according to the jitter amplitude value, determine target cache The step of picture frame, including:
    If the vector length value is more than the first threshold, it is determined that timestamp and the reception in first group of picture frame Second target image frame of the interval minimum between the time;
    Since the second target image frame, according to the order of timestamp reduction, by the image in first group of picture frame Jitter amplitude value corresponding to frame is successively compared with the first threshold;
    It is determined that first jitter amplitude value for comparing to obtain is less than or equal to the 3rd target image frame of the first threshold;
    Timestamp in first group of picture frame is less than or equal to the picture frame of the timestamp of the 3rd target image frame It is defined as the target cache picture frame.
  5. 5. according to the method for claim 2, it is characterised in that if receiving the photographing instruction described, acquisition connects Before the step of receiving the reception time of the photographing instruction, methods described also includes:
    It is each less than or equal in second group of picture frame of Second Threshold and second group of picture frame to obtain jitter amplitude value The timestamp of individual picture frame;
    Wherein, second group of picture frame includes at least two cache image frames;
    It is described according to the jitter amplitude value, the step of determining target cache picture frame, including:
    Determine timestamp and the 4th target image frame for receiving the interval minimum between the time in second group of picture frame;
    Timestamp in second group of picture frame is less than or equal to the picture frame of the timestamp of the 4th target image frame It is defined as the target cache picture frame;
    Wherein, the Second Threshold is more than the first threshold.
  6. 6. according to the method for claim 5, it is characterised in that meet in described chosen from the target cache picture frame Before the picture frame of preparatory condition is as the step of target shooting image, methods described also includes:
    Obtain the timestamp of the 4th target image frame and the target time interval received between the time;
    Judge whether the target time interval is more than prefixed time interval;
    If the target time interval is less than or equal to the prefixed time interval, perform described from the target cache figure The step of as choosing the picture frame for meeting preparatory condition in frame as target shooting image;
    If the target time interval is more than the prefixed time interval, prompt message is exported, the prompt message is used to carry It is steady to show that user keeps mobile terminal to grip.
  7. 7. method according to any one of claim 1 to 6, it is characterised in that described from the target cache picture frame Middle the step of choosing the picture frame for meeting preparatory condition as target shooting image, including:
    From the target cache picture frame, the picture frame of image parameter instruction focusing completion is chosen as the target shooting figure Picture;
    Wherein, each picture frame in the target cache picture frame includes the image parameter of instruction focusing state.
  8. A kind of 8. mobile terminal, it is characterised in that including:
    Detection module, for during the preview image of caching camera collection, if receiving photographing instruction, detection to move Whether dynamic terminal shakes;
    First acquisition module, if for detecting that mobile terminal is shaken, obtain jitter amplitude value;
    Determining module, for according to the jitter amplitude value, determining target cache picture frame;
    Module is chosen, for choosing the picture frame for meeting preparatory condition from the target cache picture frame as target shooting figure Picture.
  9. 9. mobile terminal according to claim 8, it is characterised in that the detection module includes:
    First acquisition submodule, if for receiving the photographing instruction, when acquisition receives the reception of the photographing instruction Between;
    First determination sub-module, for based on the reception time, determining very first time stamp and the second timestamp;
    Second acquisition submodule, for obtaining gravity sensor in the first data of very first time stamp collection and in the second timestamp Second data of collection;
    Calculating sub module, for calculating the vector length value between first data and second data;
    Second determination sub-module, if being more than first threshold for the vector length value, it is determined that mobile terminal is shaken;
    Wherein, the reception time is stabbed between second timestamp between the very first time;The jitter amplitude value is The vector length value.
  10. 10. mobile terminal according to claim 9, it is characterised in that the mobile terminal also includes:
    Second acquisition module, trembled for obtaining in first group of picture frame, first group of picture frame corresponding to each picture frame The timestamp of dynamic range value and each picture frame;
    Wherein, first group of picture frame includes at least two cache image frames;
    The determining module includes:
    3rd determination sub-module, if being less than or equal to the first threshold for the vector length value, it is determined that described Timestamp and the first object picture frame for receiving the interval minimum between the time in one group of picture frame;
    4th determination sub-module, for timestamp in first group of picture frame to be less than or equal into the first object image The picture frame of the timestamp of frame is defined as the target cache picture frame.
  11. 11. mobile terminal according to claim 10, it is characterised in that the determining module also includes:
    5th determination sub-module, if being more than the first threshold for the vector length value, it is determined that first group of image Timestamp and the second target image frame for receiving the interval minimum between the time in frame;
    Comparison sub-module, for the order since the second target image frame, reduced according to timestamp, by described first group Jitter amplitude value corresponding to picture frame in picture frame is successively compared with the first threshold;
    6th determination sub-module, first jitter amplitude value for determining to compare to obtain are less than or equal to the first threshold The 3rd target image frame;
    7th determination sub-module, for timestamp in first group of picture frame to be less than or equal into the 3rd target image The picture frame of the timestamp of frame is defined as the target cache picture frame.
  12. 12. mobile terminal according to claim 9, it is characterised in that the mobile terminal also includes:
    3rd acquisition module, for obtaining jitter amplitude value less than or equal to second group of picture frame of Second Threshold and described the The timestamp of each picture frame in two groups of picture frames;
    Wherein, second group of picture frame includes at least two cache image frames;
    The determining module also includes:
    8th determination sub-module, for determining that timestamp and the interval received between the time are most in second group of picture frame The 4th small target image frame;
    9th determination sub-module, for timestamp in second group of picture frame to be less than or equal into the 4th target image The picture frame of the timestamp of frame is defined as the target cache picture frame;
    Wherein, the Second Threshold is more than the first threshold.
  13. 13. mobile terminal according to claim 12, it is characterised in that the mobile terminal also includes:
    4th acquisition module, for obtaining between the timestamp of the 4th target image frame and the object time received between the time Every;
    Judge module, for judging whether the target time interval is more than prefixed time interval;
    Execution module, if being less than or equal to the prefixed time interval for the target time interval, perform it is described from The step of picture frame for meeting preparatory condition is as target shooting image is chosen in the target cache picture frame;
    Output module, if being more than the prefixed time interval for the target time interval, prompt message is exported, it is described to carry Show that information is used to prompt user to keep mobile terminal to grip steadily.
  14. 14. the mobile terminal according to any one of claim 8 to 13, it is characterised in that the selection module is specifically used In:
    From the target cache picture frame, the picture frame of image parameter instruction focusing completion is chosen as the target shooting figure Picture;
    Wherein, each picture frame in the target cache picture frame includes the image parameter of instruction focusing state.
  15. 15. a kind of mobile terminal, it is characterised in that including processor, memory and be stored on the memory and can be in institute The computer program run on processor is stated, the computer program is realized such as claim 1 to 7 during the computing device Any one of image pickup method the step of.
  16. 16. a kind of computer read/write memory medium, it is characterised in that meter is stored with the computer read/write memory medium Calculation machine program, the image pickup method as any one of claim 1 to 7 is realized when the computer program is executed by processor The step of.
CN201710865596.5A 2017-09-22 2017-09-22 A kind of image pickup method and mobile terminal Active CN107509034B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710865596.5A CN107509034B (en) 2017-09-22 2017-09-22 A kind of image pickup method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710865596.5A CN107509034B (en) 2017-09-22 2017-09-22 A kind of image pickup method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107509034A true CN107509034A (en) 2017-12-22
CN107509034B CN107509034B (en) 2019-11-26

Family

ID=60697211

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710865596.5A Active CN107509034B (en) 2017-09-22 2017-09-22 A kind of image pickup method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107509034B (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108347563A (en) * 2018-02-07 2018-07-31 广东欧珀移动通信有限公司 Method for processing video frequency and device, electronic equipment, computer readable storage medium
CN109005355A (en) * 2018-09-28 2018-12-14 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
CN109688319A (en) * 2018-09-19 2019-04-26 青岛海信智慧家居系统股份有限公司 A kind of method and device inhibiting the intelligent sound box camera-shake with camera
CN111385475A (en) * 2020-03-11 2020-07-07 Oppo广东移动通信有限公司 Image acquisition method, photographing device, electronic equipment and readable storage medium
CN112333387A (en) * 2020-10-30 2021-02-05 维沃移动通信有限公司 Shooting method, shooting device, electronic equipment and storage medium
CN112653842A (en) * 2020-12-23 2021-04-13 维沃移动通信有限公司 Video anti-shake method and device
CN113259594A (en) * 2021-06-22 2021-08-13 展讯通信(上海)有限公司 Image processing method and device, computer readable storage medium and terminal
CN114326080A (en) * 2022-01-11 2022-04-12 上海察微电子技术有限公司 Ultra-large depth of field and anti-vibration and anti-shake image processing method for microscope
CN114449151A (en) * 2020-10-30 2022-05-06 华为技术有限公司 Image processing method and related device
CN115226054A (en) * 2022-03-22 2022-10-21 广州汽车集团股份有限公司 Data acquisition method, device, equipment and storage medium
CN115942130A (en) * 2022-12-23 2023-04-07 展讯通信(上海)有限公司 Image processing method and device, and computer readable storage medium
CN116347212A (en) * 2022-08-05 2023-06-27 荣耀终端有限公司 Automatic photographing method and electronic equipment
WO2023160169A1 (en) * 2022-02-25 2023-08-31 荣耀终端有限公司 Photographing method and electronic device
CN116723383A (en) * 2022-02-28 2023-09-08 荣耀终端有限公司 Shooting method and related equipment
CN117156261A (en) * 2023-03-28 2023-12-01 荣耀终端有限公司 Image processing method and related equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8289400B2 (en) * 2009-06-05 2012-10-16 Apple Inc. Image capturing device having continuous image capture
CN104219448A (en) * 2014-08-28 2014-12-17 小米科技有限责任公司 Shooting method and shooting device
CN105611180A (en) * 2016-03-28 2016-05-25 广东欧珀移动通信有限公司 Method, mobile terminal and system for preventing photographic shake by using wearable equipment
CN105827967A (en) * 2016-03-28 2016-08-03 广东欧珀移动通信有限公司 Control method and device, and electronic device
CN105872376A (en) * 2016-04-12 2016-08-17 广东欧珀移动通信有限公司 Control method, control apparatus and electronic device
CN106210496A (en) * 2015-05-06 2016-12-07 小米科技有限责任公司 Method, photo taking and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8289400B2 (en) * 2009-06-05 2012-10-16 Apple Inc. Image capturing device having continuous image capture
CN104219448A (en) * 2014-08-28 2014-12-17 小米科技有限责任公司 Shooting method and shooting device
CN106210496A (en) * 2015-05-06 2016-12-07 小米科技有限责任公司 Method, photo taking and device
CN105611180A (en) * 2016-03-28 2016-05-25 广东欧珀移动通信有限公司 Method, mobile terminal and system for preventing photographic shake by using wearable equipment
CN105827967A (en) * 2016-03-28 2016-08-03 广东欧珀移动通信有限公司 Control method and device, and electronic device
CN105872376A (en) * 2016-04-12 2016-08-17 广东欧珀移动通信有限公司 Control method, control apparatus and electronic device

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108347563A (en) * 2018-02-07 2018-07-31 广东欧珀移动通信有限公司 Method for processing video frequency and device, electronic equipment, computer readable storage medium
CN109688319A (en) * 2018-09-19 2019-04-26 青岛海信智慧家居系统股份有限公司 A kind of method and device inhibiting the intelligent sound box camera-shake with camera
CN109688319B (en) * 2018-09-19 2020-10-30 青岛海信智慧家居系统股份有限公司 Method and device for inhibiting camera shooting jitter of intelligent sound box with camera
CN109005355A (en) * 2018-09-28 2018-12-14 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
CN111385475B (en) * 2020-03-11 2021-09-10 Oppo广东移动通信有限公司 Image acquisition method, photographing device, electronic equipment and readable storage medium
CN111385475A (en) * 2020-03-11 2020-07-07 Oppo广东移动通信有限公司 Image acquisition method, photographing device, electronic equipment and readable storage medium
CN114449151A (en) * 2020-10-30 2022-05-06 华为技术有限公司 Image processing method and related device
CN112333387A (en) * 2020-10-30 2021-02-05 维沃移动通信有限公司 Shooting method, shooting device, electronic equipment and storage medium
CN114449151B (en) * 2020-10-30 2023-06-02 华为技术有限公司 Image processing method and related device
CN112653842A (en) * 2020-12-23 2021-04-13 维沃移动通信有限公司 Video anti-shake method and device
CN113259594A (en) * 2021-06-22 2021-08-13 展讯通信(上海)有限公司 Image processing method and device, computer readable storage medium and terminal
CN114326080A (en) * 2022-01-11 2022-04-12 上海察微电子技术有限公司 Ultra-large depth of field and anti-vibration and anti-shake image processing method for microscope
CN116709043B (en) * 2022-02-25 2024-08-02 荣耀终端有限公司 Shooting method and electronic equipment
WO2023160169A1 (en) * 2022-02-25 2023-08-31 荣耀终端有限公司 Photographing method and electronic device
CN116709043A (en) * 2022-02-25 2023-09-05 荣耀终端有限公司 Shooting method and electronic equipment
CN116723383A (en) * 2022-02-28 2023-09-08 荣耀终端有限公司 Shooting method and related equipment
CN116723383B (en) * 2022-02-28 2024-04-19 荣耀终端有限公司 Shooting method and related equipment
CN115226054A (en) * 2022-03-22 2022-10-21 广州汽车集团股份有限公司 Data acquisition method, device, equipment and storage medium
CN115226054B (en) * 2022-03-22 2024-04-12 广州汽车集团股份有限公司 Data acquisition method, device, equipment and storage medium
CN116347212B (en) * 2022-08-05 2024-03-08 荣耀终端有限公司 Automatic photographing method and electronic equipment
CN116347212A (en) * 2022-08-05 2023-06-27 荣耀终端有限公司 Automatic photographing method and electronic equipment
CN115942130A (en) * 2022-12-23 2023-04-07 展讯通信(上海)有限公司 Image processing method and device, and computer readable storage medium
CN117156261A (en) * 2023-03-28 2023-12-01 荣耀终端有限公司 Image processing method and related equipment

Also Published As

Publication number Publication date
CN107509034B (en) 2019-11-26

Similar Documents

Publication Publication Date Title
CN107509034B (en) A kind of image pickup method and mobile terminal
CN107580184A (en) A kind of image pickup method and mobile terminal
CN107592471A (en) A kind of high dynamic range images image pickup method and mobile terminal
CN107509038A (en) A kind of image pickup method and mobile terminal
CN107770448A (en) A kind of image-pickup method, mobile terminal and computer-readable storage medium
CN107566748A (en) A kind of image processing method, mobile terminal and computer-readable recording medium
CN107592466A (en) A kind of photographic method and mobile terminal
CN108063901A (en) A kind of image-pickup method, terminal and computer readable storage medium
CN107566730A (en) A kind of panoramic picture image pickup method and mobile terminal
CN107820022A (en) A kind of photographic method and mobile terminal
CN108322647A (en) Panoramic picture image pickup method, mobile terminal and computer readable storage medium
CN107707825A (en) A kind of panorama shooting method, mobile terminal and computer-readable recording medium
CN108184051A (en) A kind of main body image pickup method, equipment and computer readable storage medium
CN108320263A (en) A kind of method, device and mobile terminal of image procossing
CN107483836A (en) A kind of image pickup method and mobile terminal
CN107767430A (en) One kind shooting processing method, terminal and computer-readable recording medium
CN107404618A (en) A kind of image pickup method and terminal
CN108040209A (en) A kind of image pickup method and mobile terminal
CN108200229A (en) Image pickup method, terminal and the computer readable storage medium of flexible screen terminal
CN107623818A (en) A kind of image exposure method and mobile terminal
CN107749947A (en) Photographic method, mobile terminal and computer-readable recording medium
CN108170348A (en) A kind of thumbnail method for previewing, equipment and computer readable storage medium
CN107682630A (en) Dual camera anti-fluttering method, mobile terminal and computer-readable recording medium
CN108600458A (en) Method, photo taking, device and computer readable storage medium
CN107483804A (en) A kind of image pickup method, mobile terminal and computer-readable recording medium

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