CN102004370B - Method for detecting focal length by flashlight in auxiliary manner - Google Patents
Method for detecting focal length by flashlight in auxiliary manner Download PDFInfo
- Publication number
- CN102004370B CN102004370B CN2009101681536A CN200910168153A CN102004370B CN 102004370 B CN102004370 B CN 102004370B CN 2009101681536 A CN2009101681536 A CN 2009101681536A CN 200910168153 A CN200910168153 A CN 200910168153A CN 102004370 B CN102004370 B CN 102004370B
- Authority
- CN
- China
- Prior art keywords
- people
- image
- face block
- value
- focal length
- 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
Links
Images
Landscapes
- Studio Devices (AREA)
Abstract
The invention discloses a method for detecting focal length by a flashlight in an auxiliary manner, which is suitable for a digital camera with the flashlight. The method comprises the following steps: firstly actuating the flashlight of the digital camera and capturing the image with face; then computing the exposure characteristic value of the face in the image; consulting a focal length contrast table according to the exposure characteristic value to obtain an initial focusing position; then executing a focusing procedure according to the initial focusing position and obtaining the target focal length; and computing the flash characteristic value of the image after obtaining the target focal length and setting the flashlight index and aperture value according to the flash characteristic value.
Description
Technical field
The present invention relates to a kind of method of utilizing flashlamp auxiliary detection focal length, particularly a kind of utilize to table look-up according to the exposed feature value have the method for focal length of the image of people's face with auxiliary detection.
Background technology
Use camera when filmed image, need correctly focal length to subject obtaining clear photograph, and all have automatic focus function at general now digital camera.Automatically focusing can be divided into two big types haply, and one is active automatic focusing (active auto focus), and another is passive type focusing (passive auto focus).
The pattern of one group of RF transmitter of the techniques make use of active automatic focusing or generating laser and relative receiver projection light is being taken the photograph on the body; Again with the distance between triangulation method computing cameras such as (triangulation) and the subject, and this distance is focal length.Owing to use active automatic focusing to need extra light transferring and receiving apparatus and the receiver of being provided with in camera, therefore have the cost problem of higher.
Automatically focusing is for before formal the shooting for passive type, and digital camera mobile camera camera lens is to a plurality of focusing positions, wherein focusing position be arranged in from from the nearest microspur of digital camera to the zone that is set as infinity.Digital camera is pick-up image on focusing position, and the sharpness of analyzing the image obtained decides focal length.The passive type mode of focusing automatically only need be used CIS and the arithmetic element that camera itself is had, so can alleviate manufacturing cost.
Yet focusing automatically, passive type needs to rely on, so when subject is in the ambient brightness deficiency, estimates the focal length that and be easy to generate error by the sharpness that picked image calculated in advance.Significantly close focus (in-focus) if bright and clear then object is known from experience to have during photography, make camera find correct focusing position easily.Otherwise, when the estimation sharpness, can make camera be difficult for finding out correct focal length because of situation such as general image definition are lower if ambient brightness is not enough.So passive type focusing automatically can have the not accurate enough problem of focusing when ambient brightness is not enough.
In addition, when taking pictures, personage's image is the part of attaching most importance in the picture.Before the filmed image, previous operations such as focusing or photometry all should be carried out according to character facial.Yet traditional automatic focusing mode may be judged as photography body to other things beyond background or the personage, lose burnt problem on the contrary for the personage who takes emphasis and have.
Summary of the invention
In view of above problem, technical matters to be solved by this invention is to provide a kind of method of utilizing flashlamp auxiliary detection focal length, to address the above problem.The disclosed method of utilizing flashlamp auxiliary detection focal length of the present invention; Be applicable to that one has the digital camera of flashlamp; According to one contain at least one people's face quilt take the photograph target and provide digital camera one target focal length, its method comprises: flash of light and to being taken the photograph target acquisition one first image; Get an exposed feature value, the corresponding people's face of this person's face block according at least one people's face block calculating in first image; Consult a burnt section table of comparisons according to the exposed feature value and obtain an initial focusing position; And the initial focusing position of foundation is carried out a focusing program to obtain the target focal length.
According to the first embodiment of the present invention, the step that gets an exposed feature value according at least one people's face block calculating in first image can comprise: in first image, search people's face block; Calculate a pixel exposure value of each pixel of people's face block image; And the plain exposure value of capture on average as the exposed feature value.
According to the second embodiment of the present invention, the step that gets an exposed feature value according at least one people's face block calculating in first image can comprise: in first image, search people's face block; By the edge of central authorities to people's face block image of people's face block image, with a pixel exposure value of each pixel of gradient weighted calculation people face block image; And the plain exposure value of capture on average as the exposed feature value.
According to the third embodiment of the present invention, the step that gets an exposed feature value according at least one people's face block calculating in first image can comprise: in first image, search people's face block; Calculate a pixel exposure value of each pixel of people's face block image; In each people's face block image, an exposure value of pixel made even respectively and all obtain the average exposure value of a plurality of people's faces; According to people's face block, given each one face block one weighted value; And according to weighted value and the average exposure value calculation exposure of people's face eigenwert.
According to the fourth embodiment of the present invention, the step that gets an exposed feature value according at least one people's face block calculating in first image can comprise: in first image, search people's face block; By the edge of central authorities to people's face block image of people's face block image, with a pixel exposure value of each pixel of gradient weighted calculation people face block image; In each people's face block image, an exposure value of pixel made even respectively and all obtain the average exposure value of a plurality of people's faces; According to people's face block, given each one face block one weighted value; And according to weighted value and the average exposure value calculation exposure of people's face eigenwert.
According to the present invention; The burnt section table of comparisons comprises a plurality of metraster train values and a plurality of focal length values corresponding with the metraster train value; Consulting the step that the burnt section table of comparisons obtains initial focusing position according to the exposed feature value promptly is in the burnt section table of comparisons, to consult the metraster train value with the exposed feature value, to drawing the focal length value corresponding with the exposed feature value as initial focusing position.
According to one embodiment of the invention, carry out the focusing program according to initial focusing position and can comprise: specify a focusing section according to initial focusing position with the step that obtains the target focal length; At least three focal lengths in the focusing section capture one respectively and survey burnt image; Calculate a clear value of surveying burnt image respectively; Carry out curve fitting to obtain a quadratic polynomial with clear value and the focal length corresponding with clear value; And serve as that zero pairing focal length is as the target focal length with the slope of quadratic polynomial.
According to another embodiment of the present invention, carry out a focusing program can comprise after the step that obtains the target focal length according to initial focusing position: get a general exposure value according to the calculating of the part beyond people's face block in the exposed feature value and first image; Get a flash of light eigenwert according to the exposed feature value with general exposure value calculating; And foundation flash of light eigenwert is set a guide number and a f-number.
About characteristic of the present invention, the real work and effect, conjunction with figs. is done the most preferred embodiment detailed description as follows now.
Description of drawings
Fig. 1 is for utilize the schematic flow sheet of the method for flashlamp auxiliary detection focal length according to an embodiment of the invention;
Fig. 2 is the structural representation of the digital camera that is suitable for according to the present invention;
Fig. 3 A is the schematic flow sheet of first embodiment of step S22 according to an embodiment of the invention;
Fig. 3 B is the schematic flow sheet of second embodiment of step S22 according to an embodiment of the invention;
Fig. 3 C is the schematic flow sheet of the 3rd embodiment of step S22 according to an embodiment of the invention;
Fig. 3 D is the schematic flow sheet of the 4th embodiment of step S22 according to an embodiment of the invention;
Fig. 4 is the schematic flow sheet of step S26 according to an embodiment of the invention;
Fig. 5 A is the synoptic diagram of horizontal shade according to an embodiment of the invention;
Fig. 5 B is the synoptic diagram of vertical according to an embodiment of the invention shade; And
Fig. 6 sets the schematic flow sheet of a guide number and a f-number for after obtaining the target focal length according to an embodiment of the invention according to first image and exposed feature value.
Wherein, Reference numeral
100 digital cameras, 102 flashlamp
104 lens assemblies, 106 iris apparatus
108 photo-sensitive cells (CCD), 110 sample circuits (sample hold circuit)
112 storage elements, 114 CD-ROM drive motors
116 processing units, 118 operating means
130 shades (mask), 132 shade content elements
Embodiment
Below the narration about detailed features of the present invention and advantage; Its content is enough to make any those skilled in the art to understand technology contents of the present invention and implements according to this; And according to the disclosed content of this instructions, claim and accompanying drawing, any those skilled in the art can understand purpose and the advantage that the present invention is correlated with easily.
Please with reference to Fig. 1, it is for utilize the process flow diagram of the method for flashlamp auxiliary detection focal length according to an embodiment of the invention.The method of utilizing flashlamp auxiliary detection focal length of the present invention be suitable for one have a flashlamp digital camera, the method according to one contain at least one people's face quilt take the photograph target this digital camera one target focal length be provided.About the digital camera that the present invention was suitable for to be but to be not limited to Fig. 2.
Digital camera 100 comprises flashlamp 102, lens assembly 104, iris apparatus 106, photo-sensitive cell (CCD) 108, sample circuit (Sampling hold circuit) 110, storage element 112, CD-ROM drive motor 114, processing unit 116 and operating means 118.Light by scene reflected gets into photo-sensitive cell 108 through lens assembly 104 and iris apparatus 106, and photo-sensitive cell 108 is recorded in storage element 112 after the light that gets into is converted to signal of video signal and passes to sample circuit 110.
During shooting, processing unit 116 activated drive motors 114 are with moving lens device 104 to appointment focal position.Processing unit 116 also passes through CD-ROM drive motor 114 adjustment iris apparatus 106.Photo-sensitive cell 108 converts the electric signal of digitized video to corresponding to lens assembly 104 and the image frame of current scene.The driving of treated unit, sample circuit 110 is sent to storage element 112 with the signal of video signal that photo-sensitive cell 108 is received.Processing unit 116 need be adjusted the focusing focal length of lens assembly 104 and take so that digital camera 100 to be provided according to the preview image that is captured in the capture preview phase in order to judgement.
Please, from Fig. 1, can see and know, utilize the method for flashlamp auxiliary detection focal length to comprise step S20: to activate this flashlamp, and capture first image again with reference to figure 1 and cooperate Fig. 2 to read it; Step S22: get an exposed feature value according at least one people's face block calculating in first image; Step S24: consult the burnt section table of comparisons according to the exposed feature value, obtain initial focusing position; And step S26: carry out a focusing program to obtain the target focal length according to initial focusing position.
In step S20, processing unit 116 makes flashlamp 102 actions through CD-ROM drive motor 114.When flashlamp 102 sent a preflashing light, digital camera 100 acquisition first images also were recorded in the storage element 112.Processing unit 116 is analyzed this first image and is used for auxiliary focusing (auto focus) automatically to the data after analyzing.Aforementioned picked image is not limited to only capture one, is that refinement really also can use many image to handle during practical application.Below only with individual as explanation.
Therefore first image of abovementioned steps S22 has been represented combining of subject reflected ambient that contains at least one people's face and the light that is sent by flashlamp 102 and be reflected, and forms in the light of first image to comprise reflection preflashing light.So also can be referred to as the reflex exposure value at this exposure value.The depth of exposure of exposed feature value representation subject under the state that gives the preflashing light understood according to the distance of subject and digital camera 100 difference to some extent.The account form of exposed feature value is held the back and is detailed.
Obtain after the exposed feature value, step S24 consults a burnt section table of comparisons (also can be described as the focusing section table of comparisons) with the exposed feature value.The burnt section table of comparisons comprises a plurality of metraster train values and the focal length value corresponding with the metraster train value.This burnt section table of comparisons be one with the exposed feature value and the table of comparisons to possible focal length value that should the exposed feature value.That is to say, go to consult the focal length value corresponding to the exposed feature value at the metraster train value and can obtain aforesaid initial focusing position with the exposed feature value.Available initial focusing position can be for the usefulness of follow-up focusing program after consulting the burnt section table of comparisons according to the exposed feature value.Holding the back about the table mode of building of the burnt section table of comparisons details.
Step S26 is through obtaining the RP of initial focusing position as the focusing scanning position of focusing program, making the focusing program to exempt and scan all by the focusing position in microspur to the infinity, and then reduce traditional focusing program required focusing time and power consumption.
About obtain the step of exposed feature value by first image, please refer to Fig. 3 A, Fig. 3 B, Fig. 3 C and Fig. 3 D.Fig. 3 A is the schematic flow sheet of first embodiment of step S22 according to an embodiment of the invention.The flow process of this embodiment comprises step S30: in first image, search people's face block; Step S32: a pixel exposure value of calculating each pixel of people's face block image; And step S34: the plain exposure value of capture on average as the exposed feature value.
At first step S30 searches people's face block in first image, i.e. its contained people face part in first image, and acquisition people's face block image.Wherein the shape of people's face block can be but not limit to be a square frame shape, and its size and the position in image etc. are also unrestricted.
Then step S32 calculates a pixel exposure value of all pixels of people's face block image.Each pixel has a tristimulus values (RGB value), and RGB refers to redness, green and the blue value of this pixel respectively.Its method converts the tristimulus values of each pixel to the GTG value earlier according to formula (0.6G+0.3R+0.1B) earlier, again the GTG value is accordinged to formula log
2(0.6G+0.3R+0.1B) calculate the exposure value of each pixel.After calculating the pixel exposure value of all pixels in people's face block image, step S34 makes even the pixel exposure value all as the exposed feature value.
Fig. 3 B is the schematic flow sheet of second embodiment of step S22 according to an embodiment of the invention.The flow process of this embodiment comprises step S40: in first image, search people's face block; Step S42: by the central authorities of people's face block image to the edge, with a pixel exposure value of each pixel of gradient weighted calculation people face block image; And step S44: the plain exposure value of capture on average as the exposed feature value.
After step S40 hunts out the people's face block in first image, the people's face block image in the acquisition people face block.And step S42 carries out weighted calculation according to after aforementioned calculation goes out the exposure value of each pixel in people's face block image to all exposure values.The step that gives the weighting weight is following.Specify maximum people's face pixel weight at first for the Centromedian pixel of people's face block image; Specify minimum people's face pixel weight for again the pixel at the edge of people's face block image, give remaining pixel nominator's face pixel weight in people's face block image with interpolation method at last.After multiply by corresponding people's face pixel weight to each exposure value, the pixel in everyone the face block image can obtain corresponding pixel exposure value.Step S44 makes even all pixel exposure values all as the exposed feature value of first image again.
Fig. 3 C is the schematic flow sheet of the 3rd embodiment of step S22 according to an embodiment of the invention.The flow process of this embodiment comprises step S50: in first image, search people's face block; Step S52: a pixel exposure value of calculating each pixel of people's face block image; Step S54: in each people's face block image, an exposure value of pixel is made even all respectively, obtain the average exposure value of a plurality of people's faces; Step S56: according to people's face block, given each one face block one weighted value; And step S58: according to weighted value and the average exposure value calculation exposure of people's face eigenwert.
Step S50 searches a plurality of people's face blocks in first image, and each people's face block is captured people's face block image.Then in step S52, calculate the pixel exposure value of the pixel in everyone the face block image according to aforementioned formula.Step S54 makes even all as people's face exposure mean value of each one face block image to its corresponding pixel exposure value respectively in each people's face block image.
Obtain after people's face exposure mean value, step S56 gives each people's face block one weighted value according to people's face block.When having a plurality of people's face block in first image, can give weight according to the distance of people's face in the image with adjustment exposed feature value.Because nearer people face part possibly be the shooting body in the image, therefore give its corresponding bigger weighted value of people's face block.
In first image, bigger people's face block possibly represent that the corresponding people's face of its block is nearer apart from digital camera, therefore gives bigger weighted value.Then according to the present invention, the method that gives weighted value can be following steps.The pixel quantity that at first calculates each people's face block image is promptly represented the size of each people's face block as people's face block sizes values.Give a plurality of people's face block weighted values according to these people's face block sizes values, these people's face block sizes values are big more, and these people's face block weighted values that obtained are just big more.
Again; The people's face block that in first image, has the bigger average exposure value of people's face representes that its corresponding people face part is brighter; And the energy of flash of light that possibly represent to reflect preflashing is stronger, and represents this person's face nearer apart from digital camera, therefore gives bigger weighted value.Then according to the present invention, the method that gives weighted value can also be: the size according to the average exposure value of each one face puts in order; And order gives weighted value according to this, and the average exposure value of the people's face weighted value that big corresponding people's face block obtained of healing is bigger.
Everyone face block has been specified after the weighted value, and step S58 is according to weighted value and the average exposure value of corresponding people's face, and weighted calculation obtains the exposed feature value.
Fig. 3 D is the schematic flow sheet of the 4th embodiment of step S22 according to an embodiment of the invention.The flow process of this embodiment comprises step S60: in first image, search people's face block; Step S62: by the central authorities of people's face block image to the edge, with a pixel exposure value of each pixel of gradient weighted calculation people face block image; Step S64: in each people's face block image, an exposure value of pixel is made even all respectively, obtain the average exposure value of a plurality of people's faces; Step S66: according to people's face block, given each one face block one weighted value; And step S68: according to weighted value and the average exposure value calculation exposure of people's face eigenwert.
Step S60 searches a plurality of people's face blocks in first image, and captures the people face block image corresponding with people's face block.In step S62,, everyone face block image is calculated the pixel exposure value of each pixel with trapezoidal waighting according to after aforementioned formula calculates the exposure value of the pixel in everyone the face block image.Wherein people's face pixel weight of trapezoidal waighting to method is: people's face pixel weight of pixel one maximum that first administration of human face block image is central; And people's face pixel weight of pixel one minimum of administration of human face block image edge, the corresponding people's face of the pixel pixel weight of being left with interpolation method again.
Obtain after the pixel exposure value of everyone face block image, step S64 makes even its corresponding pixel exposure value all as people's face exposure mean value according to each one face block.In step S66, can be as abovementioned steps S56 according to mode administration of human face block weighted values such as people's face block size or the average exposure value brightness of people's face.Then step S68 is at weighted value and the average exposure value of corresponding people's face according to gained, and weighted calculation obtains the exposed feature value.
According to the present invention, among the method for the exposure value of aforementioned calculation focusing frame image, all pixels that brighter partial pixel replaces focusing frame image in the frame image of can focusing are made even all as the exposure value of the frame image of focusing.After wherein brighter part refers to just sort all pixels by exposure value, the pixel that exposure value is higher.For example can get in the focusing frame image the brightest preceding 30% or the brightest preceding 50% remove to calculate focusing frame image exposure value, carry out the calculation exposure eigenwert again.So can avoid comprising in the pick-up image influence that image caused of the environment of a large amount of luminance shortage.
Obtain to carry out above-mentioned steps S24 after the exposed feature value, can obtain initial focusing position after consulting the burnt section table of comparisons with the exposed feature value.
According to embodiments of the invention, resulting exposed feature value possibly not have just in time corresponding metraster train value in the burnt section table of comparisons.This moment, then interior two metraster train value and focal length values corresponding with it that approach the exposed feature value were most shown in taking-up, were answered corresponding focal length value as initial focusing position with interpolation method calculation exposure eigenwert.
Please with reference to Fig. 4, it is the schematic flow sheet of step S26 according to an embodiment of the invention.Can see that by Fig. 4 it comprises step S70: specify a focusing section according to initial focusing position; Step S72: at least three focal lengths in the focusing section capture one respectively and survey burnt image; Step S74: calculate the clear value of surveying burnt image respectively; Step S76: carry out curve fitting with clear value and the focal length corresponding, obtain a quadratic polynomial with clear value; With step S78: with the slope of quadratic polynomial serves as that zero pairing focal length is as the target focal length.
Step S70 specifies the focusing section according to initial focusing position, for focusing program searching target focal length in this section.This specifies the mode of focusing section that several kinds of embodiment are arranged according to initial focusing position.One of which is to enlarge the step pitch (step, or title step distance) more than three with initial focusing position to nearly Jiao and burnt position far away, and the distance of each step pitch can be consistent or inconsistent.According to one embodiment of the invention, can decide the focusing section according to the convergent-divergent multiplying power of acquisition during first image.For example when acquisition first image, the convergent-divergent multiplying power of digital camera just might be that distant place landscape or focal length far away are focused near wide-angle side (wide).Therefore, can specify by initial focusing position and rise, be the focusing section to the section of initial focusing position till digital camera six step pitches far away from three nearer step pitches of digital camera.
Again according to another embodiment of the present invention; When digital camera acquisition during first image if the convergent-divergent multiplying power near telescope end (tele; Digital camera can further scenery image at a distance; The effect that picture amplifies image), then specifies by initial focusing position and rise, be the focusing section to the section of initial focusing position till digital camera 12 step pitches far away from six nearer step pitches of digital camera.
According to the present invention, specify according to initial focusing position in the method for focusing section, being not limited to a step pitch is unit.The size of focusing section can also a plurality of step pitch or is that unit specifies with distance (for example a centimetre or a millimeter).The sector sizes of looking for toward near or past direction far away with reference to initial focusing position in the focusing section in addition, does not also limit.Except that the foregoing description, the sector sizes of looking for toward near or past direction far away with reference to initial focusing position in the burnt section also can be identical, or bigger toward the section of near direction.
On the focal length of step S72 in the specified focusing section of step S70, capture one respectively and survey burnt image, and in the focusing section, comprise three focal lengths at least.The focusing program can be surveyed burnt image to these and calculate and analyze, in the hope of last target focal length.
Step S74 calculates the clear value with the burnt image of survey of acquisition respectively, and the mode of wherein calculating clear value can be according to one embodiment of the invention, earlier surveying burnt image with rim detection (edge-detection) routine processes.Edge detection procedure can adopt Sobel edge detection method, Dijkstra ' s algorithm or Canny rim detection algorithm etc., according to the present invention not with the restriction.After the edge detection procedure processing, clear value can be to be defined as the number of edges of surveying in the burnt image.
According to edge detection procedure of the present invention, it is surveyed burnt image to each respectively and applies mechanically horizontal shade or vertical shade, and the content of shade please refer to Fig. 5 A and Fig. 5 B.Fig. 5 A and Fig. 5 B are respectively horizontal according to an embodiment of the invention shades and the synoptic diagram of vertical shade.As shown in the figure, have in the shade (mask) 130 to comprise different shade content elements 132.
After surveying burnt image and applying mechanically shade, each pixel of surveying burnt image obtains a correlative value, and according to the size order of correlative value the correlative value described point is become curve, and each is surveyed burnt image and all can obtain a contrast curve.Calculate the program of clear value and specify a threshold value in correlation curve, the person representes the degree that contrasts enough high (being enough sharp keen parts in the image) if correlative value is higher than the threshold value.Next the part more than the threshold value is calculated integration to correlation curve, then can be defined as clear value to the numerical value that calculates.
According to clear value, step S76 carries out the curve fitting (curve fitting) of quadratic polynomial with each clear value and focal length corresponding with it of surveying burnt image, and can obtain a quadratic polynomial.The quadratic polynomial that calculates is illustrated in the variation of the sharpness of the burnt image of survey that is captured in the focusing section of appointment.Therefore the summit of quadratic polynomial, just slope is zero point, the also clear value of representative obtainable maximum in the focusing section just is with the focal length that can obtain sharp image.
In order to obtain the summit of above-mentioned quadratic polynomial, step S78 serves as zero point to the quadratic polynomial differential to search the polynomial expression codifferential, that is slope is zero point.Step S78 is slope in the quadratic polynomial that zero the pairing focal length of point is as the target focal length.According to one embodiment of the invention, when the slope of the quadratic polynomial that is obtained by curve fitting is zero a point when just in time not dropping on arbitrary focal length of appointment in the focusing section, then getting apart from slope is that the nearest focal length of zero point is as the target focal length.
According to another embodiment of the present invention, when the quadratic polynomial that obtains in the section in focusing when not have slope be zero point, then enlarge focusing section that the focusing program scanned to obtain the burnt image of more survey.The focusing program also carries out curve fitting according to burnt image of survey originally and the burnt image of the survey that newly obtains again, and the slope of searching new quadratic polynomial is that zero point is to obtain the target focal length.
According to the present invention, after digital camera 100 obtains the target focal length according to the method for utilizing flashlamp auxiliary detection focal length, drive lens assemblies 104 through CD-ROM drive motor 114 and move to and specify focal position and take.
Please with reference to Fig. 6, it sets the schematic flow sheet of a guide number and a f-number for after obtaining the target focal length according to one embodiment of the invention according to first image and exposed feature value.Comprise step S80 by visible its of Fig. 6: get a general exposure value according to the calculating of the part beyond people's face block in the exposed feature value and first image; Step S82: get a flash of light eigenwert with general exposure value calculating according to the exposed feature value; And step S84: set a guide number and a f-number according to the flash of light eigenwert.
According to the exposed feature value at step S22 gained, step S80 calculates a general pixel exposure value of each pixel of the part beyond people's face block in first image, and makes even general pixel exposure value all as general exposure value.Owing to be regarded as the shooting body to personage's image usually during photography, should be as the criterion with character facial during acquisition parameters such as calculating focal length or flash light intensity and adjust.Therefore present embodiment dodges intensity according to giving the general pixel weight in first image by the resulting exposed feature value of people's face block image in the hope of more suitable flashlamp master.
Step S80 gives general pixel exposure value the general pixel one minus weighted value more taller than the exposed feature value; Give general pixel exposure value than the also low general pixel one of exposed feature value greater than zero weighted value, and give the weighted value that general pixel one that general pixel exposure value equates with the exposed feature value equals.In addition, the size of the absolute value of weighted value then determines according to the gap of general pixel exposure value and exposed feature value, and the gap big general pixel that heals can obtain the absolute value big weighted value of healing.After the decision weighted value, become promptly to obtain general exposure value each general pixel exposure value again with corresponding weighted value.
In step S82, can make even exposed feature value and general exposure value all as the flash of light eigenwert.The flash of light eigenwert can be represented through the whole exposure value of adjusted first image of the method for weighting of above-mentioned attention people face.
According to the flash of light eigenwert, step S84 can be through inquiring about the guide number (GN, guild number) of a flash of light table of comparisons to obtain flashing.The table of comparisons that wherein glistens comprise a plurality of flash of light tabulated values and with flash of light tabulated value corresponding guide number.With the flash of light eigenwert at the flash of light table of comparisons and can obtain, for the usefulness of the main sudden strain of a muscle of the follow-up flashlamp that flashes at this flash of light required guide number during eigenwert.Holding the back about the table mode of building of the flash of light table of comparisons details.
Can calculate corresponding target focal length and the needed f-number of guide number to guide number and the target focal length of trying to achieve at step S26 after according to formula GN=D * F (D is the distance of the shooting body to digital camera, can the substitution of target focal length, F is a f-number).Then digital camera 100 can be according to the guide number that obtain of the tabling look-up flashlamp 102 that flashes, and changes iris apparatus 106 to take through CD-ROM drive motor 114.
The aforesaid burnt section table of comparisons can adopt experimental method to set up.Experimental method is set up and to be referred in dark place flash of light and with different focal length various subjects are taken, calculate and the exposed feature value of corresponding each focal length, to set up the aforesaid burnt section table of comparisons.Aforementioned subject can be an any object or a face wall.The exposed feature values that this experiment can obtain many groups according to the character of surface of different subjects (for example reflective or easy extinction) easily to be producing the burnt section tables of comparisons of many groups, and can provide different patterns to select to the user in response to the actual photographed situation.In like manner, experiment also can be simulated the different shooting environmental situation of many groups in dark place, obtains the burnt section of the corresponding many groups table of comparisons to provide different patterns to select to the user in response to the actual photographed situation.
Again, the aforementioned flash of light table of comparisons also can be adopted experimental method foundation.Flash of light with varying strength in dark place is taken various subjects, calculate and the flash of light eigenwert of corresponding each guide number, to set up the flash of light table of comparisons.
According to the method for utilizing flashlamp auxiliary detection focal length of the present invention, be applied to one have a flashlamp digital camera, first image that contains people's face block at least that captures in the time of can be according to pre flashing of flash lamp calculates the exposed feature value.According to the exposed feature value, can provide digital camera one target focal length to take digitized video for the hardware devices such as lens assembly of digital camera.In addition, according to exposed feature value and target focal length, can provide flashlamp and iris apparatus one guide number of digital camera and f-number to take for digital camera.
Certainly; The present invention also can have other various embodiments; Under the situation that does not deviate from spirit of the present invention and essence thereof; Those of ordinary skill in the art can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection domain of the appended claim of the present invention.
Claims (8)
1. a method of utilizing flashlamp auxiliary detection focal length is applicable to that one has the digital camera of flashlamp, it is characterized in that, the quilt that this method foundation one contains at least one people's face is taken the photograph target provides this digital camera one target focal length, and this method comprises:
Flash of light is also taken the photograph target acquisition one first image to this quilt;
According at least one people's face block in this first image calculate and an exposed feature value, this people's face block is to should people's face;
Consult a burnt section table of comparisons according to this exposed feature value and obtain an initial focusing position; And
Carry out a focusing program to obtain this target focal length according to this initial focusing position.
2. the method for utilizing flashlamp auxiliary detection focal length as claimed in claim 1 is characterized in that, this step that gets an exposed feature value according at least one people's face block calculating in this first image comprises:
In this first image, search this people's face block, have people's face block image in this people's face block;
Calculate a pixel exposure value of each pixel of this people's face block image; And
Get the average of said pixel exposure value as this exposed feature value.
3. the method for utilizing flashlamp auxiliary detection focal length as claimed in claim 1 is characterized in that, this step that gets an exposed feature value according at least one people's face block calculating in this first image comprises:
In this first image, search this people's face block, have people's face block image in this people's face block;
By the edge of central authorities to this people's face block image of this people's face block image, with a pixel exposure value of each pixel of this people's face block image of gradient weighted calculation; And
Get the average of said pixel exposure value as this exposed feature value.
4. the method for utilizing flashlamp auxiliary detection focal length as claimed in claim 1 is characterized in that, this step that gets an exposed feature value according at least one people's face block calculating in this first image comprises:
In this first image, search said people's face block, each said people's face block all has people's face block image;
Calculate a pixel exposure value of each pixel of said people's face block image;
In each said people's face block image, an exposure value of said pixel made even respectively and all obtain the average exposure value of a plurality of people's faces;
According to said people's face block, given each said people's face block one weighted value; And
Calculate this exposed feature value according to said weighted value and the average exposure value of said people's face.
5. the method for utilizing flashlamp auxiliary detection focal length as claimed in claim 1 is characterized in that, this step that gets an exposed feature value according at least one people's face block calculating in this first image comprises:
In this first image, search said people's face block, each said people's face block all has people's face block image;
By the edge of the central authorities of said people's face block image to said people's face block image, with a pixel exposure value of each pixel of the said people's face of gradient weighted calculation block image;
In each said people's face block image, an exposure value of said pixel made even respectively and all obtain the average exposure value of a plurality of people's faces;
According to said people's face block, given each said people's face block one weighted value; And
Calculate this exposed feature value according to said weighted value and the average exposure value of said people's face.
6. the method for utilizing flashlamp auxiliary detection focal length as claimed in claim 1; It is characterized in that; This Jiao's section table of comparisons comprises a plurality of metraster train values and a plurality of focal length values corresponding with said metraster train value; Consulting the step that this Jiao's section table of comparisons obtains an initial focusing position according to this exposed feature value promptly is in this Jiao's section table of comparisons, to consult this metraster train value with this exposed feature value, and contrast draws this focal length value conduct this initial focusing position corresponding with this exposed feature value.
7. the method for utilizing flashlamp auxiliary detection focal length as claimed in claim 1 is characterized in that, this initial focusing position of this foundation is carried out a focusing program and comprised with the step that obtains this target focal length:
Specify a focusing section according to this initial focusing position;
At least three focal lengths in this focusing section capture one respectively and survey burnt image;
Calculate a clear value of the burnt image of said survey respectively;
Carry out curve fitting to obtain a quadratic polynomial with said clear value and the said focal length corresponding with this clear value; And
Slope with this quadratic polynomial serves as that zero pairing this focal length is as this target focal length.
8. the method for utilizing flashlamp auxiliary detection focal length as claimed in claim 1 is characterized in that, carries out a focusing program to comprise after the step that obtains this target focal length according to this initial focusing position:
Get a general exposure value according to the calculating of the part beyond this people's face block in this exposed feature value and this first image;
Get a flash of light eigenwert according to the general exposure value calculating of this exposed feature value and this; And
Set a guide number and a f-number according to this flash of light eigenwert.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009101681536A CN102004370B (en) | 2009-09-01 | 2009-09-01 | Method for detecting focal length by flashlight in auxiliary manner |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009101681536A CN102004370B (en) | 2009-09-01 | 2009-09-01 | Method for detecting focal length by flashlight in auxiliary manner |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102004370A CN102004370A (en) | 2011-04-06 |
CN102004370B true CN102004370B (en) | 2012-03-28 |
Family
ID=43811847
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009101681536A Active CN102004370B (en) | 2009-09-01 | 2009-09-01 | Method for detecting focal length by flashlight in auxiliary manner |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102004370B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5802520B2 (en) * | 2011-11-11 | 2015-10-28 | 株式会社 日立産業制御ソリューションズ | Imaging device |
CN103167141A (en) * | 2012-09-14 | 2013-06-19 | 深圳市金立通信设备有限公司 | Continuous focalizing system and method of mobile phone camera |
CN103905732B (en) * | 2014-04-02 | 2015-08-26 | 努比亚技术有限公司 | Image pickup method and filming apparatus |
CN105163035A (en) * | 2015-09-30 | 2015-12-16 | 努比亚技术有限公司 | Mobile terminal shooting system and mobile terminal shooting method |
CN110493518A (en) * | 2019-08-15 | 2019-11-22 | 移康智能科技(上海)股份有限公司 | A kind of image-pickup method of security protection camera |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1444736A (en) * | 2000-07-31 | 2003-09-24 | 三洋电机株式会社 | Electronic camera and focus controlling method |
CN101430477A (en) * | 2007-11-09 | 2009-05-13 | 鸿富锦精密工业(深圳)有限公司 | Method for judging object distance |
-
2009
- 2009-09-01 CN CN2009101681536A patent/CN102004370B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1444736A (en) * | 2000-07-31 | 2003-09-24 | 三洋电机株式会社 | Electronic camera and focus controlling method |
CN101430477A (en) * | 2007-11-09 | 2009-05-13 | 鸿富锦精密工业(深圳)有限公司 | Method for judging object distance |
Also Published As
Publication number | Publication date |
---|---|
CN102004370A (en) | 2011-04-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3053332B1 (en) | Using a second camera to adjust settings of first camera | |
JP4524717B2 (en) | Image processing apparatus, imaging apparatus, image processing method, and program | |
CN103516988B (en) | Enhanced image processing with lens motion | |
CN106226976B (en) | A kind of dual camera image pickup method, system and terminal | |
US20010035910A1 (en) | Digital camera | |
US20150181096A1 (en) | Control device, control method, and control system | |
CN105847693A (en) | Shooting method and system based on two-camera focusing | |
CN1926851A (en) | Method and apparatus for optimizing capture device settings through depth information | |
CN103685875A (en) | Imaging apparatus | |
US20130113984A1 (en) | Image pickup apparatus, semiconductor integrated circuit and image pickup method | |
KR20120068655A (en) | Method and camera device for capturing iris or subject of good quality with one bandpass filter passing both visible ray and near infra red ray | |
US8294785B2 (en) | Method for adjusting photosensitiveness of digital camera | |
CN102404495B (en) | Method for adjusting shooting parameters of digital camera | |
US8199247B2 (en) | Method for using flash to assist in focal length detection | |
CN1464323A (en) | Process for automatic focusing | |
CN102004370B (en) | Method for detecting focal length by flashlight in auxiliary manner | |
CN112261292B (en) | Image acquisition method, terminal, chip and storage medium | |
RU2389050C1 (en) | Automatic focusing method | |
TWI398716B (en) | Use the flash to assist in detecting focal lengths | |
CN111866369A (en) | Image processing method and device | |
JP4170194B2 (en) | Imaging device | |
JP2013042375A (en) | Image pickup device and distance information acquisition method | |
KR101032174B1 (en) | Auto focus method | |
JP2007139819A (en) | Imaging apparatus | |
JP2005122016A (en) | Automatic focusing camera |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |