CN104618640B - A kind of photographic method and device - Google Patents

A kind of photographic method and device Download PDF

Info

Publication number
CN104618640B
CN104618640B CN201410851276.0A CN201410851276A CN104618640B CN 104618640 B CN104618640 B CN 104618640B CN 201410851276 A CN201410851276 A CN 201410851276A CN 104618640 B CN104618640 B CN 104618640B
Authority
CN
China
Prior art keywords
frame
image frame
image
picture frame
estimate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410851276.0A
Other languages
Chinese (zh)
Other versions
CN104618640A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201410851276.0A priority Critical patent/CN104618640B/en
Publication of CN104618640A publication Critical patent/CN104618640A/en
Application granted granted Critical
Publication of CN104618640B publication Critical patent/CN104618640B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a kind of photographic method and device, wherein the photographic method includes:Reception is taken pictures instruction for previewing, obtains the picture frame of camera collection;Calculate the focusing evaluation of estimate of described image frame;Described image frame is added into image buffer storage queue storage;The photographing instruction of input is received, target image frame is chosen in described image buffer queue according to the focusing evaluation of estimate of picture frame, using the target image frame as image output of taking pictures.The clarity of photo can be improved using the present invention, the effect with stabilization.

Description

A kind of photographic method and device
Technical field
The present invention relates to photograph taking technical field, more particularly to a kind of photographic method and device.
Background technology
With the continuous development of terminal technology, nowadays many mobile terminals all support taking pictures for high definition, such as:Band is taken pictures work( Can mobile phone, the tablet computer with camera function, palm PC with camera function etc..The quality of shooting photo becomes to be commented One of standard of one mobile terminal performance quality of valency, and the shake produced during photograph taking is to influence image definition A key factor, therefore reduce the clear of photo there has been proposed various schemes come the shake for preventing from producing during taking pictures Degree.In the prior art, generally use improves hardware configuration or carries out picture multiframe synthetic method using software to prevent from clapping Generation according to during shakes and improves image definition, however, employing hardware to the side for preventing shake from reducing image definition Method can increase hardware production cost, in addition its application such as on the mobile terminal of the type such as mobile phone, tablet computer also not into Ripe, production yields is low;And carrying out the synthesis of picture multiframe using software prevents from shaking the method for reducing image definition but exist It is slow algorithm aggregate velocity, and the problem of synthetic effect is sometimes also undesirable.
The content of the invention
An embodiment of the present invention provides a kind of photographic method and device, can improve the clarity of photo, and has relatively anti- The effect trembled.
An embodiment of the present invention provides a kind of photographic method, the described method includes:
Reception is taken pictures instruction for previewing, obtains the picture frame of camera collection;
Calculate the focusing evaluation of estimate of described image frame;
Described image frame is added into image buffer storage queue storage;
The photographing instruction of input is received, target is chosen in described image buffer queue according to the focusing evaluation of estimate of picture frame Picture frame, using the target image frame as image output of taking pictures.
Correspondingly, an embodiment of the present invention provides a kind of device, described device includes:
Receiving unit, for receiving instruction for previewing of taking pictures;
Acquiring unit, for the receiving unit receive it is described take pictures instruction for previewing when, obtain the figure of camera collection As frame;
Computing unit, for calculating the focusing evaluation of estimate of described image frame;
Storage unit, for described image frame to be added image buffer storage queue storage;
The receiving unit, is additionally operable to receive the photographing instruction of input;
Unit is chosen, when receiving the photographing instruction of input for the receiving unit, is evaluated according to the focusing of picture frame Value chooses target image frame in described image buffer queue, and using the target image frame as image output of taking pictures.
The embodiment of the present invention can receive instruction for previewing of taking pictures, and obtain the picture frame of camera collection, can also calculate the figure As the focusing evaluation of estimate of frame, described image frame is added into image buffer storage queue storage, and then in the photographing instruction for receiving input, root Choose target image frame in described image buffer queue according to the focusing evaluation of estimate of picture frame, and using the target image frame as Image of taking pictures exports.The clarity of photo can be improved, the effect with opposite stabilization.
Brief description of the drawings
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area For logical technical staff, without creative efforts, other attached drawings can also be obtained according to these attached drawings.
Fig. 1 is a kind of photographic method flow diagram provided in an embodiment of the present invention;
Fig. 2 is another photographic method flow diagram provided in an embodiment of the present invention;
Fig. 3 is another photographic method flow diagram provided in an embodiment of the present invention;
Fig. 4 is a kind of camera arrangement structure diagram provided in an embodiment of the present invention;
Fig. 5 is zero second snap principle schematic provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution 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, instead of all the embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without making creative work Example, belongs to the scope of protection of the invention.
In the specific implementation, method described in the invention is performed by one group of code stored in memory, the code It is implemented in the computer system based on von Neumann system.
A kind of photographic method provided in an embodiment of the present invention and device are specifically described below in conjunction with Fig. 1 to Fig. 5.
It is a kind of photographic method flow diagram provided in an embodiment of the present invention referring to Fig. 1, photographic method as depicted It may include following steps:
S101, receives instruction for previewing of taking pictures, and obtains the picture frame of camera collection.
In the specific implementation, when user is intended to be taken pictures, can initiate to start camera requests and preview request of taking pictures in terminal, For example, terminal is card camera, when card camera is closed, the power button that user is clicked in card camera is considered as User inputs enabled instruction at the same time and instruction for previewing of taking pictures, and user initiates to start camera requests and preview request of taking pictures;And for example, The power button that user is clicked in card camera is considered as user and inputs enabled instruction, user initiates to start camera requests, And user's half-press tripper is considered as input and is taken pictures instruction for previewing, user initiates preview request of taking pictures.
It should be noted that the camera mentioned by the present embodiment can be the camera of terminal built-in, as carried camera Mobile phone;This step starts camera and obtains the picture frame of camera collection when terminal receives and takes pictures instruction for previewing.If eventually End does not include built-in camera, but is connected with exterior camera, if terminal is PC (Personal Computer, individual calculus Machine), camera is not provided with PC, but PC is connected with exterior camera;This step receive take pictures instruction for previewing when, start The camera being connected with PC, and obtain the picture frame of camera collection.
S102, calculates the focusing evaluation of estimate of described image frame.
What focusing evaluation of estimate specifically represented is the clarity of picture frame focusing area, usually takes pictures and is utilized in focus process Clarity at focusing area represents the clarity of whole image frame.In the specific implementation, image is calculated using image processing method The focusing evaluation of estimate of frame focusing area, key are the selection of Image Definition, and preferable evaluation function requires tool Have:Unbiasedness, unimodality, the polarity that can reflect defocus, it is low to noise sensitivity, calculation amount is as small as possible the features such as.
The type of Image Definition based on image processing method substantially has:Energy gradient function, frequency spectrum letter Number, gray scale entropy function and grey scale change function etc..Wherein, energy gradient function uses one point of Difference Calculation of neighbor pixel Grad, the high image border of clarity is more clear, and the Grad of image is bigger, and the function calculation amount is small, and reliability height is simultaneously And unimodality is good.And frequency spectrum function therein is mainly based upon Fourier transform, its theoretical foundation is that image passes through Fourier Leaf transformation, high fdrequency component are in image border, and clearly image has sharper edge than out-of-focus image at focusing, that is, schemes Picture edge includes more information, can become apparent from differentiating its details, and the function sensitivity is high, but computationally intensive, operation It is less efficient.
In the present embodiment, can be first to focusing according to the focusing evaluation of estimate that focusing area is calculated based on frequency spectrum function The image in region does Fourier transformation so as to obtain the spectrogram of picture frame focusing area, it is then determined that in focusing area spectrogram High fdrequency component quantity, the focusing evaluation of estimate using the quantitative value of high fdrequency component as picture frame.
S103, image buffer storage queue storage is added by described image frame.
The process of taking pictures can carry out under " zero second snap " pattern that current multiple terminal is supported described in the present embodiment, such as Zero second snap principle schematic shown in Fig. 5, under zero second snap pattern, terminal can gather in real time under preview mode of taking pictures A few two field picture frame buffers, and it has the advantage of " 0 shutter delay " (the shutter delay time is short) so that in zero second snap pattern Time of entirely taking pictures down used in process shortens, and realizes the effect of " What You See Is What You Get ".In the present embodiment, step is passed through S101 and step S103 is the real-time caching function of picture frame realized under zero second snap pattern.
It should be noted that the length of image buffer storage queue can be by determining that the camera can gather figure in preset time As the quantity of frame determines, wherein, preset time can be the proper time spans such as 1.5s, 1s, 0.5s or 0.2s, preset It is not user's desired image moment preserved that overlong time, which causes most of picture frame stored in image buffer storage queue, and Time, too short meeting was so that the picture frame cached in image buffer storage queue is very few and without more visible picture frame.
S104, receives the photographing instruction of input, is selected according to the focusing evaluation of estimate of picture frame in described image buffer queue Target image frame is taken, using the target image frame as image output of taking pictures.
In the specific implementation, the shutter key that user presses in terminal is to input photographing instruction, which can be button Physical button in formula terminal, or the virtual key in touch terminal.Terminal exists according to the focusing evaluation of estimate of picture frame Target image frame is chosen in image buffer storage queue, and using target image frame as image output of taking pictures.Further, can be in image The picture frame of focusing evaluation of estimate maximum is chosen in buffer queue as target image frame.
It should be noted that after the completion of this is taken pictures, it is also necessary to delete and cached during this is taken pictures in buffer queue Picture frame, prevent to take pictures next time produce interference.
The embodiment of the present invention, can receive instruction for previewing of taking pictures, and obtain the picture frame of camera collection, calculate described image frame Focusing evaluation of estimate, and described image frame is added into image buffer storage queue storage, and then receive the photographing instruction of input, according to figure As the focusing evaluation of estimate of frame chooses target image frame in described image buffer queue, using the target image frame as figure of taking pictures As exporting, the efficiency for processing procedure of taking pictures can be improved, the effect with stabilization.
It is another photographic method flow diagram provided in an embodiment of the present invention referring to Fig. 2, the side of taking pictures as depicted Method may include following steps:
S201, receives instruction for previewing of taking pictures, and obtains the picture frame of camera collection.
S202, obtains the spectrogram of the focusing area of described image frame.
In the specific implementation, the distributed function of the focusing area image is obtained first, then to distributed function The spectrogram of focusing area can be obtained by doing Fourier transformation, wherein, gray scale refers to brightness (or the journey of the color depth of image Degree).In focusing area the fierce place of grey scale change just correspond to high fdrequency component and the little place of grey scale change correspond to it is low Frequency component, if each position gray level change of focusing area is little, only exists low frequency component, from focusing area in image Seen on spectrogram, only a main peak, and positioned at the position that frequency is zero;If each position gray level change of focusing area is acute It is strong, then low frequency component is not only existed in image, while there is also a variety of high fdrequency components, from the frequency spectrum of image, not only there is one A main peak, while there is also multiple other peaks.In usual image there is the edge with image in the violent place of grey scale change, therefore, Focusing area high frequency components are more, and the edge in focusing area is more, and the image detail that focusing area is distinguished is more, therefore Focusing area is also more clear.
S203, obtains the quantity of the high fdrequency component in the spectrogram.
The quantitative value of the high fdrequency component, is determined as the focusing evaluation of estimate of the picture frame by S204.
As described in step S202, focusing area high frequency components are more, and the edge in focusing area is more, focusing area institute The image detail of discrimination is more, and focusing area is also more clear.By step S202 and step S203 with regard to pair of picture frame can be obtained The quantity of the high fdrequency component in burnt region, and the focusing that the quantitative value of the high fdrequency component is determined as to the picture frame in this step is commented Value, as the clarity normative reference for evaluating the focusing area, and is considered as figure during whole take pictures by focusing evaluation of estimate As the clarity normative reference of frame, i.e. the focusing evaluation of estimate of picture frame focusing area is bigger, then represents the clarity of the picture frame It is higher.
S205, image buffer storage queue storage is added by described image frame.
S206, receives the photographing instruction of input, is selected according to the focusing evaluation of estimate of picture frame in described image buffer queue Target image frame is taken, using the target image frame as image output of taking pictures.
In the specific implementation, the shutter key that user presses in terminal is to input photographing instruction, which can be terminal Upper physical button, or the virtual key in touch terminal.Terminal is delayed according to the focusing evaluation of estimate of picture frame in image Selection target image frame in queue is deposited, and using target image frame as image output of taking pictures.Under normal conditions can be in image buffer storage The picture frame of focusing evaluation of estimate maximum is chosen in queue as target image frame.It should be noted that after the completion of this is taken pictures, Also need to delete the picture frame cached in buffer queue during this is taken pictures, prevent from producing interference to taking pictures next time.
In the present embodiment, step S201 and S205 can be found in step S101 and S103 in embodiment illustrated in fig. 1, herein not Repeat again.
The embodiment of the present invention, can receive instruction for previewing of taking pictures, and obtain the picture frame of camera collection, can also obtain the figure As the spectrogram of the focusing area of frame, the high fdrequency component in the spectrogram is obtained, and then obtain the high frequency in the spectrogram The quantity of component, and the quantitative value of the high fdrequency component is determined as to the focusing evaluation of estimate of the picture frame, finally receive input Photographing instruction, target image frame is chosen in described image buffer queue according to the focusing evaluation of estimate of picture frame, by the mesh Logo image frame is exported as image of taking pictures, and can improve the clarity of photo, the effect with stabilization.
It is another photographic method flow diagram provided in an embodiment of the present invention referring to Fig. 3, the side of taking pictures as depicted Method may include following steps:
S301, receives instruction for previewing of taking pictures, and obtains the picture frame of camera collection.
S302, calculates the focusing evaluation of estimate of described image frame.
Contrast formula auto-focusing, its principle are:Eyeglass gradually moves when camera starts focusing, real-time according to preset algorithm Ground calculates the focusing evaluation of estimate of focusing area in eyeglass moving process, it is found that focusing evaluation of estimate is gradually increasing, picture frame during focus Focusing area focusing evaluation of estimate it is maximum (focusing area clarity highest), but terminal is not aware that at this time focus, institute May proceed to move with eyeglass, terminal be further discovered that image when eyeglass continues to move to focusing evaluation of estimate decline (focusing area is clear Clear degree declines), camera eyeglass returns to the focusing area clarity extreme higher position for making picture frame at this time, i.e. focusing area focusing is commented The position of eyeglass during Maximum Value.Therefore, contrast formula auto-focusing can be used in the present embodiment, obtained and imaged in step S301 The focusing evaluation of estimate of the focusing area of picture frame is calculated while the picture frame of head collection.
S303, image buffer storage queue storage is added by described image frame.
S304, receives the photographing instruction of input, according to the acquisition time of each cache image frame in described image buffer queue Order determines the time weighting value of each cache image frame.
S305, it is true according to the time weighting value of the focusing evaluation of estimate of each cache image frame and each cache image frame The selection reference value of fixed each cache image frame.
S306, the picture frame for determining to choose reference value maximum in described image buffer queue is as the target image Frame.
In the specific implementation, taking the photo taken in daily life, user is typically concerned about whether photo is clear, and whether color is true The factor such as real, bright-coloured, under some movable scenes, user also tends to wish to capture to arrive excellent moment, therefore is also concerned about very much The real-time captured a photograph.Camera is with Fixed Time Interval acquired image frames, therefore terminal receives input one by one Photographing instruction before, in image buffer storage queue, order is more forward, and its acquisition time of picture frame is more early, and order is more rearward Its acquisition time of picture frame from user input photographing instruction it is nearer, and user more want capture at that moment.Therefore, at this In embodiment, the time of the collection of picture frame and the clarity of picture frame have been considered, so as to be selected in image buffer storage queue Photo of the suitable picture frame output as this acquisition of taking pictures is selected, it implements process as described in S304~S306.
For example, it is assumed that the length of image buffer storage queue is 5, each picture frame is preset according to the collection in image buffer storage queue Its time weighted value of time tandem is incremented by, and respectively 0.2,0.25,0.3,0.35 and 0.4, and step S302 utilizes base In the image processing method of frequency spectrum function, the focusing evaluation of estimate of picture frame is also calculated while acquired image frames, and currently When receiving the photographing instruction of input, the focusing evaluation of estimate of 5 two field picture frames is respectively in present image buffer queue:10、9、8、7 With 9, then the focusing evaluation of estimate of picture frame can be multiplied by using the time weighting value of picture frame to determine the selection reference value of picture frame, The selection reference value that 5 two field picture frames in image buffer storage queue can be calculated is respectively:2nd, 2.25,2.4,3,2.45 and 3.6, into And the 5th two field picture frame for determining to choose reference value maximum is target image frame, the collection of picture frame can be thus considered The clarity of time and picture frame makes the photograph image that gets apparent and the time also complies with user demand.
S307, using the target image frame as image output of taking pictures.
Target image frame is determined in step S306, which need to be taken out from image buffer storage queue as The photo of this acquisition of taking pictures simultaneously is output to storage in the file specified in terminal, it is necessary to which explanation, has taken pictures at this Cheng Hou, it is also necessary to delete the picture frame cached during this is taken pictures in buffer queue, prevent from producing interference to taking pictures next time.
Step S301 and S303 are distinguished described in the step S101 and S103 in embodiment as shown in Figure 1 in the present embodiment, This is repeated no more.
The embodiment of the present invention, can receive instruction for previewing of taking pictures, and obtain the picture frame of camera collection, calculate described image frame Focusing evaluation of estimate, the photographing instruction of input can be also received, according to the collection of each cache image frame in described image buffer queue Time sequencing determines the time weighting value of each cache image frame, and then according to the focusing evaluation of estimate of each cache image frame The selection reference value of each cache image frame is determined with the time weighting value of each cache image frame, and is delayed in described image The picture frame for determining to choose reference value maximum in queue is deposited as the target image frame, finally using the target image frame as Image of taking pictures exports, and can improve the clarity of photo, the effect with stabilization.
Referring to Fig. 4, a kind of camera arrangement structure diagram provided in an embodiment of the present invention, camera arrangement is at least as shown in the figure It can include:Receiving unit 401, acquiring unit 402, computing unit 403, storage unit 404, selection unit 405.
Receiving unit 401, for receiving instruction for previewing of taking pictures.
In the specific implementation, when user is intended to be taken pictures, can initiate to start camera requests and preview request of taking pictures in terminal, For example, terminal is card type camera, user clicks on power button and takes pictures instruction for previewing for input in card type camera, connects Receive unit 401 to receive when taking pictures instruction for previewing, be considered as user and initiate to start cam device request and preview request of taking pictures;Again Such as, in the card type camera having been turned on, it is considered as input when user's half-press tripper and takes pictures instruction for previewing, user initiates Take pictures preview request.
Acquiring unit 402, for the receiving unit receive it is described take pictures instruction for previewing when obtain camera collection Picture frame.
In the specific implementation, camera can be the camera of terminal built-in, the mobile phone of camera is such as carried;In receiving unit 401 receive and start camera when taking pictures instruction for previewing, and acquiring unit 402 obtains the picture frame of camera collection.If terminal is not It is connected comprising built-in camera, but with exterior camera, if terminal is PC (Personal Computer, personal computer), Camera is not provided with PC, but PC is connected with exterior camera;Receive take pictures instruction for previewing when, start and be connected with PC Camera, acquiring unit 402 obtain the picture frame of camera collection.
Computing unit 403, for calculating the focusing evaluation of estimate of described image frame.
What focusing evaluation of estimate specifically represented is the clarity of picture frame focusing area, usually takes pictures and is utilized in focus process Clarity at focusing area represents the clarity of whole image frame.The class of Image Definition based on image procossing Type substantially has:Energy gradient function, frequency spectrum function, gray scale entropy function and grey scale change function etc..Wherein, energy gradient function is adopted With the Grad of one point of Difference Calculation of neighbor pixel, the high image border of clarity is more clear, and the Grad of image is got over Greatly, the function calculation amount is small, and reliability is high and unimodality is good.And frequency spectrum function therein is mainly based upon Fourier transform , its theoretical foundation is that image passes through Fourier transform, and high fdrequency component is in image border, at focusing clearly image ratio from Burnt image has sharper edge, i.e. image border includes more information, can become apparent from differentiating its details, the letter Number high sensitivity, but it is computationally intensive, and operational efficiency is relatively low.
In the present embodiment, according to the focusing evaluation of estimate that focusing area is calculated based on frequency spectrum function, computing unit 403 can Fourier transformation is done so as to obtain the spectrogram of picture frame focusing area to the image of focusing area first, it is then determined that focusing area The quantity of high fdrequency component in the spectrogram of domain, the quantitative value of the high fdrequency component is the focusing evaluation of estimate of picture frame.
Storage unit 404, for described image frame to be added image buffer storage queue storage.
The process of taking pictures can carry out under " zero second snap " pattern that current multiple terminal is supported described in the present embodiment, such as Zero second snap principle schematic shown in Fig. 5, under zero second snap pattern, terminal can gather in real time under preview mode of taking pictures A few two field picture frame buffers, and it has the advantage of " 0 shutter delay " (the shutter delay time is short) so that in zero second snap pattern Time of entirely taking pictures down used in process shortens, and realizes the effect of " What You See Is What You Get " to a certain extent.In the present embodiment In, the picture frame of camera collection is obtained by acquiring unit 402 and described image frame is added image buffer storage by storage unit 404 Queue storage is with regard to the real-time caching function of picture frame under energy real zero second snap pattern.
The receiving unit 401, is additionally operable to receive the photographing instruction of input.
The shutter key that user presses in terminal is to input photographing instruction, which can be physics on touchtone terminal Button, or the virtual key in touch terminal.
Unit 405 is chosen, for choosing target figure in described image buffer queue according to the focusing evaluation of estimate of picture frame As frame, and using the target image frame as image output of taking pictures.
The picture frame conduct of focusing evaluation of estimate maximum can be chosen in image buffer storage queue by choosing unit 405 under normal conditions Target image frame.In the present embodiment, selection unit 405 takes out target image frame as this from image buffer storage queue takes pictures The photo of acquisition is simultaneously output to storage in the file specified in terminal, it is necessary to which explanation, after the completion of this is taken pictures, also needs The picture frame cached during this is taken pictures in buffer queue is deleted, prevents from producing interference to taking pictures next time.
In another alternative embodiment, the camera arrangement further includes:
Determination unit 406, for determining that the camera gathers the time span of a two field picture frame.
The determination unit, is additionally operable to determine that the camera institute can collection figure in preset time according to the time span As the quantity of frame, and the quantity is determined as to the length of described image buffer queue.
The length of image buffer storage queue can determine that the camera gathers a two field picture frame first by determination unit 406 Time span, then according to the time span determine the camera in preset time can acquired image frames quantity, and The quantity is determined as to the length of described image buffer queue.It should be noted that preset time can be 1.5s, 1s, Time span proper 0.5s or 0.2s etc., preset time is long to cause most of figure stored in image buffer storage queue The image moment preserved as desired by frame is not user, and the time too short picture frame mistake that can to cache in image buffer storage queue Less and without more visible picture frame.
In another alternative embodiment, the selection unit 405 is additionally operable to:Respectively cached according in described image buffer queue The acquisition time order of picture frame determines the time weighting value of each cache image frame;According to pair of each cache image frame Burnt evaluation of estimate and the time weighting value of each cache image frame determine the selection reference value of each cache image frame;Described The picture frame for determining to choose reference value maximum in image buffer storage queue is as the target image frame.
In the specific implementation, taking the photo taken in daily life, user is typically concerned about whether photo is clear, and whether color is true The factor such as real, bright-coloured, under some movable scenes, user also tends to wish to capture to arrive excellent moment, therefore is also concerned about very much The real-time captured a photograph.Camera is with Fixed Time Interval acquired image frames, therefore terminal receives input one by one Photographing instruction before, in image buffer storage queue, order is more forward, and its acquisition time of picture frame is more early, and order is more rearward Its acquisition time of picture frame from user input photographing instruction it is nearer, and user most want capture at that moment.Choose unit 405 determine the time weighting of each cache image frame according to the acquisition time order of each cache image frame in image buffer storage queue Value, then determines each caching figure according to the time weighting value of the focusing evaluation of estimate of each cache image frame and each cache image frame As the selection reference value of frame, the picture frame for finally determining to choose reference value maximum in image buffer storage queue is as target image Frame.The time of the collection of picture frame and the clarity of picture frame can be considered, so as to be selected properly in image buffer storage queue Target image frame export photo as this acquisition of taking pictures.
For example, it is assumed that the length of image buffer storage queue is 5, each picture frame is preset according to the collection in image buffer storage queue Its time weighted value of the priority of time sequencing is incremented by, and chooses unit 405 and determines the time weighting value of 5 two field picture frames and be respectively 0.2nd, 0.25,0.3,0.35 and 0.4, using the image processing method based on frequency spectrum function, also counted while acquired image frames The focusing evaluation of estimate of picture frame has been calculated, and when receiving the photographing instruction of input, 5 two field picture frames in present image buffer queue Focusing evaluation of estimate be respectively:10th, 9,8,7 and 9, choosing unit 405 can utilize the time weighting value of picture frame to be multiplied by picture frame Focusing evaluation of estimate determine the selection reference value of picture frame, can be calculated the selection of 5 two field picture frames in image buffer storage queue Reference value is respectively:2nd, 2.25,2.4,3,2.45 and 3.6, and then choose unit 405 and determine to choose the 5th frame of reference value maximum Picture frame is target image frame, can thus consider the time of the collection of picture frame and the clarity of picture frame and make to get Photograph image it is apparent and the time also complies with user demand.
In another alternative embodiment, the computing unit 402 is additionally operable to:Obtain the frequency of the focusing area of described image frame Spectrogram;Obtain the quantity of the high fdrequency component in the spectrogram;The quantitative value of the high fdrequency component is determined as the picture frame Focusing evaluation of estimate.
In the specific implementation, computing unit 402 obtains the distributed function of the focusing area image first, then to ash Degree distribution function, which does Fourier transformation, can obtain the spectrogram of focusing area, wherein, gray scale refers to brightness (the color depth of image Shallow degree).
The fierce place of grey scale change just correspond to high fdrequency component in focusing area and the place of grey scale change less is corresponding Low frequency component, if each position grey scale change of focusing area is little, low frequency component is only existed in image, from focusing area Spectrogram on see, an only main peak, and positioned at frequency be zero position;If the change of each position of focusing area is violent, Low frequency component is not only existed in image then, while there is also a variety of high fdrequency components, from the frequency spectrum of image, not only there is a master Peak, while there is also multiple other peaks.
In usual image there is the edge with image, therefore, focusing area high frequency components in the violent place of grey scale change More, the edge in focusing area is more, and the image detail that focusing area is distinguished is more, therefore focusing area is also more clear. After computing unit 402 obtains the spectrogram of the focusing area of picture frame, the quantity of the high fdrequency component in spectrogram can be obtained, is used The quantitative value of high fdrequency component to be determined as to the focusing evaluation of estimate of the picture frame.Computing unit 402 is by the spectrogram of acquisition The quantitative value of high fdrequency component be determined as the focusing evaluation of estimate of picture frame, as evaluating the clarity of the focusing area with reference to mark Standard, and the focusing evaluation of estimate is considered as the clarity normative reference of picture frame, i.e. picture frame focusing during entirely taking pictures The focusing evaluation of estimate in region is bigger, then the clarity for representing the picture frame is higher.
The embodiment of the present invention, can receive instruction for previewing of taking pictures, and obtain the picture frame of camera collection, calculate described image frame Focusing evaluation of estimate, and described image frame is added into image buffer storage queue storage, and then receive the photographing instruction of input, according to figure As the focusing evaluation of estimate of frame chooses target image frame in described image buffer queue, using the target image frame as figure of taking pictures As output, the clarity of photo can be improved, and there is the effect of stabilization.
A kind of photographic method disclosed by the embodiments of the present invention and device are described in detail above, it is above disclosed Only present pre-ferred embodiments, cannot limit the interest field of the present invention with this certainly, therefore according to right of the present invention It is required that the equivalent variations made, are still within the scope of the present invention.

Claims (6)

  1. A kind of 1. photographic method, it is characterised in that including:
    Reception is taken pictures instruction for previewing, and the picture frame of camera collection is obtained under zero second snap pattern;
    Calculate the focusing evaluation of estimate of described image frame;
    Described image frame is added into image buffer storage queue storage, wherein, the length of described image buffer queue passes through preset time The interior camera can the quantity of acquired image frames determine;
    The photographing instruction that physical button is inputted is pressed in reception, according to the focusing evaluation of estimate of picture frame in described image buffer queue Middle selection target image frame, using the target image frame as image output of taking pictures;Wherein, according to the focusing evaluation of estimate of picture frame Target image frame is chosen in described image buffer queue, including:According to each cache image frame in described image buffer queue Acquisition time order determines the time weighting value of each cache image frame;According to the focusing evaluation of estimate of each cache image frame The selection reference value of each cache image frame is determined with the time weighting value of each cache image frame;Cached in described image The picture frame for determining to choose reference value maximum in queue is as the target image frame;And
    After the completion of this is taken pictures, the picture frame cached during this is taken pictures in image buffer storage queue is deleted.
  2. 2. according to the method described in claim 1, it is characterized in that, when the length of described image buffer queue is by determining default In the camera institute energy acquired image frames quantity determine, including:
    Determine that the camera gathers the time span of a two field picture frame;
    According to the time span determine the camera in the preset time can acquired image frames quantity, and will described in Quantity is determined as the length of described image buffer queue.
  3. 3. the according to the method described in claim 1, it is characterized in that, focusing evaluation of estimate step bag for calculating described image frame Include:
    Obtain the spectrogram of the focusing area of described image frame;
    Obtain the quantity of the high fdrequency component in the spectrogram;
    The quantitative value of the high fdrequency component is determined as to the focusing evaluation of estimate of described image frame.
  4. A kind of 4. camera arrangement, it is characterised in that including:
    Receiving unit, for receiving instruction for previewing of taking pictures;
    Acquiring unit, for the receiving unit receive it is described take pictures instruction for previewing when, obtained and take the photograph under snap pattern at zero second The picture frame gathered as head;
    Computing unit, for calculating the focusing evaluation of estimate of described image frame;
    Storage unit, for described image frame to be added image buffer storage queue storage, wherein, the length of described image buffer queue By the camera in preset time can the quantity of acquired image frames determine;
    The receiving unit, is additionally operable to receive and presses the photographing instruction that physical button is inputted;
    Unit is chosen, is received for the receiving unit when pressing photographing instruction that physical button is inputted, according to picture frame Focusing evaluation of estimate target image frame is chosen in described image buffer queue, and using the target image frame as image of taking pictures Output, and also after the completion of this is taken pictures, delete the picture frame cached during this is taken pictures in image buffer storage queue;Its In, the unit of choosing determines each caching according to the acquisition time order of each cache image frame in described image buffer queue The time weighting value of picture frame;Weighed according to the time of the focusing evaluation of estimate of each cache image frame and each cache image frame Weight values determine the selection reference value of each cache image frame;Determine to choose reference value maximum in described image buffer queue Picture frame is as the target image frame.
  5. 5. device according to claim 4, it is characterised in that described device further includes:
    Determination unit, for determining that the camera gathers the time span of a two field picture frame;
    The determination unit, is additionally operable to determine that the camera institute can collection figure in the preset time according to the time span As the quantity of frame, and the quantity is determined as to the length of described image buffer queue.
  6. 6. device according to claim 4, it is characterised in that the computing unit is additionally operable to:
    Obtain the spectrogram of the focusing area of described image frame;
    Obtain the quantity of the high fdrequency component in the spectrogram;
    The quantitative value of the high fdrequency component is determined as to the focusing evaluation of estimate of described image frame.
CN201410851276.0A 2014-12-30 2014-12-30 A kind of photographic method and device Active CN104618640B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410851276.0A CN104618640B (en) 2014-12-30 2014-12-30 A kind of photographic method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410851276.0A CN104618640B (en) 2014-12-30 2014-12-30 A kind of photographic method and device

Publications (2)

Publication Number Publication Date
CN104618640A CN104618640A (en) 2015-05-13
CN104618640B true CN104618640B (en) 2018-05-01

Family

ID=53152904

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410851276.0A Active CN104618640B (en) 2014-12-30 2014-12-30 A kind of photographic method and device

Country Status (1)

Country Link
CN (1) CN104618640B (en)

Families Citing this family (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105007421B (en) * 2015-07-14 2019-02-12 Oppo广东移动通信有限公司 A kind of picture shooting method and mobile terminal
CN105049728A (en) * 2015-08-17 2015-11-11 广东欧珀移动通信有限公司 Method and device for acquiring shot image
CN105120153B (en) * 2015-08-20 2018-01-19 广东欧珀移动通信有限公司 A kind of image capturing method and device
CN105657242A (en) * 2015-11-06 2016-06-08 乐视移动智能信息技术(北京)有限公司 Night scene shooting method and device and mobile terminal
CN105391942B (en) * 2015-12-02 2019-04-16 小米科技有限责任公司 Automatic photographing method and device
CN107105150A (en) * 2016-02-23 2017-08-29 中兴通讯股份有限公司 A kind of method, photographic method and its corresponding intrument of selection photo to be output
CN105578061A (en) * 2016-02-25 2016-05-11 广东欧珀移动通信有限公司 Anti-shaking method and device for photographing, and mobile terminal
CN105791682A (en) * 2016-02-29 2016-07-20 广东欧珀移动通信有限公司 Control method, control device and electronic device
CN105915792A (en) * 2016-05-03 2016-08-31 广东欧珀移动通信有限公司 Shooting method and device
CN105959537A (en) * 2016-05-03 2016-09-21 广东欧珀移动通信有限公司 Imaging device control method, imaging device controlling unit and electronic device
CN105959557B (en) * 2016-06-07 2019-05-10 深圳市万普拉斯科技有限公司 Photographic method and device
CN105979155A (en) * 2016-06-30 2016-09-28 维沃移动通信有限公司 Photographing method and mobile terminal
CN106331491A (en) * 2016-08-29 2017-01-11 广东欧珀移动通信有限公司 Photographing method and device
WO2018072308A1 (en) * 2016-10-17 2018-04-26 华为技术有限公司 Image output method and electronic device
CN106686309B (en) * 2016-12-30 2019-09-17 奇酷互联网络科技(深圳)有限公司 The method, device and mobile terminal of snapshots
CN107172296A (en) * 2017-06-22 2017-09-15 维沃移动通信有限公司 A kind of image capturing method and mobile terminal
CN110248049B (en) * 2017-07-10 2021-08-13 Oppo广东移动通信有限公司 Mobile terminal, shooting control method, shooting control device and computer-readable storage medium
CN107360369B (en) * 2017-07-18 2021-06-08 深圳天珑无线科技有限公司 Image pickup apparatus, photographing method of image pickup apparatus, and computer-readable storage medium
CN107566736A (en) * 2017-09-30 2018-01-09 努比亚技术有限公司 A kind of grasp shoot method and mobile terminal
WO2019084736A1 (en) * 2017-10-30 2019-05-09 深圳市大疆创新科技有限公司 Shooting control method, shooting device, and uav
CN108124099B (en) * 2017-12-14 2021-01-08 Tcl移动通信科技(宁波)有限公司 Method for generating camera thumbnail, mobile terminal and storage medium
CN108225741A (en) * 2017-12-28 2018-06-29 广东欧珀移动通信有限公司 Method for testing definition, device, storage medium and electronic equipment
CN109480766A (en) * 2018-11-14 2019-03-19 深圳盛达同泽科技有限公司 Retina Atomatic focusing method, device, system and fundus camera
CN110033461B (en) * 2019-04-08 2021-03-30 北京易诚高科科技发展有限公司 Mobile phone anti-shake function evaluation method based on target displacement estimation
CN110881104A (en) * 2019-10-17 2020-03-13 宇龙计算机通信科技(深圳)有限公司 Photographing method, photographing device, storage medium and terminal
CN111131698B (en) * 2019-12-23 2021-08-27 RealMe重庆移动通信有限公司 Image processing method and device, computer readable medium and electronic equipment
CN112019739A (en) * 2020-08-03 2020-12-01 RealMe重庆移动通信有限公司 Shooting control method and device, electronic equipment and storage medium
CN112637506A (en) * 2020-12-29 2021-04-09 上海小零网络科技有限公司 Method for accelerating focusing of mobile phone
CN113660426B (en) * 2021-09-08 2023-07-18 英望科技(山东)有限公司 Method and system for preventing user photographing shake and computer readable storage medium
CN113938602B (en) * 2021-09-08 2022-08-02 荣耀终端有限公司 Image processing method, electronic device, chip and readable storage medium
WO2023160280A1 (en) * 2022-02-28 2023-08-31 荣耀终端有限公司 Photographing method and related apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101505374A (en) * 2008-02-04 2009-08-12 株式会社理光 Apparatus, method system, and program for image processing
CN102866802A (en) * 2012-08-27 2013-01-09 广东欧珀移动通信有限公司 Mobile terminal, image collecting method and system thereof
CN103618855A (en) * 2013-12-03 2014-03-05 厦门美图移动科技有限公司 Photographing method and device for automatically selecting optimal image

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004135029A (en) * 2002-10-10 2004-04-30 Fuji Photo Film Co Ltd Digital camera
US7577340B2 (en) * 2004-07-21 2009-08-18 Panasonic Corporation Device and method for recording real-time data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101505374A (en) * 2008-02-04 2009-08-12 株式会社理光 Apparatus, method system, and program for image processing
CN102866802A (en) * 2012-08-27 2013-01-09 广东欧珀移动通信有限公司 Mobile terminal, image collecting method and system thereof
CN103618855A (en) * 2013-12-03 2014-03-05 厦门美图移动科技有限公司 Photographing method and device for automatically selecting optimal image

Also Published As

Publication number Publication date
CN104618640A (en) 2015-05-13

Similar Documents

Publication Publication Date Title
CN104618640B (en) A kind of photographic method and device
CN105100615B (en) A kind of method for previewing of image, device and terminal
CN111885294B (en) Shooting method, device and equipment
KR101709380B1 (en) Image processing apparatus, image processing method and program thereof
WO2019237992A1 (en) Photographing method and device, terminal and computer readable storage medium
CN105339841B (en) The photographic method and bimirror head apparatus of bimirror head apparatus
CN105874780B (en) The method and apparatus that text color is generated to one group of image
CN101601279B (en) Imaging device, imaging method, and program
JP5434361B2 (en) Image processing apparatus and image processing method
JP2017509259A (en) Imaging method for portable terminal and portable terminal
CN106412458A (en) Image processing method and apparatus
CN102611844A (en) Method and apparatus for processing image
CN110191291A (en) Image processing method and device based on multiple image
CN107743191A (en) Terminal and its stabilization photographic method, storage device
CN109672819A (en) Image processing method, device, electronic equipment and computer readable storage medium
CN103533228B (en) Method and system for generating a perfect shot image from multiple images
JP2012133607A (en) Image processing apparatus, image processing method and program
CN104270573A (en) Multi-touch focus imaging system and method, as well as applicable mobile terminal
CN108924427A (en) A kind of video camera focus method, device and video camera
US20160050355A1 (en) Storyboards for capturing images
KR20200073694A (en) Apparatus comprising multi-camera and image processing method thereof
CN106231200A (en) A kind of photographic method and device
CN106303235A (en) Take pictures processing method and processing device
CN108833768A (en) A kind of image pickup method of multi-cam, camera terminal and readable storage medium storing program for executing
CN106257906B (en) Image effect handles auxiliary device and image effect handles householder method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.