CN104618640A - Photographing method and device - Google Patents

Photographing method and device Download PDF

Info

Publication number
CN104618640A
CN104618640A CN201410851276.0A CN201410851276A CN104618640A CN 104618640 A CN104618640 A CN 104618640A CN 201410851276 A CN201410851276 A CN 201410851276A CN 104618640 A CN104618640 A CN 104618640A
Authority
CN
China
Prior art keywords
picture frame
image
frame
estimate
buffer storage
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
CN201410851276.0A
Other languages
Chinese (zh)
Other versions
CN104618640B (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 provides photographing method and device. The photographing method comprises the steps of receiving a photographing previewing instruction; acquiring an image frame acquired by a camera; calculating a focusing evaluation value of the image frame; adding the image frame to an image cache array to be stored; receiving an input photographing instruction; selecting a target image frame from the image cache array according to the focusing evaluation value of the image frame; outputting the target image frame as a photographed image. With the adoption of the method, the definition of a photo can be improved, and the jittering is prevented.

Description

A kind of photographic method and device
Technical field
The present invention relates to photograph taking technical field, particularly relate to a kind of photographic method and device.
Background technology
Along with the development of terminal technology, nowadays a lot of mobile terminal all supports taking pictures of high definition, such as: palmtop PC of the mobile phone of band camera function, the panel computer of band camera function, band camera function etc.The quality of taking pictures has become one of standard of an evaluation mobile terminal performance quality, and the shake produced in photograph taking process is the key factor affecting image definition, therefore there has been proposed various scheme to prevent the definition that the shake produced in the process of taking pictures reduces photo.In prior art, usual employing improvement hardware configuration or the method utilizing software to carry out the synthesis of picture multiframe prevent the generation in the process of taking pictures from shaking and improving image definition, but, adopt hardware to prevent shaking the method reducing image definition and can increase hardware production cost, in addition its application on the mobile terminal of the such as type such as mobile phone, panel computer also and immature, and production yields is low; And utilize software to carry out the synthesis of picture multiframe to prevent from shaking and reduce the method for image definition, but there is algorithm aggregate velocity slow, and the problem that synthetic effect is sometimes also undesirable.
Summary of the invention
Embodiments provide a kind of photographic method and device, the definition of photo can be improved, and there is the effect of relative stabilization.
Embodiments provide a kind of photographic method, described method comprises:
Reception is taken pictures instruction for previewing, obtains the picture frame of camera collection;
Calculate the focusing evaluation of estimate of described picture frame;
Described picture frame is added image buffer storage queue to store;
Receive the photographing instruction of input, the focusing evaluation of estimate according to picture frame chooses target image frame in described image buffer storage queue, is exported by described target image frame as image of taking pictures.
Accordingly, embodiments provide a kind of device, described device comprises:
Receiving element, for receiving instruction for previewing of taking pictures;
Acquiring unit, during instruction for previewing of taking pictures described in receiving for described receiving element, obtains the picture frame of camera collection;
Computing unit, for calculating the focusing evaluation of estimate of described picture frame;
Memory cell, stores for described picture frame being added image buffer storage queue;
Described receiving element, also for receiving the photographing instruction of input;
Choose unit, when receiving the photographing instruction of input for described receiving element, the focusing evaluation of estimate according to picture frame chooses target image frame in described image buffer storage queue, and is exported as image of taking pictures by described target image frame.
The embodiment of the present invention can receive instruction for previewing of taking pictures, obtain the picture frame of camera collection, also can calculate the focusing evaluation of estimate of described picture frame, described picture frame is added image buffer storage queue to store, and then receiving the photographing instruction of input, focusing evaluation of estimate according to picture frame chooses target image frame in described image buffer storage queue, and is exported as image of taking pictures by described target image frame.The definition of photo can be improved, there is the effect of relative stabilization.
Accompanying drawing explanation
In order to be illustrated more clearly in embodiment of the present invention technical scheme, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of photographic method schematic flow sheet that the embodiment of the present invention provides;
Fig. 2 is the another kind of photographic method schematic flow sheet that the embodiment of the present invention provides;
Fig. 3 is another photographic method schematic flow sheet that the embodiment of the present invention provides;
Fig. 4 is a kind of camera arrangement structural representation that the embodiment of the present invention provides;
Fig. 5 is zero second snap principle schematic that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In specific implementation, method described in the invention is performed by the one group of code stored in memory, and this code is executed in the computer system based on von Neumann system.
A kind of photographic method provided the embodiment of the present invention below in conjunction with Fig. 1 to Fig. 5 and device are specifically described.
See Fig. 1, be a kind of photographic method schematic flow sheet that the embodiment of the present invention provides, photographic method as shown in the figure can comprise the following steps:
S101, receives instruction for previewing of taking pictures, and obtains the picture frame of camera collection.
In specific implementation, when user is for taking pictures, can initiate to start camera requests and preview request of taking pictures in terminal, such as, terminal is card camera, when card camera cuts out, namely user's power button clicked in card camera is considered as user and inputs enabled instruction and instruction for previewing of taking pictures simultaneously, and user initiates to start camera requests and preview request of taking pictures; And for example, power button user clicked in card camera is considered as user and inputs enabled instruction, and user initiates to start camera requests, and button of user partly being tripped is considered as input and takes pictures instruction for previewing, and user initiates to take pictures preview request.
It should be noted that the camera mentioned by the present embodiment can be the camera of terminal built-in, as carried the mobile phone of camera; This step terminal receive take pictures instruction for previewing time, start camera and obtain the picture frame of camera collection.If terminal does not comprise built-in camera, but be connected with outside camera, if terminal is PC (Personal Computer, personal computer), in PC, camera is not set, but PC be connected with outside camera; This step receive take pictures instruction for previewing time, start the camera be connected with PC, and obtain the picture frame of camera collection.
S102, calculates the focusing evaluation of estimate of described picture frame.
What focusing evaluation of estimate specifically represented is the definition of picture frame focusing area, usually takes pictures to utilize the definition at focusing area place to represent the definition of whole picture frame in focus process.In specific implementation, adopt the focusing evaluation of estimate of image processing method calculating chart picture frame focusing area, key is choosing of Image Definition, and desirable evaluation function requires to have: unbiasedness, unimodality, the polarity that can reflect out of focus, the feature such as low to noise sensitivity, amount of calculation is little as far as possible.
Type based on the Image Definition of image processing method roughly has: energy gradient function, frequency spectrum function, gray level entropy function and grey scale change function etc.Wherein, energy gradient function adopts the Grad of a Difference Calculation point of neighbor pixel, and the image border that definition is high is more clear, and the Grad of image is larger, and this function amount of calculation is little, and reliability is high and unimodality good.And frequency spectrum function is wherein mainly based on Fourier transform, its theoretical foundation is that image is through Fourier transform, high fdrequency component is in image border, focal position clearly image ratio out-of-focus image has sharper edge, namely image border comprises more information, can its details of clearer resolution, and this function sensitivity is high, but amount of calculation is large, and operational efficiency is lower.
In the present embodiment, according to the focusing evaluation of estimate calculating focusing area based on frequency spectrum function, first Fourier transform can be done to the image of focusing area thus the spectrogram of acquisition picture frame focusing area, then the quantity of the high fdrequency component in focusing area spectrogram is determined, using the focusing evaluation of estimate of the quantitative value of high fdrequency component as picture frame.
S103, adds image buffer storage queue and stores by described picture frame.
Carry out under " zero second snap " pattern that the process of taking pictures described in the present embodiment can be supported at current multiple terminal, zero second snap principle schematic as shown in Figure 5, under zero second snap pattern, terminal a few two field picture frame buffer of collection that meeting is real-time under preview mode of taking pictures, and the advantage that it has " 0 shutter delay " (the shutter delay time is short), make the time shorten that the whole process of taking pictures uses under zero second snap pattern, realize the effect of " What You See Is What You Get ".In the present embodiment, the real-time caching function of picture frame under zero second snap pattern is namely achieved by step S101 and step S103.
It should be noted that, the length of image buffer storage queue by determine this camera in Preset Time can the quantity of acquired image frames determine, wherein, Preset Time can be the proper time span such as 1.5s, 1s, 0.5s or 0.2s, Preset Time is long causes the picture frame that in image buffer storage queue, major part stores not to be user's desired image moment of preserving, and time too short meeting makes the picture frame of buffer memory in image buffer storage queue very few and not picture frame more clearly.
S104, receive the photographing instruction of input, the focusing evaluation of estimate according to picture frame chooses target image frame in described image buffer storage queue, is exported by described target image frame as image of taking pictures.
In specific implementation, user's shutter key pressed in terminal is input photographing instruction, and this shutter key can be physical button on touchtone terminal, also can be the virtual key in touch terminal.Terminal chooses target image frame according to the focusing evaluation of estimate of picture frame in image buffer storage queue, and is exported as image of taking pictures by target image frame.Further, the maximum picture frame of focusing evaluation of estimate can be chosen as target image frame in image buffer storage queue.
It should be noted that, after this has been taken pictures, also need the picture frame deleting buffer memory in buffer queue in this process of taking pictures, prevent from producing interference to taking pictures next time.
The embodiment of the present invention, instruction for previewing of taking pictures can be received, obtain the picture frame of camera collection, calculate the focusing evaluation of estimate of described picture frame, and described picture frame is added image buffer storage queue storage, and then receive the photographing instruction of input, focusing evaluation of estimate according to picture frame chooses target image frame in described image buffer storage queue, described target image frame is exported as image of taking pictures, the efficiency of processing procedure of taking pictures can be improved, there is the effect of stabilization.
See Fig. 2, be the another kind of photographic method schematic flow sheet that the embodiment of the present invention provides, photographic method as shown in the figure can comprise the 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 picture frame.
In specific implementation, first obtain the distributed function of described focusing area image, then do to distributed function the spectrogram that Fourier transform can obtain focusing area, wherein, gray scale refers to the brightness (or degree of the color depth) of image.In focusing area, the place of grey scale change fierceness just correspond to high fdrequency component and the little place of grey scale change correspond to low frequency component, if each position gray scale change of focusing area is little, then only to there is low frequency component in image, from the spectrogram of focusing area, only have a main peak, and be positioned at the position that frequency is zero; If each position gray scale change of focusing area is violent, then not only there is low frequency component in image, also there is multiple high fdrequency component simultaneously, from the frequency spectrum of image, not only have a main peak, also there is multiple other peak simultaneously.There is the edge with image in the place that in usual image, grey scale change is violent, therefore, focusing area high frequency components is more, and the edge in focusing area is more, and the image detail that focusing area distinguishes is more, and therefore focusing area is also more clear.
S203, obtains the quantity of the high fdrequency component in described spectrogram.
S204, is defined as the focusing evaluation of estimate of described picture frame by the quantitative value of described high fdrequency component.
As described in step S202, focusing area high frequency components is more, and the edge in focusing area is more, and the image detail that focusing area distinguishes is more, and focusing area is also more clear.The quantity of the high fdrequency component of the focusing area of picture frame just can be obtained by step S202 and step S203, and in this step the quantitative value of this high fdrequency component is defined as the focusing evaluation of estimate of this picture frame, as the definition normative reference evaluating this focusing area, and focusing evaluation of estimate is considered as the definition normative reference of picture frame in whole process of taking pictures, namely the focusing evaluation of estimate of picture frame focusing area is larger, then the definition representing this picture frame is higher.
S205, adds image buffer storage queue and stores by described picture frame.
S206, receive the photographing instruction of input, the focusing evaluation of estimate according to picture frame chooses target image frame in described image buffer storage queue, is exported by described target image frame as image of taking pictures.
In specific implementation, user's shutter key pressed in terminal is input photographing instruction, and this shutter key can be physical button in terminal, also can be the virtual key in touch terminal.Terminal chooses target image frame according to the focusing evaluation of estimate of picture frame in image buffer storage queue, and is exported as image of taking pictures by target image frame.The maximum picture frame of focusing evaluation of estimate can be chosen under normal circumstances as target image frame in image buffer storage queue.It should be noted that, after this has been taken pictures, also need the picture frame deleting buffer memory in buffer queue in this process of taking pictures, prevent from producing interference to taking pictures next time.
In the present embodiment, step S201 and S205 can step S101 in embodiment shown in Figure 1 and S103, does not repeat them here.
The embodiment of the present invention, instruction for previewing of taking pictures can be received, obtain the picture frame of camera collection, also can obtain the spectrogram of the focusing area of described picture frame, obtain the high fdrequency component in described spectrogram, and then obtain the quantity of the high fdrequency component in described spectrogram, and the quantitative value of described high fdrequency component is defined as the focusing evaluation of estimate of described picture frame, finally receive the photographing instruction of input, focusing evaluation of estimate according to picture frame chooses target image frame in described image buffer storage queue, described target image frame is exported as image of taking pictures, the definition of photo can be improved, there is the effect of stabilization.
See Fig. 3, be another photographic method schematic flow sheet that the embodiment of the present invention provides, photographic method as shown in the figure can comprise the 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 picture frame.
Contrast formula auto-focusing, its principle is: when camera starts to focus, eyeglass moves gradually, the focusing evaluation of estimate of focusing area in eyeglass moving process is calculated in real time according to preset algorithm, find that focusing evaluation of estimate rises gradually, the focusing evaluation of estimate of the focusing area of picture frame maximum (focusing area definition is the highest) during focus, but terminal does not also know now focus, so eyeglass can continue mobile, when terminal finds that eyeglass continues mobile further, the focusing evaluation of estimate of image declines (decline of focusing area definition), now the focusing area definition extreme higher position making picture frame got back to by camera eyeglass, namely the position of eyeglass when focusing area focusing evaluation of estimate is maximum.Therefore, contrast formula auto-focusing can be adopted in the present embodiment, the focusing evaluation of estimate of the focusing area of calculating chart picture frame obtain the picture frame of camera collection in step S301 while.
S303, adds image buffer storage queue and stores by described picture frame.
S304, receives the photographing instruction of input, determines the time weighting value of described each cache image frame according to the acquisition time order of cache image frame each in described image buffer storage queue.
S305, that determines described each cache image frame according to the focusing evaluation of estimate of described each cache image frame and the time weighting value of described each cache image frame chooses reference value.
S306, determines to choose the maximum picture frame of reference value as described target image frame in described image buffer storage queue.
In specific implementation, take the photo got in daily life, user is concerned about that whether photo is clear usually, the factors such as whether color is true, bright-coloured, under the scene of some activities, user also often wishes to capture excellent moment, is therefore also concerned about very much the real-time of clapping and getting photo.Camera is with Fixed Time Interval acquired image frames one by one, therefore before terminal receives the photographing instruction of input, in image buffer storage queue, sequentially more forward its acquisition time of picture frame more early, and order its acquisition time of picture frame more rearward to input photographing instruction from user more near, be also that user more thinks candid photograph at that moment.Therefore, in the present embodiment, considered the time of the collection of picture frame and the definition of picture frame, thus in image buffer storage queue, selected suitable picture frame to export as this photo obtained of taking pictures, its specific implementation process is as described in S304 ~ S306.
Such as, suppose that the length of image buffer storage queue is 5, preset each picture frame to increase progressively according to its time weighted value of the acquisition time tandem in image buffer storage queue, and be respectively 0.2, 0.25, 0.3, 0.35 and 0.4, and step S302 utilizes the image processing method based on frequency spectrum function, also the focusing evaluation of estimate of picture frame is calculated while acquired image frames, and when being currently received the photographing instruction of input, in present image buffer queue, the focusing evaluation of estimate of 5 two field picture frames is respectively: 10, 9, 8, 7 and 9, the focusing evaluation of estimate that the time weighting value of picture frame then can be utilized to be multiplied by picture frame chooses reference value to what determine picture frame, the reference value of choosing that can calculate 5 two field picture frames in image buffer storage queue is respectively: 2, 2.25, 2.4, 3, 2.45 with 3.6, and then determine that the 5th two field picture frame choosing reference value maximum is target image frame, so just can consider that photograph image that time of collection of picture frame and the definition of picture frame make to get is more clear and the time also meets user's request.
S307, exports described target image frame as image of taking pictures.
Target image frame is determined in step S306, this target image frame need be taken out from image buffer storage queue the photo as this acquisition of taking pictures and output in the file of specifying in terminal and store, it should be noted that, after this has been taken pictures, also need the picture frame deleting buffer memory in buffer queue in this process of taking pictures, prevent from producing interference to taking pictures next time.
In the present embodiment described in step S101 respectively as shown in Figure 1 in embodiment of step S301 and S303 and S103, do not repeat them here.
The embodiment of the present invention, instruction for previewing of taking pictures can be received, obtain the picture frame of camera collection, calculate the focusing evaluation of estimate of described picture frame, also can receive the photographing instruction of input, the time weighting value of described each cache image frame is determined according to the acquisition time order of cache image frame each in described image buffer storage queue, and then determine described each cache image frame according to the focusing evaluation of estimate of described each cache image frame and the time weighting value of described each cache image frame choose reference value, and determine to choose the maximum picture frame of reference value as described target image frame in described image buffer storage queue, finally described target image frame is exported as image of taking pictures, the definition of photo can be improved, there is the effect of stabilization.
See Fig. 4, a kind of camera arrangement structural representation that the embodiment of the present invention provides, camera arrangement at least can comprise as shown in the figure: receiving element 401, acquiring unit 402, computing unit 403, memory cell 404, choose unit 405.
Receiving element 401, for receiving instruction for previewing of taking pictures.
In specific implementation, when user is for taking pictures, can initiate to start camera requests and preview request of taking pictures in terminal, such as, terminal is card type camera, in card type camera, user clicks power button is that input is taken pictures instruction for previewing, when receiving element 401 receives and takes pictures instruction for previewing, is considered as user and initiates to start cam device request and preview request of taking pictures; And for example, in the card type camera started, be considered as input take pictures instruction for previewing when user partly trips button, user initiates to take pictures preview request.
Acquiring unit 402, obtains the picture frame of camera collection during instruction for previewing of taking pictures described in receiving for described receiving element.
In specific implementation, camera can be the camera of terminal built-in, as carried the mobile phone of camera; Start camera when receiving element 401 receives and takes pictures instruction for previewing, acquiring unit 402 obtains the picture frame of camera collection.If terminal does not comprise built-in camera, but be connected with outside camera, if terminal is PC (Personal Computer, personal computer), in PC, camera is not set, but PC be connected with outside camera; Receive take pictures instruction for previewing time, start the camera be connected with PC, acquiring unit 402 obtains the picture frame of camera collection.
Computing unit 403, for calculating the focusing evaluation of estimate of described picture frame.
What focusing evaluation of estimate specifically represented is the definition of picture frame focusing area, usually takes pictures to utilize the definition at focusing area place to represent the definition of whole picture frame in focus process.Type based on the Image Definition of image procossing roughly has: energy gradient function, frequency spectrum function, gray level entropy function and grey scale change function etc.Wherein, energy gradient function adopts the Grad of a Difference Calculation point of neighbor pixel, and the image border that definition is high is more clear, and the Grad of image is larger, and this function amount of calculation is little, and reliability is high and unimodality good.And frequency spectrum function is wherein mainly based on Fourier transform, its theoretical foundation is that image is through Fourier transform, high fdrequency component is in image border, focal position clearly image ratio out-of-focus image has sharper edge, namely image border comprises more information, can its details of clearer resolution, and this function sensitivity is high, but amount of calculation is large, and operational efficiency is lower.
In the present embodiment, according to the focusing evaluation of estimate calculating focusing area based on frequency spectrum function, first computing unit 403 can do Fourier transform to the image of focusing area thus obtain the spectrogram of picture frame focusing area, then determine the quantity of the high fdrequency component in focusing area spectrogram, the quantitative value of this high fdrequency component is the focusing evaluation of estimate of picture frame.
Memory cell 404, stores for described picture frame being added image buffer storage queue.
Carry out under " zero second snap " pattern that the process of taking pictures described in the present embodiment can be supported at current multiple terminal, zero second snap principle schematic as shown in Figure 5, under zero second snap pattern, terminal a few two field picture frame buffer of collection that meeting is real-time under preview mode of taking pictures, and the advantage that it has " 0 shutter delay " (the shutter delay time is short), make the time shorten that the whole process of taking pictures uses under zero second snap pattern, realize the effect of " What You See Is What You Get " to a certain extent.In the present embodiment, by acquiring unit 402 obtain the picture frame of camera collection and memory cell 404 described picture frame added image buffer storage queue stores just can the real-time caching function of picture frame under real zero snap second pattern.
Described receiving element 401, also for receiving the photographing instruction of input.
User's shutter key pressed in terminal is input photographing instruction, and this shutter key can be physical button on touchtone terminal, also can be the virtual key in touch terminal.
Choose unit 405, in described image buffer storage queue, choose target image frame for the focusing evaluation of estimate according to picture frame, and described target image frame is exported as image of taking pictures.
Choose unit 405 under normal circumstances and can choose the maximum picture frame of focusing evaluation of estimate as target image frame in image buffer storage queue.In the present embodiment, choose unit 405 target image frame is taken out from image buffer storage queue to store as this photo outputting in the file of specifying in terminal obtained of taking pictures, it should be noted that, after this has been taken pictures, also need the picture frame deleting buffer memory in buffer queue in this process of taking pictures, prevent from producing interference to taking pictures next time.
In another embodiment, described camera arrangement also comprises:
Determining unit 406, for determining the time span of described camera collection one two field picture frame.
Described determining unit, also for according to described camera in described time span determination Preset Time can the quantity of acquired image frames, and described quantity is defined as the length of described image buffer storage queue.
First the length of image buffer storage queue determine the time span of described camera collection one two field picture frame by determining unit 406, then according to described camera in described time span determination Preset Time can the quantity of acquired image frames, and described quantity is defined as the length of described image buffer storage queue.It should be noted that, Preset Time can be the proper time span such as 1.5s, 1s, 0.5s or 0.2s, Preset Time is long causes the picture frame that in image buffer storage queue, major part stores not to be user's desired image moment of preserving, and time too short meeting makes the picture frame of buffer memory in image buffer storage queue very few and not picture frame more clearly.
In another embodiment, described in choose unit 405 also for the time weighting value of determining described each cache image frame according to the acquisition time of cache image frame each in described image buffer storage queue order; That determines described each cache image frame according to the focusing evaluation of estimate of described each cache image frame and the time weighting value of described each cache image frame chooses reference value; Determine to choose the maximum picture frame of reference value as described target image frame in described image buffer storage queue.
In specific implementation, take the photo got in daily life, user is concerned about that whether photo is clear usually, the factors such as whether color is true, bright-coloured, under the scene of some activities, user also often wishes to capture excellent moment, is therefore also concerned about very much the real-time of clapping and getting photo.Camera is with Fixed Time Interval acquired image frames one by one, therefore before terminal receives the photographing instruction of input, in image buffer storage queue, sequentially more forward its acquisition time of picture frame more early, and order its acquisition time of picture frame more rearward to input photographing instruction from user more near, be also that user thinks candid photograph most at that moment.Choose unit 405 determines described each cache image frame time weighting value according to the acquisition time order of cache image frame each in image buffer storage queue, that then determines described each cache image frame according to the focusing evaluation of estimate of each cache image frame and the time weighting value of each cache image frame chooses reference value, finally determines to choose the maximum picture frame of reference value as target image frame in image buffer storage queue.The time of the collection of picture frame and the definition of picture frame can be considered, thus in image buffer storage queue, select suitable target image frame to export as this photo obtained of taking pictures.
Such as, suppose that the length of image buffer storage queue is 5, preset each picture frame to increase progressively according to its time weighted value of priority of the acquisition time order in image buffer storage queue, choose unit 405 determine the time weighting value of 5 two field picture frames and be respectively 0.2, 0.25, 0.3, 0.35 and 0.4, utilize the image processing method based on frequency spectrum function, also the focusing evaluation of estimate of picture frame is calculated while acquired image frames, and when receiving the photographing instruction of input, in present image buffer queue, the focusing evaluation of estimate of 5 two field picture frames is respectively: 10, 9, 8, 7 and 9, choose focusing evaluation of estimate that unit 405 can utilize the time weighting value of picture frame to be multiplied by picture frame to what determine picture frame and choose reference value, the reference value of choosing that can calculate 5 two field picture frames in image buffer storage queue is respectively: 2, 2.25, 2.4, 3, 2.45 with 3.6, and then to choose the 5th two field picture frame that unit 405 determines to choose reference value maximum be target image frame, so just can consider that photograph image that time of collection of picture frame and the definition of picture frame make to get is more clear and the time also meets user's request.
In another embodiment, described computing unit 402 is also for the spectrogram obtaining the focusing area of described picture frame; Obtain the quantity of the high fdrequency component in described spectrogram; The quantitative value of described high fdrequency component is defined as the focusing evaluation of estimate of described picture frame.
In specific implementation, first computing unit 402 obtains the distributed function of described focusing area image, then do to distributed function the spectrogram that Fourier transform can obtain focusing area, wherein, gray scale refers to the brightness (degree of the color depth) of image.
In focusing area, the place of grey scale change fierceness just correspond to high fdrequency component and the little place of grey scale change correspond to low frequency component, if each position grey scale change of focusing area is little, then only to there is low frequency component in image, from the spectrogram of focusing area, only have a main peak, and be positioned at the position that frequency is zero; If the change of each position of focusing area is violent, then not only there is low frequency component in image, also there is multiple high fdrequency component simultaneously, from the frequency spectrum of image, not only have a main peak, also there is multiple other peak simultaneously.
There is the edge with image in the place that in usual image, grey scale change is violent, therefore, focusing area high frequency components is more, and the edge in focusing area is more, and the image detail that focusing area distinguishes is more, and 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, in order to the quantitative value of high fdrequency component to be defined as the focusing evaluation of estimate of described picture frame.The quantitative value of the high fdrequency component in the spectrogram of acquisition is defined as the focusing evaluation of estimate of picture frame by computing unit 402, as the definition normative reference evaluating this focusing area, and described focusing evaluation of estimate is considered as the definition normative reference of picture frame in whole process of taking pictures, namely the focusing evaluation of estimate of picture frame focusing area is larger, then the definition representing this picture frame is higher.
The embodiment of the present invention, instruction for previewing of taking pictures can be received, obtain the picture frame of camera collection, calculate the focusing evaluation of estimate of described picture frame, and described picture frame is added image buffer storage queue storage, and then receive the photographing instruction of input, focusing evaluation of estimate according to picture frame chooses target image frame in described image buffer storage queue, described target image frame is exported as image of taking pictures, the definition of photo can be improved, and there is the effect of stabilization.
Above a kind of photographic method disclosed in the embodiment of the present invention and device are described in detail, above disclosedly be only present pre-ferred embodiments, certainly the interest field of the present invention can not be limited with this, therefore according to the equivalent variations that the claims in the present invention are done, the scope that the present invention is contained still is belonged to.

Claims (10)

1. a photographic method, is characterized in that, comprising:
Reception is taken pictures instruction for previewing, obtains the picture frame of camera collection;
Calculate the focusing evaluation of estimate of described picture frame;
Described picture frame is added image buffer storage queue to store;
Receive the photographing instruction of input, the focusing evaluation of estimate according to picture frame chooses target image frame in described image buffer storage queue, is exported by described target image frame as image of taking pictures.
2. method according to claim 1, is characterized in that, the described focusing evaluation of estimate according to picture frame is chosen target image frame and comprised in described image buffer storage queue:
The maximum picture frame of focusing evaluation of estimate is chosen as described target image frame in described image buffer storage queue.
3. method according to claim 1, is characterized in that, the described focusing evaluation of estimate according to picture frame is chosen target image frame and comprised in described image buffer storage queue:
The time weighting value of described each cache image frame is determined according to the acquisition time order of cache image frame each in described image buffer storage queue;
That determines described each cache image frame according to the focusing evaluation of estimate of described each cache image frame and the time weighting value of described each cache image frame chooses reference value;
Determine to choose the maximum picture frame of reference value as described target image frame in described image buffer storage queue.
4. method according to claim 1, is characterized in that, described method also comprises:
Determine the time span of described camera collection one two field picture frame;
According to described camera in described time span determination Preset Time can the quantity of acquired image frames, and described quantity is defined as the length of described image buffer storage queue.
5. method according to claim 1, is characterized in that, the focusing evaluation of estimate step of the described picture frame of described calculating comprises:
Obtain the spectrogram of the focusing area of described picture frame;
Obtain the quantity of the high fdrequency component in described spectrogram;
The quantitative value of described high fdrequency component is defined as the focusing evaluation of estimate of described picture frame.
6. a camera arrangement, is characterized in that, comprising:
Receiving element, for receiving instruction for previewing of taking pictures;
Acquiring unit, during instruction for previewing of taking pictures described in receiving for described receiving element, obtains the picture frame of camera collection;
Computing unit, for calculating the focusing evaluation of estimate of described picture frame;
Memory cell, stores for described picture frame being added image buffer storage queue;
Described receiving element, also for receiving the photographing instruction of input;
Choose unit, when receiving the photographing instruction of input for described receiving element, the focusing evaluation of estimate according to picture frame chooses target image frame in described image buffer storage queue, and is exported as image of taking pictures by described target image frame.
7. device according to claim 6, is characterized in that, described in choose unit also for:
The maximum picture frame of focusing evaluation of estimate is chosen as described target image frame in described image buffer storage queue.
8. device according to claim 6, is characterized in that, described in choose unit also for:
The time weighting value of described each cache image frame is determined according to the acquisition time order of cache image frame each in described image buffer storage queue;
That determines described each cache image frame according to the focusing evaluation of estimate of described each cache image frame and the time weighting value of described each cache image frame chooses reference value;
Determine to choose the maximum picture frame of reference value as described target image frame in described image buffer storage queue.
9. device according to claim 6, is characterized in that, described device also comprises:
Determining unit, for determining the time span of described camera collection one two field picture frame;
Described determining unit, also for according to described camera in described time span determination Preset Time can the quantity of acquired image frames, and described quantity is defined as the length of described image buffer storage queue.
10. device according to claim 6, is characterized in that, described computing unit also for:
Obtain the spectrogram of the focusing area of described picture frame;
Obtain the quantity of the high fdrequency component in described spectrogram;
The quantitative value of described high fdrequency component is defined as the focusing evaluation of estimate of described picture 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 true CN104618640A (en) 2015-05-13
CN104618640B 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)

