Summary of the invention
Based on this, be necessary for the problems referred to above, a kind of picture and the method thereof for testing camera module that can improve the assessment accuracy of overall picture quality are provided.
A kind of picture for testing camera module, described picture is square, described picture comprises multiple size white square identical and spaced apart, white square described in one of them is positioned at the center of described picture, other described white square is evenly arranged around the center of described picture, each white square by black region around.
Wherein in an embodiment, the quantity of described white square is five.
Wherein in an embodiment, other four described white square lay respectively at the center in four regions divided equally by the center of picture.
For testing a method for camera module, comprise the following steps:
Camera module is utilized to take the picture for testing camera module, obtain image, wherein said picture is square, described picture comprises multiple size white square identical and spaced apart, white square described in one of them is positioned at the center of described picture, other described white square is evenly arranged around the center of described picture, each white square by black region around;
Be passed on computer by taking the image information obtained;
Testing software in computer chooses multiple sampling square frame to described image, and the two ends of each sampling square frame are positioned at black region, and the middle part of each sampling square frame is positioned at white square, and therefore, multiple described sampling square frames are the figure of Hei-Bai-Hei;
Go out the mtf value of pixel in described sampling square frame according to the graphics calculations of Hei-Bai-Hei, mtf value more close to 1, then represents that tested camera module performance is better.
Wherein in an embodiment, before utilizing camera module to take picture, also comprise step:
Camera module is placed in the bottom of light box;
The picture being used for testing camera module is placed in the top of light box, and described picture and described camera module are parallel to each other.
Wherein in an embodiment, described sampling square frame is rectangle.
Wherein in an embodiment, the long edge transverse direction of described sampling square frame or longitudinal extension.
Wherein in an embodiment, when utilizing described camera module to take picture, respectively when the anti-hand shake device of camera module is not opened and camera module is not shaken, the anti-hand shake device of camera module do not open and camera module shake when and the anti-hand shake device of camera module open and camera module shake when described picture is taken, obtain three width images, multiple sampling square frame is chosen respectively to every piece image, calculate the mtf value of pixel in each sampling square frame, respectively the anti-hand of camera module shake device is not opened and camera module shake when and the anti-hand shake device of camera module open and camera module shake when the image taken in each sampling square frame in the mtf value of pixel and the anti-hand of camera module shake device do not open and camera module is not shaken when the image taken in corresponding each square frame of sampling pixel mtf value compared with, the anti-hand shake device of camera module is not opened and the anti-hand shake device that the mtf value of the situation of camera module shake is more away from camera module is not opened and the mtf value of pixel in each sampling square frame in the image do not taken under jitter conditions of camera module, then represent the larger on the impact of photographic images quality when jitter conditions does not open anti-hand shake device of camera module, the anti-hand shake device of camera module open and the mtf value of camera module jitter conditions more do not open close to the anti-hand shake device of camera module and camera module is not shaken when the image taken in each sampling square frame in the mtf value of pixel, then represent that the function of the anti-hand shake device of camera module is better.
Wherein in an embodiment, the quantity of described white square is five.
Wherein in an embodiment, other four described white square lay respectively at the center in four regions divided equally by the center of picture.
Above-mentioned picture and method thereof for testing camera module at least has the following advantages:
During test, utilize camera module to take picture, obtain image; Picture comprises multiple size white square identical and spaced apart, and one of them white square is positioned at the center of picture, and other white square is evenly arranged around the center of picture, each white square by black region around; Then multiple sampling square frame is chosen to image, the two ends of each sampling square frame are positioned at black region, the middle part of each sampling square frame is positioned at white square, therefore, multiple sampling square frames are the figure of Hei-Bai-Hei, go out to sample according to the graphics calculations of Hei-Bai-Hei the mtf value of pixel in square frame, and mtf value more close to 1, then represents that tested camera module performance is better.Sampling square frame can be chosen the center of picture, and the sampling square frame chosen is not pure white, therefore may be used for sampling and judges, and then improve the assessment accuracy of overall picture quality.And independent one piece of above-mentioned picture just can choose sampling square frame with horizontal or longitudinal, and obtain Hei-Bai-Hei figure, selectable sample region number of blocks is many, is conducive to precise evaluation overall picture quality.
Embodiment
For enabling above-mentioned purpose of the present invention, feature and advantage become apparent more, are described in detail the specific embodiment of the present invention below in conjunction with accompanying drawing.Set forth a lot of detail in the following description so that fully understand the present invention.But the present invention can be much different from alternate manner described here to implement, those skilled in the art can when without prejudice to doing similar improvement when intension of the present invention, therefore the present invention is by the restriction of following public concrete enforcement.
Term as used herein " vertical ", " level ", "left", "right" and similar statement just for illustrative purposes, do not represent it is unique execution mode.
Unless otherwise defined, all technology used herein and scientific terminology are identical with belonging to the implication that those skilled in the art of the present invention understand usually.The object of term used in the description of the invention herein just in order to describe specific embodiment, is not intended to be restriction the present invention.Term as used herein " and/or " comprise arbitrary and all combinations of one or more relevant Listed Items.
Referring to Fig. 2, is the picture 200 for testing camera module in an execution mode.This picture 200 being used for testing camera module is roughly square.Specific in present embodiment, picture 200 is rectangle.Certainly, in other embodiments, picture 200 also can be square.Picture 200 comprises multiple size white square identical and spaced apart 210, one of them white square 210 is positioned at the center of picture 200, the white square 210 remaining other is evenly arranged around the center of picture 200, each white square 210 by black region 220 around.
Specific in present embodiment, the quantity of white square 210 is five, and one of them white square 210 is positioned at the center of picture 200, and other four white square 210 are arranged around the center of picture 200 equably.Particularly, other four white square 210 lay respectively at the center in four regions divided equally by the center of picture 200.Certainly, in other embodiments, the quantity of white square 210 can also be 7,9 etc.
The above-mentioned picture 200 for testing camera module at least has the following advantages:
During test, camera module is taken picture 200, obtain image, because picture 200 comprises multiple size white square identical and spaced apart 210, one of them white square 210 is positioned at the center of picture 200, other white square 210 is evenly arranged around the center of picture 200, each white square 210 by black region 220 around, so when choosing multiple sampling square frame 230 to image, sampling square frame 230 can be chosen the center of picture 200, and the sampling square frame 230 chosen is not pure white, therefore may be used for sampling to judge, and then improve the assessment accuracy of overall picture quality.And independent one piece of above-mentioned picture just can choose sampling square frame by transverse direction (as shown in Figure 3) or longitudinal direction (as shown in Figure 4), obtain Hei-Bai-Hei figure, selectable sample region number of blocks is many, is conducive to precise evaluation overall picture quality.
Meanwhile, the present invention also provides a kind of method for testing camera module, specifically comprises the following steps:
Step S110, utilizes camera module to take picture, obtains image.Camera module can under specific light conditions pictures taken.Particularly, picture 200 is roughly square.Specific in present embodiment, picture 200 is rectangle.Certainly, in other embodiments, picture 200 also can be square.Picture 200 comprises multiple size white square identical and spaced apart 210, one of them white square 210 is positioned at the center of picture 200, the white square 210 remaining other is evenly arranged around the center of picture 200, each white square 210 by black region 220 around.
Specific in present embodiment, the quantity of white square 210 is five, and one of them white square 210 is positioned at the center of picture 200, and other four white square 210 are arranged around the center of picture 200 equably.Particularly, other four white square 210 lay respectively at the center in four regions divided equally by the center of picture 200.Certainly, in other embodiments, the quantity of white square 210 can also be 7,9 etc.
Certainly, utilizing before camera module takes picture, can also step comprised:
Camera module is placed in the bottom of light box.Such as, can be arranged at by camera module on the desktop bottom light box by special tool, desktop can be horizontal plane.
The picture being used for testing camera module is placed in the top of light box, and picture and camera module are parallel to each other.Ensure that picture and camera module are parallel to each other, be conducive to shooting more clear comprehensive image, be conducive to the accuracy improving assessment.
Step S120, is passed to taking the image information obtained on computer.Such as, by data wire image information can be passed in computer and process.
Step S130, the testing software in computer chooses multiple sampling square frame to image, and the two ends of each sampling square frame are positioned at black region, and the middle part of each sampling square frame is positioned at white square, and therefore, multiple sampling square frames are the figure of Hei-Bai-Hei.The sampling square frame quantity that image is chosen is corresponding with the quantity of white square.Particularly, sampling square frame can be rectangle, and ensure that the two ends of sampling square frame are positioned at black region, middle part is positioned at white square.The long limit of sampling square frame can extend transversely, as shown in Figure 3.Certainly, the long limit of sampling square frame also can extend longitudinally, as shown in Figure 4.
Step S140, the mtf value of the pixel in square frame of going out to sample according to the graphics calculations of Hei-Bai-Hei, mtf value more close to 1, then represents that tested camera module performance is better.All mtf value is calculated to sampling square frames all on image, and judges tested camera module performance according to mtf value: mtf value more close to 1, then represents that tested camera module performance is better.
The above-mentioned method for testing camera module at least has the following advantages:
During test, utilize camera module to take picture, obtain image; Picture comprises multiple size white square identical and spaced apart, and one of them white square is positioned at the center of picture, and other white square is evenly arranged around the center of picture, each white square by black region around; Then multiple sampling square frame is chosen to image, the two ends of each sampling square frame are positioned at black region, the middle part of each sampling square frame is positioned at white square, therefore, multiple sampling square frames are the figure of Hei-Bai-Hei, go out to sample according to the graphics calculations of Hei-Bai-Hei the mtf value of pixel in square frame, and mtf value more close to 1, then represents that tested camera module performance is better.Sampling square frame can be chosen the center of picture, and the sampling square frame chosen is not pure white, therefore may be used for sampling and judges, and then improve the assessment accuracy of overall picture quality.And independent one piece of above-mentioned picture just can choose sampling square frame with horizontal or longitudinal, and obtain Hei-Bai-Hei figure, selectable sample region number of blocks is many, is conducive to precise evaluation overall picture quality.
Certainly, whether the anti-hand shake function adopting above-mentioned method of testing to can also be used to test camera module meets the requirements, and concrete steps are as follows:
When picture being taken with camera module, respectively when the anti-hand shake device of camera module is not opened and camera module is not shaken the anti-hand shake device of (the first situation of called after), camera module do not open and camera module shake when (called after the second situation) and the anti-hand shake device of camera module open and camera module shake when (the third situation of called after) described picture is taken.
Be passed to taking the image information obtained on computer.Such as, by data wire image information can be passed in computer and process.
Testing software in computer chooses multiple sampling square frame respectively to every piece image.The two ends of each sampling square frame are positioned at black region, and the middle part of each sampling square frame is positioned at white square, and therefore, multiple described sampling square frames are the figure of Hei-Bai-Hei.
Calculate the mtf value of pixel in each sampling square frame, and the mtf value of pixel is compared with the mtf value of pixel in each square frame of sampling corresponding in the image taken in the first situation in square frame of each in the image taken in the second situation and in the third situation being sampled respectively, the mtf value of pixel in each sampling square frame in the image taken under the mtf value of pixel is more away from the first situation in each sampling square frame in the image taken in the second situation, then represent the larger on the impact of photographic images quality when jitter conditions does not open anti-hand shake device of camera module.In each sampling square frame in the image taken in the third situation, the mtf value of pixel is more close to the mtf value of pixel in each the sampling square frame in the image taken in the first situation, then represent that the function of the anti-hand shake device of camera module is better.
The above embodiment only have expressed several execution mode of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.