CN101685240A - Method for judging focusing quality of image extracting device - Google Patents
Method for judging focusing quality of image extracting device Download PDFInfo
- Publication number
- CN101685240A CN101685240A CN200810161096A CN200810161096A CN101685240A CN 101685240 A CN101685240 A CN 101685240A CN 200810161096 A CN200810161096 A CN 200810161096A CN 200810161096 A CN200810161096 A CN 200810161096A CN 101685240 A CN101685240 A CN 101685240A
- Authority
- CN
- China
- Prior art keywords
- image
- target area
- standard
- testing
- acquiring apparatus
- 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
Links
Images
Landscapes
- Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
- Automatic Focus Adjustment (AREA)
Abstract
The invention relates to a method for judging the focusing quality of an image extracting device, which comprises the following steps: shooting a comparison object to obtain a standard image with a standard target area image; calculating the quantity of pixel points of the standard target area image; shooting the comparison object by an image extracting device to be tested to obtain an image to betested, which is provided with a target area image to be tested; calculating the quantity of the pixel points of the target area image to be tested and judging whether the image extracting device tobe tested is correctly focused or not by comparing the quantity of the pixel points of the standard target area image and the target area image to be tested. Accordingly, the method not only overcomesthe defects of the prior art, but also has the advantage of cost saving.
Description
Technical field
The present invention relates to a kind of method of judging image acquiring apparatus focusing quality, relate in particular to a kind of method of judging the focusing quality by the pixel quantity of the image that is taken.
Background technology
In the modern times that science and technology is maked rapid progress, electronic equipment miscellaneous has been developed to certain degree, presses close to electronic product suitable especially universalness, for example computing machine, mobile phone or the image acquiring apparatus etc. of daily life.
Generally speaking, image acquiring apparatus no matter manual focus or automatically focusing all must judge whether image acquiring apparatus focuses correctly with naked eyes or ad hoc approach, with image acquiring apparatus is that a digital camera is an example, general user can utilize the LCD screen of digital camera to show captured image after shooting finishes, and allows the user judge whether that focusing is correct by naked eyes.Yet, if the factory that produces image acquiring apparatus must test to guarantee the quality of image acquiring apparatus image acquiring apparatus after the image acquiring apparatus manufacturing is finished.Since plant produced the quite huge image acquiring apparatus of quantity, judge whether one by one that with naked eyes focusing is correctly not only consuming time, and after having passed through long naked eyes checking, naked eyes are easy to become not objective because of tired, therefore need to use ad hoc approach to verify the focusing accuracy of a large amount of image acquiring apparatus.
Next illustrate that whether correctly known technology carries out the image acquiring apparatus verification method of focusing behind photographic images.After the testing image extraction element is to image taking, see through that the histogram method of average (HistogramEqualization) is carried out statistical study to the brightness of each pixel of this image and with statistical result showed in Fig. 1.See also Fig. 1, its be the method for known judgement image acquiring apparatus focusing quality in the curve synoptic diagram of an ideal situation, wherein the transverse axis of Fig. 1 is the brightness of pixel, and Z-axis is the quantity of pixel.The brightness of each pixel that shows this image among Fig. 1 by dark to bright arrangement, the low-light level of the left remarked pixel point of transverse axis, promptly darker part, otherwise, the high brightness of the right-hand remarked pixel point of transverse axis, promptly brighter part.Among Fig. 1, in the low-light level part of this image, has maximum quantity B
Max, and to have maximum pixel quantity (be B
Max) pixel brightness be I
B, and in the hi-lite of this image, have maximum quantity W
Max, and to have maximum pixel quantity (be W
Max) pixel brightness be I
W
Known technology can be judged the focusing situation of image acquiring apparatus according to those pixel brightness, also promptly utilizes a calculating formula to obtain a focusing coefficient C
F, its calculating formula is:
C
F=(I
W-I
B)/(I
W+I
B)
And known technology is preset with standard focusing coefficient C
S, known technology utilizes standard focusing coefficient C
SWith focusing coefficient C
FMagnitude relationship judge whether the testing image extraction element focuses correctly, wherein as focusing coefficient C
FMore than or equal to standard focusing coefficient C
SThe time, judge that the focusing of testing image extraction element is correct; And as focusing coefficient C
FLess than standard focusing coefficient C
SThe time, then judge testing image extraction element focusing error, the quality of also promptly focusing is low.
The method of above-mentioned known technology is carried out by program, can be subjected to environment or other factor affecting in the performance of reality.See also Fig. 2, it is that the method for known judgement image acquiring apparatus focusing quality is in the curve synoptic diagram of actual conditions.Among Fig. 2, in the hi-lite of image, has maximum pixel quantity W
Max, (be W and have maximum pixel quantity
Max) pixel brightness be I
WPart as for low-light level can be found out that low-light level partly has two crests by Fig. 2, and its crest value is B
Max, remove above-mentioned pixel brightness I
BOutside, also have another pixel brightness I
B' picture point quantity also be B
MaxUnder situation like this, program does not know which pixel brightness this gets and judge.In addition, because the light of external environment impacts the pixel brightness of image, make pixel brightness I among this image
BPicture point quantity change to B
Max+ 1 or B
Max-1, make program in brightness I
BPixel brightness become B
Max-1 o'clock capture vegetarian refreshments brightness I
B' be inserted in calculating formula, and work as in brightness I
BPixel brightness become B
Max+ 1 o'clock capture vegetarian refreshments brightness I
BBe inserted in calculating formula, therefore, via the focusing coefficient C that calculating formula obtained
FInaccurate, make its judgment standard generation error and unreliable.
Summary of the invention
Purpose of the present invention is providing a kind of method that can not judge image acquiring apparatus focusing quality because of the light influence.
In a preferred embodiment, the invention provides a kind of method of judging image acquiring apparatus focusing quality, in order to judge the focusing quality of a testing image extraction element, comprising:
The contrast object is provided, and wherein this contrast object comprises the target area;
Use image acquiring apparatus to take this contrast object and obtain a standard picture, wherein standard picture comprises a standard target area image;
The pixel quantity P of basis of calculation target area image
1
Use the testing image extraction element to take and contrast object and obtain a testing image, wherein the resolution of testing image is identical with the resolution of standard picture, and testing image comprises a target area image to be measured;
Calculate the pixel quantity P of target area image to be measured
2And
The pixel quantity P of standard of comparison target area image
1Pixel quantity P with target area image to be measured
2Wherein
Work as P
2More than or equal to P
1The time, judge that the focusing of testing image extraction element is correct; And
Work as P
2Less than P
1The time, judge testing image extraction element focusing error.
In a preferred embodiment, the resolution of standard picture and testing image is 800 * 600.
In a preferred embodiment, image acquiring apparatus and testing image extraction element are a camera, a digital camera or a video camera.
In a preferred embodiment, the contrast object is an image, paper or the object with image, and this target area of contrast object is an image.
In a preferred embodiment, the present invention also provides a kind of method of judging image acquiring apparatus focusing quality, in order to judge the focusing quality of a testing image extraction element, comprising:
One contrast object is provided, wherein contrasts object and comprise a target area;
Use many image acquiring apparatus D
1-D
NTake the contrast object respectively and obtain many standard pictures I
1-I
N, each standard picture I wherein
1-I
NComprise a standard target area image T
1-T
N
Calculate each standard target area image T
1-T
NPixel quantity P
1-P
N
Standard target area image T such as calculating
1-T
NPixel quantity P
1-P
NArithmetic mean P '
1
Use the testing image extraction element to take and contrast object and obtain a testing image, wherein the resolution of testing image is identical with the resolution of standard picture, and testing image comprises a target image to be measured;
Calculate the pixel quantity P of target area image to be measured
2And
Standard of comparison target area image T
1-T
NPixel quantity average value P '
1Pixel quantity P with target area image to be measured
2Wherein
Work as P
2More than or equal to P '
1The time, judge that the focusing of testing image extraction element is correct; And
Work as P
2Less than P '
1The time, judge testing image extraction element focusing error.
In a preferred embodiment, the resolution of standard picture and testing image is 800 * 600.
In a preferred embodiment, image acquiring apparatus and testing image extraction element are a camera, a digital camera or a video camera.
In a preferred embodiment, the contrast object is an image, paper or the object with image, and this target area of contrast object is an image.
Therefore, method of the present invention is not only improved the shortcoming of known technology, also has cost-effective advantage.
Description of drawings
Fig. 1 is that the method for known judgement image acquiring apparatus focusing quality is in the curve synoptic diagram of an ideal situation.
Fig. 2 is that the method for known judgement image acquiring apparatus focusing quality is in the curve synoptic diagram of actual conditions.
Fig. 3 (a), Fig. 3 (b) are that the present invention uses image acquiring apparatus to extract the synoptic diagram of image.
Fig. 4 is a preferred embodiment synoptic diagram of target image of the present invention and testing image.
Wherein, description of reference numerals is as follows:
B
Max, B
Max-1, W
MaxPixel quantity
D
1, D
N, D
tImage acquiring apparatus
I
1-I
NStandard picture
I
tTesting image
I
PB, I
PB', I
PWPixel brightness
T
1-T
NThe standard target area image
T
tTarget area image to be measured
P
1, P
2Pixel quantity
Embodiment
The present invention must obtain a standard picture earlier before beginning test pattern extraction element, utilize this standard picture as judging the image acquiring apparatus right judgement benchmark of whether focusing.
Illustrate that at first image acquiring apparatus obtains the method for standard picture.See also Fig. 3 (a), Fig. 3 (b), it extracts the synoptic diagram of image for the present invention uses image acquiring apparatus in a preferred embodiment.Among Fig. 3 (a), use an image acquiring apparatus D
1One contrast object 30 is taken, wherein contrasted object 30 and comprise a target area 31.Contrast object 30 can be, for example a file or photo, and target area 31 then is the image on the paper.Image in Fig. 3 (a) is a square.Certainly, the target area is not to be defined as square, and can be Any shape.Image acquiring apparatus D
1To object 30 focus take after, can obtain a standard picture I
1(seeing also Fig. 4), wherein standard picture I
1Resolution be 800 * 600.And standard picture I
1Comprise a standard target area image T
1, also be the image of target area 31.Next basis of calculation target area image T
1Pixel quantity P
1With as a reference frame.
Next begin to carry out the part of detecting of testing image extraction element, see also Fig. 3 (b), use testing image extraction element D
tIn with image acquiring apparatus D
1Same position, same angle are taken same contrast object 30, obtain a testing image I
tAs shown in Figure 4, testing image I wherein
tResolution also be 800 * 600, and testing image I
tComprise a target area image T to be measured
tTesting image extraction element D
tAfter shooting is finished, begin testing image extraction element D
tThe test of the quality of focusing also is about to standard target area image T
1Pixel quantity P
1With target area image T to be measured
tPixel quantity P
2Compare, work as P
2More than or equal to P
1The time, expression testing image I
tFor clear, judge testing image extraction element D
1Focusing is correct; And work as P
2Less than P
1The time, then represent testing image I
tUnintelligible, judge testing image extraction element D
1The focusing error.As seen from Figure 4, target area image T to be measured
tPixel quantity P
2Less than P
1So, testing image I as can be known
tUnintelligible, i.e. testing image extraction element D
1The focusing error.
Principle of the present invention is comparatively sharp keen according to the edge of picture rich in detail, so the shared area of picture rich in detail is bigger, also is that its pixel quantity is more.Otherwise if not fogging when clear, its edge of image can be swooned and be held and not sharp keen, so the pixel quantity of this image is low slightly.What need pay special attention to is that the resolution of testing image and standard picture must be identical.The present invention promptly is used as judging the criterion of testing image extraction element focusing quality height with above-mentioned principle.
And among the present invention as the standard target area image T of judgment standard
1Pixel quantity P
1Acquisition mode have quite multiplely, be with an image acquiring apparatus D in the above preferred embodiment
1Take contrast object 30 and obtain standard picture I with preferable focusing quality
1, and with standard picture I
1In standard target area image T
1Pixel quantity P
1As its judgment standard value.
In addition, the present invention also can utilize many image acquiring apparatus D
1-D
NTake contrast object 30 respectively and obtain many standard pictures I
1-I
N, each this standard picture I wherein
1-I
NComprise a standard target area image T
1-T
N, basis of calculation target area image T next
1-T
NPixel quantity, and those pixel quantity are carried out an arithmetic mean count computing, and with this arithmetic mean P '
1As judging the testing image extraction element correct foundation of whether focusing, wherein about remaining image extraction element D
2-D
NBut photographing section reference picture extraction element D
1Part and repeat no more.Except that the arithmetic mean computing, also can carry out measure of central tendency compute modes such as mode computing or median computing and obtain to judge reference value, certainly, its judgement reference value can be adjusted according to different demands, in detail, if obtain to judge that with the measure of central tendency computing reference value can obtain to have big allowable error value, and if be standard picture with the image of preferable sharpness, the pixel quantity of getting standard target area image wherein then can obtain higher focusing quality threshold, and this type of high focusing quality is required by professional photographer or photography player usually.
From the above, the judgement image acquiring apparatus focusing quality method that the present invention discloses does not need to judge the focusing quality according to the brightness of image, but judge whether that with the pixel quantity of image target area focusing is correct, therefore can avoid influenced by external environment and the phenomenon that reduces its judging nicety rate.In addition, the present invention also can utilize conventional detection to detect target area image to be measured, do not need as known technology, to analyze whole image to analyze at the part of target area image to be measured, and can shorten the execution time of judging the focusing quality, for producing line, shorten the test duration and can save appreciable cost, therefore, method of the present invention is not only improved the shortcoming of known technology, also has cost-effective advantage.
The above is the preferred embodiments of the present invention only, is not in order to limiting claim of the present invention, and therefore all other do not break away from the equivalence of being finished under the disclosed spirit and change or revise, and all should be contained in the claim of the present invention.
Claims (8)
1, a kind of method of judging image acquiring apparatus focusing quality in order to judge the focusing quality of a testing image extraction element, comprising:
One contrast object is provided, and wherein this contrast object comprises a target area;
Use an image acquiring apparatus to take this contrast object and obtain a standard picture, wherein this standard picture comprises a standard target area image;
Calculate the pixel quantity P of this standard target area image
1
Use this testing image extraction element to take this contrast object and obtain a testing image, wherein the resolution of this testing image is identical with the resolution of this standard picture, and this testing image comprises a target area image to be measured;
Calculate the pixel quantity P of this target area image to be measured
2And
The pixel quantity P of this standard target area image relatively
1Pixel quantity P with this target area image to be measured
2Wherein
Work as P
2More than or equal to P
1The time, judge that this testing image extraction element focusing is correct; And
Work as P
2Less than P
1The time, judge this testing image extraction element focusing error.
2, the method for judgement image acquiring apparatus focusing quality as claimed in claim 1, wherein the resolution of this standard picture and this testing image is to be 800 * 600.
3, the method for judgement image acquiring apparatus focusing quality as claimed in claim 1, wherein this image acquiring apparatus and this testing image extraction element are a camera, a digital camera or a video camera.
4, the method for judgement image acquiring apparatus focusing quality as claimed in claim 1, wherein this contrast object is an image, paper or the object with image, and this target area of this contrast object is an image.
5, a kind of method of judging image acquiring apparatus focusing quality in order to judge the focusing quality of a testing image extraction element, comprising:
One contrast object is provided, and wherein this contrast object comprises a target area;
Use many figure x as extraction element D
1-D
NTake this contrast object respectively and obtain many standard pictures I
1-I
N, each this standard picture I wherein
1-I
NComprise a standard target area image T
1-T
N
Calculate each this standard target area image T
1-T
NPixel quantity P
1-P
N
Calculate these standard target area images T
1-T
NPixel quantity P
1-P
NArithmetic mean P '
1
Use this testing image extraction element to take this contrast object and obtain a testing image, wherein the resolution of this testing image is identical with the resolution of this standard picture, and this testing image comprises a target image to be measured;
Calculate the pixel quantity P of this target area image to be measured
2And
This standard target area image T relatively
1-T
NThis pixel quantity average value P '
1Pixel quantity P with this target area image to be measured
2Wherein
Work as P
2More than or equal to P '
1The time, judge that this testing image extraction element focusing is correct; And
Work as P
2Less than P '
1The time, judge this testing image extraction element focusing error.
6, the method for judgement image acquiring apparatus focusing quality as claimed in claim 5, wherein the resolution of this standard picture and this testing image is 800 * 600.
7, the method for judgement image acquiring apparatus focusing quality as claimed in claim 5, wherein this image acquiring apparatus and this testing image extraction element are a camera, a digital camera or a video camera.
8, the method for judgement image acquiring apparatus focusing quality as claimed in claim 5, wherein this contrast object is an image, paper or the object with image, and this target area of this contrast object is an image.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008101610964A CN101685240B (en) | 2008-09-26 | 2008-09-26 | Method for judging focusing quality of image extracting device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008101610964A CN101685240B (en) | 2008-09-26 | 2008-09-26 | Method for judging focusing quality of image extracting device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101685240A true CN101685240A (en) | 2010-03-31 |
CN101685240B CN101685240B (en) | 2011-07-20 |
Family
ID=42048460
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2008101610964A Expired - Fee Related CN101685240B (en) | 2008-09-26 | 2008-09-26 | Method for judging focusing quality of image extracting device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101685240B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106231200A (en) * | 2016-08-29 | 2016-12-14 | 广东欧珀移动通信有限公司 | A kind of photographic method and device |
CN108230312A (en) * | 2018-01-03 | 2018-06-29 | 努比亚技术有限公司 | A kind of image analysis method, equipment and computer readable storage medium |
CN109274897A (en) * | 2018-09-28 | 2019-01-25 | 努比亚技术有限公司 | Photographic method, mobile terminal and computer readable storage medium |
CN109862346A (en) * | 2019-01-11 | 2019-06-07 | 歌尔股份有限公司 | Test method of focusing and equipment |
CN110858872A (en) * | 2018-08-23 | 2020-03-03 | 浙江宇视科技有限公司 | Optical axis offset compensation method and device |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002267923A (en) * | 2001-03-09 | 2002-09-18 | Olympus Optical Co Ltd | Focusing method of photographic lens |
CN100397243C (en) * | 2001-10-31 | 2008-06-25 | 金宝电子工业股份有限公司 | Magnification correcting method for camera |
CN1661469A (en) * | 2004-02-28 | 2005-08-31 | 鸿富锦精密工业(深圳)有限公司 | Method of tuning focus of digital camera lens module |
CN100542306C (en) * | 2005-05-31 | 2009-09-16 | 华为技术有限公司 | Focusing performance of pick-up head detection system and method |
CN101034240A (en) * | 2006-03-10 | 2007-09-12 | 鸿富锦精密工业(深圳)有限公司 | Automatic focusing method used for testing camera module group |
CN100561335C (en) * | 2007-10-31 | 2009-11-18 | 无锡凯尔科技有限公司 | Proving installation and method of testing thereof with mobile phone camera module of auto-focus function |
-
2008
- 2008-09-26 CN CN2008101610964A patent/CN101685240B/en not_active Expired - Fee Related
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106231200A (en) * | 2016-08-29 | 2016-12-14 | 广东欧珀移动通信有限公司 | A kind of photographic method and device |
CN108230312A (en) * | 2018-01-03 | 2018-06-29 | 努比亚技术有限公司 | A kind of image analysis method, equipment and computer readable storage medium |
CN110858872A (en) * | 2018-08-23 | 2020-03-03 | 浙江宇视科技有限公司 | Optical axis offset compensation method and device |
CN109274897A (en) * | 2018-09-28 | 2019-01-25 | 努比亚技术有限公司 | Photographic method, mobile terminal and computer readable storage medium |
CN109862346A (en) * | 2019-01-11 | 2019-06-07 | 歌尔股份有限公司 | Test method of focusing and equipment |
Also Published As
Publication number | Publication date |
---|---|
CN101685240B (en) | 2011-07-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8233078B2 (en) | Auto focus speed enhancement using object recognition and resolution | |
US8189942B2 (en) | Method for discriminating focus quality of image pickup device | |
JP5589548B2 (en) | Imaging apparatus, image processing method, and program storage medium | |
WO2017113048A1 (en) | Image fusion method and apparatus, and terminal device | |
TWI413022B (en) | Image evaluation method, image capturing method and digital camera thereof | |
CN102870135B (en) | For the method and apparatus of shape extracting, dimension measuring device and distance-measuring device | |
CN103591894A (en) | Method and device for measuring length of object through camera | |
EP3248374A1 (en) | Method and apparatus for multiple technology depth map acquisition and fusion | |
CN101848327B (en) | Image capturing device and image processing method | |
CN101452199B (en) | Modulation transfer function value measurement method | |
CN101685240B (en) | Method for judging focusing quality of image extracting device | |
DE04702069T1 (en) | ELECTRONIC DEVICE, METHOD AND RECORD CONTROL AND PROCESSOR PROGRAM | |
US20110176033A1 (en) | Camera and method for capturing and processing photos in camera | |
JP5538573B2 (en) | Composition-based exposure measurement method and apparatus for automatic image correction | |
CN106067177A (en) | HDR scene method for detecting and device | |
CN110769238B (en) | Projection environment brightness detection method and device, electronic equipment and medium | |
CN105611140A (en) | Photographing control method, photographing control device and terminal | |
CN112288732A (en) | Dispensing detection method, device, equipment and system | |
CN108055532A (en) | Automate the method and apparatus of matching test card | |
US20100182495A1 (en) | Focusing measurement device, focusing measurement method, and program | |
CN105872399A (en) | Backlighting detection method and system | |
CN111970500A (en) | Automatic distance step calibration method and system for projection equipment | |
US8547439B2 (en) | Testing an optical characteristic of a camera component | |
CN110376218B (en) | Method and device for detecting residual image of display panel | |
Guthier et al. | A real-time system for capturing hdr videos |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20110720 Termination date: 20180926 |
|
CF01 | Termination of patent right due to non-payment of annual fee |