Cited By (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105007421A (en) * 2015-07-14 2015-10-28 广东欧珀移动通信有限公司 Picture shooting method and mobile terminal
CN105049728A (en) * 2015-08-17 2015-11-11 广东欧珀移动通信有限公司 Method and device for acquiring shot image
CN105120153A (en) * 2015-08-20 2015-12-02 广东欧珀移动通信有限公司 Image photographing method and device
CN105391942A (en) * 2015-12-02 2016-03-09 小米科技有限责任公司 Automatic shooting method and device
CN105578061A (en) * 2016-02-25 2016-05-11 广东欧珀移动通信有限公司 Anti-shaking method and device for photographing, and mobile terminal
CN105657242A (en) * 2015-11-06 2016-06-08 乐视移动智能信息技术(北京)有限公司 Night scene shooting method and device 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
CN105959557A (en) * 2016-06-07 2016-09-21 深圳市万普拉斯科技有限公司 Photographing 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
CN106686309A (en) * 2016-12-30 2017-05-17 奇酷互联网络科技(深圳)有限公司 Method for snapping shot and device and mobile terminal thereof
WO2017143654A1 (en) * 2016-02-23 2017-08-31 中兴通讯股份有限公司 Method for selecting photo to be outputted, photographing method, device and storage medium
CN107172296A (en) * 2017-06-22 2017-09-15 维沃移动通信有限公司 A kind of image capturing method and mobile terminal
CN107360369A (en) * 2017-07-18 2017-11-17 深圳天珑无线科技有限公司 The photographic method of camera device and camera device, storage device
CN107566736A (en) * 2017-09-30 2018-01-09 努比亚技术有限公司 A kind of grasp shoot method and mobile terminal
WO2018072308A1 (en) * 2016-10-17 2018-04-26 华为技术有限公司 Image output method and electronic device
CN108124099A (en) * 2017-12-14 2018-06-05 Tcl移动通信科技(宁波)有限公司 A kind of method, mobile terminal and the storage medium of the generation of camera thumbnail
CN108225741A (en) * 2017-12-28 2018-06-29 广东欧珀移动通信有限公司 Method for testing definition, device, storage medium and electronic equipment
CN108886577A (en) * 2017-10-30 2018-11-23 深圳市大疆创新科技有限公司 Filming control method, capture apparatus and unmanned plane
CN109480766A (en) * 2018-11-14 2019-03-19 深圳盛达同泽科技有限公司 Retina Atomatic focusing method, device, system and fundus camera
CN110033461A (en) * 2019-04-08 2019-07-19 北京易诚高科科技发展有限公司 A kind of mobile phone stabilization function evaluating method based on the estimation of displacement of targets amount
CN110248049A (en) * 2017-07-10 2019-09-17 Oppo广东移动通信有限公司 Mobile terminal and its method of adjustment, filming control method and device
CN110881104A (en) * 2019-10-17 2020-03-13 宇龙计算机通信科技(深圳)有限公司 Photographing method, photographing device, storage medium and terminal
CN111131698A (en) * 2019-12-23 2020-05-08 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
CN113660426A (en) * 2021-09-08 2021-11-16 英望科技(山东)有限公司 Method and system for preventing photographing jitter of user and computer readable storage medium
CN113938602A (en) * 2021-09-08 2022-01-14 荣耀终端有限公司 Image processing method, electronic device, chip and readable storage medium
WO2023160280A1 (en) * 2022-02-28 2023-08-31 荣耀终端有限公司 Photographing method and related apparatus

Citations (5)

* 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
CN1725842A (en) * 2004-07-21 2006-01-25 松下电器产业株式会社 Real-time information recording device and method
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

Patent Citations (5)

* 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
CN1725842A (en) * 2004-07-21 2006-01-25 松下电器产业株式会社 Real-time information recording device and method
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

Cited By (41)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105007421A (en) * 2015-07-14 2015-10-28 广东欧珀移动通信有限公司 Picture shooting method and mobile terminal
CN105049728A (en) * 2015-08-17 2015-11-11 广东欧珀移动通信有限公司 Method and device for acquiring shot image
CN105120153A (en) * 2015-08-20 2015-12-02 广东欧珀移动通信有限公司 Image photographing method and device
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
CN105391942A (en) * 2015-12-02 2016-03-09 小米科技有限责任公司 Automatic shooting method and device
WO2017143654A1 (en) * 2016-02-23 2017-08-31 中兴通讯股份有限公司 Method for selecting photo to be outputted, photographing method, device and storage medium
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
CN105959537A (en) * 2016-05-03 2016-09-21 广东欧珀移动通信有限公司 Imaging device control method, imaging device controlling unit and electronic device
CN105915792A (en) * 2016-05-03 2016-08-31 广东欧珀移动通信有限公司 Shooting method and device
CN105959557A (en) * 2016-06-07 2016-09-21 深圳市万普拉斯科技有限公司 Photographing method and 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
CN108476286A (en) * 2016-10-17 2018-08-31 华为技术有限公司 A kind of image output method and electronic equipment
WO2018072308A1 (en) * 2016-10-17 2018-04-26 华为技术有限公司 Image output method and electronic device
CN108476286B (en) * 2016-10-17 2020-09-08 华为技术有限公司 Image output method and electronic equipment
CN106686309B (en) * 2016-12-30 2019-09-17 奇酷互联网络科技(深圳)有限公司 The method, device and mobile terminal of snapshots
CN106686309A (en) * 2016-12-30 2017-05-17 奇酷互联网络科技(深圳)有限公司 Method for snapping shot and device and mobile terminal thereof
CN107172296A (en) * 2017-06-22 2017-09-15 维沃移动通信有限公司 A kind of image capturing method and mobile terminal
CN110248049A (en) * 2017-07-10 2019-09-17 Oppo广东移动通信有限公司 Mobile terminal and its method of adjustment, filming control method and device
CN107360369A (en) * 2017-07-18 2017-11-17 深圳天珑无线科技有限公司 The photographic method of camera device and camera device, storage device
CN107566736A (en) * 2017-09-30 2018-01-09 努比亚技术有限公司 A kind of grasp shoot method and mobile terminal
CN108886577A (en) * 2017-10-30 2018-11-23 深圳市大疆创新科技有限公司 Filming control method, capture apparatus and unmanned plane
WO2019084736A1 (en) * 2017-10-30 2019-05-09 深圳市大疆创新科技有限公司 Shooting control method, shooting device, and uav
CN108124099A (en) * 2017-12-14 2018-06-05 Tcl移动通信科技(宁波)有限公司 A kind of method, mobile terminal and the storage medium of the generation of camera thumbnail
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
CN110033461A (en) * 2019-04-08 2019-07-19 北京易诚高科科技发展有限公司 A kind of mobile phone stabilization function evaluating method based on the estimation of displacement of targets amount
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
CN111131698A (en) * 2019-12-23 2020-05-08 RealMe重庆移动通信有限公司 Image processing method and device, computer readable medium and electronic equipment
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
CN113660426A (en) * 2021-09-08 2021-11-16 英望科技(山东)有限公司 Method and system for preventing photographing jitter of user and computer readable storage medium
CN113938602A (en) * 2021-09-08 2022-01-14 荣耀终端有限公司 Image processing method, electronic device, chip and 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

Also Published As

Publication number Publication date
CN104618640B (en) 2018-05-01

Similar Documents

Publication Publication Date Title
CN104618640A (en) Photographing method and device
US10269130B2 (en) Methods and apparatus for control of light field capture object distance adjustment range via adjusting bending degree of sensor imaging zone
JP6271990B2 (en) Image processing apparatus and image processing method
EP3067746B1 (en) Photographing method for dual-camera device and dual-camera device
JP5150651B2 (en) Multi-lens camera that can be operated in various modes
US9438816B2 (en) Adaptive image acquisition for multiframe reconstruction
US8306360B2 (en) Device and method for obtaining clear image
JP2015033103A (en) Image processing device, image processing method, and program
JP6319972B2 (en) Image processing apparatus, imaging apparatus, image processing method, and program
CN102595146B (en) Panoramic image generation method and device
CN105578061A (en) Anti-shaking method and device for photographing, and mobile terminal
CN108028887A (en) Focusing method of taking pictures, device and the equipment of a kind of terminal
CN113129241B (en) Image processing method and device, computer readable medium and electronic equipment
CN102611844A (en) Method and apparatus for processing image
CN110264473B (en) Image processing method and device based on multi-frame image and electronic equipment
JPWO2014155812A1 (en) Image processing apparatus, imaging apparatus, image processing method, and image processing program
CN105635568A (en) Image processing method in mobile terminal and mobile terminal
CN113810604A (en) Document shooting method and device
CN104680563B (en) The generation method and device of a kind of image data
JP2015088832A (en) Image processing device, imaging device and image processing method
CN106210541A (en) A kind of video generation method, device and mobile terminal
CN110418061B (en) Image processing method, image processor, photographing device and electronic equipment
WO2018214502A1 (en) Background blurring method and device, terminal, and storage medium
US20150116523A1 (en) Image signal processor and method for generating image statistics
JP6645711B2 (en) Image processing apparatus, image processing method, and program

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

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.

CP01 Change in the name or title of a patent holder