CN107920246A - The gradient test method and device of camera module - Google Patents
The gradient test method and device of camera module Download PDFInfo
- Publication number
- CN107920246A CN107920246A CN201711464322.1A CN201711464322A CN107920246A CN 107920246 A CN107920246 A CN 107920246A CN 201711464322 A CN201711464322 A CN 201711464322A CN 107920246 A CN107920246 A CN 107920246A
- Authority
- CN
- China
- Prior art keywords
- image
- target area
- contrast
- camera module
- maximum
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
- H04N17/002—Diagnosis, testing or measuring for television systems or their details for television cameras
Landscapes
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- General Health & Medical Sciences (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
- Automatic Focus Adjustment (AREA)
Abstract
The embodiment of the present application discloses the gradient test method and device of a kind of camera module, wherein, gradient test method includes:Obtain the image for the default quantity that the camera module shooting test pattern obtains;Target area is chosen from every image;According to the contrast of the target area of every image of brightness calculation of presetted pixel in the target area of every image;The defocusing curve of each target area is drawn according to the contrast of the target area of every image;The lens location for correspondence image of each target area being found out from the defocusing curve of each target area when there is maximum-contrast, and when there is maximum-contrast according to each target area correspondence image lens location, determine the gradient of the camera module.The test scene of the method application of the embodiment of the present invention is than wide and can improve measuring accuracy and stability.
Description
Technical field
This application involves camera module testing field, and in particular to a kind of gradient test method of camera module and
Device.
Background technology
During camera module produces, by manufacture, mounting technology or technique etc. are influenced, mirror in camera module
Not parallel situation occurs between head and image sensor, i.e., inclines between camera lens and image sensor there are a degree of
Tiltedly, such camera module is when work, it may appear that defocus phenomenon, so that cause the image of generation relatively fuzzyyer, into
As second-rate.Therefore, it is necessary to be detected to the inclined degree between camera lens and image sensor, to ensure before dispatching from the factory
Product quality.
Existing detection method is mainly by shooting specific test pattern (bevel edge test pattern), to shooting obtained figure
As carrying out bevel edge discriminance analysis, the spatial frequency response (Spatial Frequency Response, SFR) of every bevel edge is obtained
Value, the inclined degree between camera lens and image sensor is determined according to obtained SFR values.This method can only use specific survey
Attempt card, application scenarios are relatively more limited, and are related to bevel edge discriminance analysis, recognition failures or analysis mistake, test essence easily occur
Spend that low, stability is poor.
The content of the invention
The embodiment of the present application provides the gradient test method and device of a kind of camera module, the test scene of application
Than wide and measuring accuracy and stability can be improved.
The gradient test method of camera module provided by the embodiments of the present application, including:
Obtain the image for the default quantity that the camera module shooting test pattern obtains;
Target area is chosen from every image;
According to the contrast of the target area of every image of brightness calculation of presetted pixel in the target area of every image;
The defocusing curve of each target area is drawn according to the contrast of the target area of every image;
Each target area is found out from the defocusing curve of each target area correspondence image when there is maximum-contrast
Lens location, and when there is maximum-contrast according to each target area correspondence image lens location, determine the camera
The gradient of module.
The device for testing inclination of camera module provided by the embodiments of the present application, including:
Acquiring unit, the image of the default quantity obtained for obtaining the camera module shooting test pattern;
Unit is chosen, for choosing target area from every image;
Computing unit, the target for every image of brightness calculation of presetted pixel in the target area according to every image
The contrast in region;
Drawing unit, the defocus that the contrast for the target area according to every image draws each target area are bent
Line;
Determination unit, has maximum-contrast for finding out each target area from the defocusing curve of each target area
When correspondence image lens location, and when there is maximum-contrast according to each target area correspondence image lens location, really
The gradient of the fixed camera module.
In the embodiment of the present application, presetted pixel is bright in the target area for the image that can be shot according to camera module
Degree, calculates the contrast of the target area of image, defocusing curve is drawn according to the contrast of the target area of image, according to defocus
Curve determines the gradient of camera module;In whole test process, presetted pixel brightness in the target area of image is pertained only to
Calculating, therefore be not limited to use bevel edge test pattern, most of test patterns can meet demand, test scene compares
Extensively;Further, since without analysis is identified to the bevel edge in image, survey can be improved to avoid error or test crash
Try precision and stability.
Brief description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for
For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is the application scenario diagram of the gradient test method of camera module provided by the embodiments of the present application.
Fig. 2 is the flow diagram of the gradient test method of camera module provided by the embodiments of the present application.
Fig. 3 is image acquiring method schematic diagram provided by the embodiments of the present application.
Fig. 4 is another flow diagram of the gradient test method of camera module provided by the embodiments of the present application.
Fig. 5 is the choosing method schematic diagram of target area provided by the embodiments of the present application.
Fig. 6 is the pixel distribution schematic diagram of target area provided by the embodiments of the present application.
Fig. 7 is contrast provided by the embodiments of the present application and lens position data schematic diagram.
Fig. 8 is defocusing curve schematic diagram provided by the embodiments of the present application.
Fig. 9 is the structure diagram of the device for testing inclination of camera module provided by the embodiments of the present application.
Figure 10 is another structure diagram of the device for testing inclination of camera module provided by the embodiments of the present application.
Figure 11 is the structure diagram of the test equipment of camera module provided by the embodiments of the present application.
Embodiment
Schema is refer to, wherein identical element numbers represent identical component, the principle of the application is to implement one
Illustrated in appropriate computing environment.The following description is based on illustrated the application specific embodiment, it should not be by
It is considered as limitation the application other specific embodiments not detailed herein.
In the following description, the specific embodiment of the application is by with reference to as the step performed by one or multi-section computer
And symbol illustrates, unless otherwise stating clearly.Therefore, these steps and operation will have to mention for several times is performed by computer, this paper institutes
The computer of finger, which performs, to be included by representing with the computer processing unit of the electronic signal of the data in a structuring pattern
Operation.This operation is changed at the data or the position being maintained in the memory system of the computer, its is reconfigurable
Or in addition change the running of the computer in a manner of known to the tester of this area.The data structure that the data are maintained
For the provider location of the memory, it has the particular characteristics as defined in the data format.But the application principle is with above-mentioned text
Word illustrates that it is not represented as a kind of limitation, this area tester will appreciate that plurality of step as described below and behaviour
Also may be implemented among hardware.
Term as used herein " module " can regard the software object to be performed in the arithmetic system as.It is as described herein
Different components, module, engine and service can be regarded as the objective for implementation in the arithmetic system.And device as described herein and side
Method can be implemented in a manner of software, can also be implemented certainly on hardware, within the application protection domain.
Term " first ", " second " and " the 3rd " in the application etc. is to be used to distinguish different objects, rather than for retouching
State particular order.In addition, term " comprising " and " having " and their any deformations, it is intended that cover non-exclusive include.
Such as contain the step of process, method, system, product or the equipment of series of steps or module is not limited to list or
Module, but some embodiments further include the step of not listing or module, or some embodiments further include for these processes,
Method, product or equipment intrinsic other steps or module.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments
It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical
Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and
Implicitly understand, embodiment described herein can be combined with other embodiments.
The embodiment of the present application provides a kind of gradient test method of camera module, and the executive agent of the test method can
To be the device for testing inclination of camera module provided by the embodiments of the present application, or it is integrated with the device for testing inclination
Test equipment.
One concrete application scene of the gradient test method of the embodiment of the present application can be as shown in Figure 1, camera module
Including camera lens and image sensor, certain camera module can also include miscellaneous part, such as:Motor, colour filter, substrate
Deng being not especially limited herein.Wherein, camera lens is used to assemble light, the projects of shooting to image sensor;Image passes
Sensor is used to the image (optical signal) of camera lens projection being converted to electric signal, and motor is used to drive camera lens to move so that camera lens is thrown
Penetrate clearly image to image sensor.
As shown in Fig. 1 left sides, when camera lens is parallel with image sensor relative position, the focus of different visual fields is in same water
In plane, imaging clearly;As shown on the right of Fig. 1, when camera lens and image sensor relative position tilt, may result in entirely into
Image planes are not to be in focus state at the same time, i.e., some visual fields can be in state out of focus, wherein, the edge most serious out of focus of image,
Image border is most fuzzy.Therefore, it is necessary to the inclined degree between camera module inner lens and image sensor before dispatching from the factory
It is detected.
The embodiment of the present application, that is, the method for providing the inclined degree between testing lens and image sensor, specific
In implementation process, camera module shooting test pattern to be detected can be utilized to obtain the image of default quantity, from every figure
Target area is chosen as in, then according to the target of every image of brightness calculation of presetted pixel in the target area of every image
The contrast in region, the defocusing curve of each target area is drawn according to the contrast of the target area of every image, from each
The lens location for correspondence image of each target area being found out in the defocusing curve of target area when there is maximum-contrast, and according to
The lens location of correspondence image when each target area has maximum-contrast, determines the gradient of the camera module.It is whole
In a test process, the calculating of presetted pixel brightness in the target area of image is pertained only to, therefore is not limited to survey using bevel edge
Attempt card, most of test patterns can meet demand, test scene is than wide;Further, since without in image
Analysis is identified in bevel edge, can improve measuring accuracy and stability to avoid error.
The embodiment of the present application will be provided from the angle of the device for testing inclination of camera module, description the embodiment of the present application
Camera module gradient test method, which includes:Obtain the camera module shooting test
The image for the default quantity that graph card obtains;Target area is chosen from every image;According to pre- in the target area of every image
If the contrast of the target area of every image of the brightness calculation of pixel;Drawn according to the contrast of the target area of every image
The defocusing curve of each target area;Each target area is found out from the defocusing curve of each target area has maximum contrast
The lens location of correspondence image when spending, and when there is maximum-contrast according to each target area correspondence image lens location,
Determine the gradient of the camera module.
Referring to Fig. 2, Fig. 2 is the flow signal of the gradient test method of camera module provided by the embodiments of the present application
Figure.The idiographic flow of the gradient test method of camera module provided by the embodiments of the present application can be as follows:
Step S201, the image for the default quantity that the camera module shooting test pattern obtains is obtained.
In the specific implementation, when needing to test the inclined degree between camera module inner lens and image sensor, can
To control the camera lens in motor driving camera module to be moved in the range of default step-length, and the test pattern is shot, obtained
The image of default quantity.
Such as shown in Fig. 3, can be in the range of the step-length of P-R to P+R, moving lens often moves a position, and control is taken the photograph
As head mould group once shoots test pattern, obtain shooting every time and obtain image, that is, obtain the image of present count amount.
Step S202, target area is chosen from every image.
In the specific implementation, after the image of default quantity is obtained, target area, target can be chosen from every image
The quantity that region is chosen can be one or more.Since the inclination of camera module is the most serious on image border influence, because
This, can choose some regions as target area from the edge of image.Such as can be from the upper and lower, left and right position of image
Four regions are chosen as target area, or four regions are chosen from the upper left of image, upper right, lower-left, this four angles of bottom right
Choose two regions as target area as target area, or from the top and bottom of image, specific choosing method this
Place is not specifically limited.In addition, be the accuracy for ensureing test result, selected region can be close to image border, but not
Directly on image border a certain distance can be left between selected region and image border.In addition, actual should
In, region selection can not also be carried out, and using all areas of whole image as target area.
Step S203, according to the target area of every image of brightness calculation of presetted pixel in the target area of every image
Contrast.
The color of image is superimposed by the change to red (Red), green (Green), blue (Blue) three Color Channels
Arrive, RGB is the pixel color for representing three passages of red, green, blue, therefore, can be by the R passages pixel or G in image
Passage pixel or channel B pixel are as presetted pixel.Specifically, quantitative proportion maximum can be chosen from these three pixels
Pixel, as presetted pixel, such as choose G passage pixels as presetted pixel.
After the target area of every image is obtained, the contrast of each target area can be calculated.It is specific to calculate
Method can be:The brightness of the diagonal adjacent pixel of presetted pixel and presetted pixel in target area is obtained, calculates target area
The quadratic sum of interior presetted pixel and the luminance difference of the diagonal adjacent pixel of presetted pixel (the brightness value of pixel is first subtracted each other,
Square operation is done to subtracting each other the value obtained afterwards, all values that square operation obtains will be finally done and adds up), it will be calculated
Contrast of the value as corresponding target area.In this way, the contrast of each target area of every image can be obtained
Degree.
Step S204, the defocusing curve of each target area is drawn according to the contrast of the target area of every image.
Specifically, when can be with every image taking the camera lens position (between camera lens and image sensor away from
From) be transverse axis data, using the contrast of each target area of every image as longitudinal axis data, draw each target area from
Burnt curve.Such as:When there are four upper left, upper right, lower-left, bottom right regions in target area, four defocusing curves will be drawn, each
Defocusing curve is corresponding with a target area.
Step S205, each target area is found out from the defocusing curve of each target area when there is maximum-contrast pair
The lens location of correspondence image, determines institute when answering the lens location of image, and having maximum-contrast according to each target area
State the gradient of camera module.
Specifically, it is corresponding to find out top left region tool respectively from the defocusing curve of upper left, upper right, lower-left and lower right area
The lens location of correspondence image when the lens location of correspondence image, right regions have maximum-contrast when having maximum-contrast,
The lens location of correspondence image when lower left region has maximum-contrast, and corresponding diagram when lower right area has maximum-contrast
The lens location of picture, is obtained four lens locations, calculates position maximum and position minimum value in four lens locations
Between difference, the gradient using the difference being calculated as the camera module.
After the gradient of camera module is obtained, it can judge whether camera module closes according to obtained gradient
Lattice.Such as, it can be determined that whether obtained gradient is within acceptable inclination range, if in, then it is assumed that camera
Module be it is qualified, it is on the contrary, then it is assumed that camera module is unqualified.In practical application, can accordingly testing result manufactured,
The improvement or optimization of assembly technology.
In the present embodiment, the brightness of presetted pixel in the target area for the image that can be shot according to camera module,
The contrast of the target area of image is calculated, defocusing curve is drawn according to the contrast of the target area of image, it is bent according to defocus
Line determines the gradient of camera module;In whole test process, presetted pixel brightness in the target area of image is pertained only to
Calculate, therefore be not limited to use bevel edge test pattern, most of test patterns can meet demand, test scene is wider
It is general;Further, since without analysis is identified to the bevel edge in image, measuring accuracy can be improved to avoid malfunctioning or failing
And stability.
Below by the gradient survey to the camera module of the application of on the basis of the method that above-described embodiment describes, illustrating
Method for testing is described further.With reference to figure 4, the method for the present embodiment includes:
Step S401, the image for the default quantity that camera module shooting test pattern obtains is obtained.
In the specific implementation, when needing to test the inclined degree between camera module inner lens and image sensor, can
To control the camera lens in motor driving camera module to be moved in the range of default step-length, and the test pattern is shot, obtained
The image of default quantity.
Such as in a specific embodiment, camera lens can be controlled in the range of 323~367 step-length, every time according to
The step-length of 4 units is moved, and is often moved to a position, and control camera module once shoots test pattern,
It will obtain 12 images.
Step S402, the upper left in every image of selection, upper right, lower-left, lower right area.
In a specific embodiment, the region selected by every image can be as shown in figure 5, including upper left, upper right, a left side
Under, this four regions of bottom right, the center in this four regions can be on two diagonal of image, to ensure the standard of test result
Exactness, this selected four regions are all close to image border, but not directly on image border.
Step S403, the upper left in every image of calculating, upper right, lower-left, the contrast of lower right area.
Each the circular of the contrast in region can be:Obtain presetted pixel and presetted pixel in the region
The brightness of diagonal adjacent pixel, calculate the diagonal adjacent pixel of presetted pixel and presetted pixel in the region luminance difference it is flat
Fang He, will be calculated contrast of the value as the region.
Such as:Pixel in some region, then can be with as shown in fig. 6, the quantitative proportion of G passages pixel is maximum in the region
Using G passages pixel as presetted pixel, each G passages pixel and the luminance difference of the diagonal adjacent pixel of the G passage pixels are calculated
Quadratic sum (first the brightness value of pixel is subtracted each other, square operation is done to subtracting each other the value obtained afterwards, will finally do square operation
Obtained all values add up), the contrast using the numerical value being calculated as the region.Such as in Fig. 6, pair in the region
Can be than degree:Contrast=(Gr01-Gb10)2+(Gr01-Gb12)2+(Gr03-Gb12)2+(Gb10-Gr21)2+
(Gb12-Gr21)2+(Gb12-Gr23)2+(Gr21-Gb31)2+(Gr21-Gb32)2+(Gr23-Gb32)2.Wherein, Contrast
Represent contrast, Gr01, Gr03, Gb10, Gb12, Gr21, Gr23, Gb31, Gb32 represent the brightness of pixel.
According to the method described above, the contrast of each selected areas of every image can be obtained.In a specific implementation
In example, the lens location information when contrast and every image taking of each selected areas of obtained every image can be such as
Shown in Fig. 7, every image all has lens location information, and the upper left of image, upper right, lower-left, the contrast of lower right area
This five information.
Step S404, the upper left in every image, upper right, lower-left, the contrast of lower right area and every image
Lens location, draws the defocusing curve of upper left, upper right, lower-left and lower right area respectively.
Specifically, the position of the camera lens is transverse axis data when can be using every image taking, with each of every image
The contrast of selected areas is longitudinal axis data, draws the defocusing curve of each selected areas.
In a specific embodiment, the defocusing curve drawn according to the method described above after chosen area can be such as Fig. 8
It is shown, including upper left, upper right, lower-left, the defocusing curve in this four regions of bottom right.
Step S405, respectively from the defocusing curve in aforementioned four region, correspondence, which finds out each region, has maximum contrast
The lens location of correspondence image when spending, is obtained four lens locations.
When selected region is the upper left of image, upper right, lower-left, this four regions of bottom right when, can be in top left region
Defocusing curve in, find out and picture (picture when i.e. top left region is most clear) corresponded to when top left region has maximum-contrast
Lens location, in the defocusing curve of right regions, finds out when right regions have maximum-contrast and corresponds to picture (i.e. upper right area
Picture when domain is most clear) lens location;In the defocusing curve of lower left region, finding out lower left region has maximum-contrast
When correspond to the lens location of picture (picture when i.e. lower left region is most clear);In the defocusing curve of lower right area, the right side is found out
Lower region corresponds to the lens location of picture (picture when i.e. lower right area is most clear) when having maximum-contrast, be obtained four
Lens location.
Step S406, the difference in four lens locations between position maximum and position minimum value is calculated, will be counted
Gradient of the obtained difference as the camera module.
Than that as shown in figure 8, from the defocusing curve of lower left region, can obtain when lower left region has a maximum-contrast pair
The lens location of image is answered to be about 329;From the defocusing curve of top left region, can obtain top left region has maximum contrast
The lens location of correspondence image is about 334 when spending;From the defocusing curve of lower right area, can obtain lower right area has most
The lens location of correspondence image is about 353 during big contrast;From the defocusing curve of right regions, right regions can be obtained
The lens location of correspondence image is about 362 during with maximum-contrast;Position maximum is 362 in this four position numerical value,
Position minimum value be 329, then using 362 with 329 difference 33 (approximate) as the camera module gradient.
After the gradient of camera module is obtained, it can judge whether camera module closes according to obtained gradient
Lattice.Such as, it can be determined that whether obtained gradient is within acceptable inclination range, if in, then it is assumed that camera
Module be it is qualified, it is on the contrary, then it is assumed that camera module is unqualified.In practical application, can accordingly testing result manufactured,
The improvement or optimization of assembly technology.
In the present embodiment, the brightness of presetted pixel in the target area for the image that can be shot according to camera module,
The contrast of the target area of image is calculated, defocusing curve is drawn according to the contrast of the target area of image, it is bent according to defocus
Line determines the gradient of camera module;In whole test process, presetted pixel brightness in the target area of image is pertained only to
Calculate, therefore be not limited to use bevel edge test pattern, most of test patterns can meet demand, test scene is wider
It is general;Further, since without analysis is identified to the bevel edge in image, test can be improved to avoid error or test crash
Precision and stability.
Referring to Fig. 9, Fig. 9 is the structural representation of the device for testing inclination of camera module provided by the embodiments of the present application
Figure.The device includes:Acquiring unit 901, choose unit 902, computing unit 903, drawing unit 904 and determination unit 905,
It is as follows:
Acquiring unit 901, the image of the default quantity obtained for obtaining the camera module shooting test pattern;
Unit 902 is chosen, for choosing target area from every image;
Computing unit 903, for every image of brightness calculation of presetted pixel in the target area according to every image
The contrast of target area;
Drawing unit 904, the contrast for the target area according to every image draw the defocus of each target area
Curve;
Determination unit 905, for finding out each target area from the defocusing curve of each target area with maximum right
The lens location of correspondence image during than spending, and when there is maximum-contrast according to each target area correspondence image camera lens position
Put, determine the gradient of the camera module.
In certain embodiments, the acquiring unit 901 is specifically used for:
Control motor drives the camera lens in the camera module to be moved in the range of default step-length, and shoots the test
Graph card, obtains the image of the default quantity.
In certain embodiments, the selection unit 902 is specifically used for:
Target area is chosen from the edge of every image, selected target area includes upper left, upper right, the lower-left of image
And lower right area.
In certain embodiments, the computing unit 903 is specifically used for:
Calculate the bright of the diagonal adjacent pixel of presetted pixel described in the target area of every image and the presetted pixel
Spend the quadratic sum of difference, the contrast using the value being calculated as the target area of correspondence image.
In certain embodiments, the drawing unit 904 is specifically used for:
Using the lens location of every image as transverse axis data, using the contrast of the target area of every image as longitudinal axis number
According to drawing upper left, upper right, the defocusing curve of lower-left and lower right area respectively.
In certain embodiments, as shown in Figure 10, the determination unit 905 includes:
Subelement 9051 is searched, for from the defocusing curve of upper left, upper right, lower-left and lower right area, correspondence to be looked for respectively
The correspondence image when lens location of correspondence image, right regions are with maximum-contrast when going out top left region with maximum-contrast
Lens location, the lens location of lower left region correspondence image when there is maximum-contrast, and lower right area have it is maximum right
The lens location of correspondence image during than spending, is obtained four lens locations;
Computation subunit 9052, for calculating in four lens locations between position maximum and position minimum value
Difference, the gradient using the difference being calculated as the camera module.
In certain embodiments, as shown in Figure 10, described device further includes:
Judging unit 906, for judging whether the camera module is qualified according to the gradient of the camera module.
From the foregoing, it will be observed that in the present embodiment test device, the camera module is obtained by acquiring unit 901 and shoots test chart
Block the image of obtained default quantity, choose unit 902 and target area is chosen from every image, computing unit 903 is according to every
Open the contrast of the target area of every image of brightness calculation of presetted pixel in the target area of image, drawing unit 904
Defocusing curve is drawn according to the contrast of the target area of image, camera is finally determined according to defocusing curve by determination unit 905
The gradient of module;In whole test process, the calculating of presetted pixel brightness in the target area of image, therefore not office are pertained only to
Be limited to use bevel edge test pattern, most of test patterns can meet demand, test scene is than wide;Further, since
Without analysis is identified to the bevel edge in image, measuring accuracy and stability can be improved to avoid error.
It when it is implemented, above modules can be realized as independent entity, can also be combined, be made
Realized for same or several entities, the specific implementation of above modules can be found in embodiment of the method above, herein not
Repeat again.
The embodiment of the present application also provides a kind of test equipment, for testing the gradient of camera module.Please refer to Fig.1 1,
Test equipment 1000 includes processor 1001 and memory 1002.Wherein, processor 1001 is electrically connected with memory 1002.
The processor 1000 is the control centre of test equipment 1000, is entirely tested using various interfaces and connection
The various pieces of equipment, by the computer program of operation or load store in memory 1002, and call and are stored in
Data in reservoir 1002, perform the various functions of test equipment 1000 and handle data, so as to be carried out to test equipment 1000
Integral monitoring.
The memory 1002 can be used for storage software program and module, and processor 1001 is stored in storage by operation
The computer program and module of device 1002, so as to perform various functions application and data processing.Memory 1002 can be main
Including storing program area and storage data field, wherein, storing program area can storage program area, the meter needed at least one function
Calculation machine program (such as sound-playing function, image player function etc.) etc.;Storage data field can be stored to be made according to test equipment
With data created etc..In addition, memory 1002 can include high-speed random access memory, can also include non-volatile
Memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.Correspondingly, store
Device 1002 can also include Memory Controller, to provide access of the processor 1001 to memory 1002.
In the embodiment of the present application, processor 1001 in test equipment 1000 can according to the steps, by one or
The corresponding instruction of process of more than one computer program is loaded into memory 1002, and runs storage by processor 1001
Computer program in memory 1002, it is as follows so as to fulfill various functions:
Obtain the image for the default quantity that the camera module shooting test pattern obtains;
Target area is chosen from every image;
According to the contrast of the target area of every image of brightness calculation of presetted pixel in the target area of every image;
The defocusing curve of each target area is drawn according to the contrast of the target area of every image;
Each target area is found out from the defocusing curve of each target area correspondence image when there is maximum-contrast
Lens location, and when there is maximum-contrast according to each target area correspondence image lens location, determine the camera
The gradient of module.
In some embodiments, the image for the default quantity that the camera module shooting test pattern obtains is being obtained
When, processor 1001 can specifically perform following steps:
Control motor drives the camera lens in the camera module to be moved in the range of default step-length, and shoots the test
Graph card, obtains the image of the default quantity.
In some embodiments, when choosing target area from every image, processor 1001 can specifically perform
Following steps:
Target area is chosen from the edge of every image, selected target area includes upper left, upper right, the lower-left of image
And lower right area.
In some embodiments, in the target area according to every image presetted pixel every image of brightness calculation
Target area contrast when, processor 1001 can specifically perform following steps:
Calculate the bright of the diagonal adjacent pixel of presetted pixel described in the target area of every image and the presetted pixel
Spend the quadratic sum of difference, the contrast using the value being calculated as the target area of correspondence image.
In some embodiments, the contrast in the target area according to every image draw each target area from
During burnt curve, processor 1001 can specifically perform following steps:
Using the lens location of every image as transverse axis data, using the contrast of the target area of every image as longitudinal axis number
According to drawing upper left, upper right, the defocusing curve of lower-left and lower right area respectively.
In some embodiments, each target area is found out in the defocusing curve from each target area has maximum
The lens location of correspondence image during contrast, and when there is maximum-contrast according to each target area correspondence image camera lens position
Put, when determining the gradient of the camera module, processor 1001 can specifically perform following steps:
Respectively from the defocusing curve of upper left, upper right, lower-left and lower right area, corresponding top left region of finding out is with maximum right
The lens location of correspondence image, lower left region when the lens location of correspondence image, right regions have maximum-contrast during than spending
The lens location of correspondence image during with maximum-contrast, and when lower right area has maximum-contrast correspondence image camera lens
Position, is obtained four lens locations;
Calculate the difference between position maximum and position minimum value, the difference that will be calculated in four lens locations
It is worth the gradient as the camera module.
In some embodiments, processor 1001 can also carry out following steps:
Judge whether the camera module is qualified according to the gradient of the camera module.
It can be seen from the above, the test equipment of the embodiment of the present application, the mesh for the image that can be shot according to camera module
The brightness of presetted pixel in region is marked, the contrast of the target area of image is calculated, according to the contrast of the target area of image
Defocusing curve is drawn, the gradient of camera module is determined according to defocusing curve;In whole test process, the mesh of image is pertained only to
The calculating of presetted pixel brightness in region is marked, therefore is not limited to use bevel edge test pattern, most of test patterns can
Meet demand, test scene is than wide;, can be to avoid going out further, since without analysis is identified to the bevel edge in image
Wrong or test crash, improves measuring accuracy and stability.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiment.
It should be noted that for the gradient test method of the camera module of the embodiment of the present application, this area is general
Logical tester is appreciated that to realize all or part of stream of the gradient test method of the camera module of the embodiment of the present application
Journey, is that relevant hardware can be controlled to complete by computer program, the computer program can be stored in a computer
In read/write memory medium, such as it is stored in the memory of electronic equipment, and by least one processor in the electronic equipment
Perform, may include the flow of the embodiment of gradient test method such as camera module in the process of implementation.Wherein, it is described
Storage medium can be magnetic disc, CD, read-only storage, random access memory etc..
For the device for testing inclination of the camera module of the embodiment of the present application, its each function module can be integrated in
In one process chip or modules are individually physically present, can also two or more modules be integrated in one
In a module.Above-mentioned integrated module can both be realized in the form of hardware, can also use the form of software function module
Realize.If the integrated module realized in the form of software function module and as independent production marketing or in use,
It can also be stored in a computer read/write memory medium, the storage medium is for example read-only storage, disk or light
Disk etc..
The gradient test method and device of a kind of camera module provided above the embodiment of the present application carry out
It is discussed in detail, specific case used herein is set forth the principle and embodiment of the application, above example
Illustrate that being only intended to help understands the present processes and its core concept;Meanwhile for those skilled in the art, according to this
The thought of application, there will be changes in specific embodiments and applications, in conclusion this specification content should
It is interpreted as the limitation to the application.
Claims (14)
- A kind of 1. gradient test method of camera module, it is characterised in that including:Obtain the image for the default quantity that the camera module shooting test pattern obtains;Target area is chosen from every image;According to the contrast of the target area of every image of brightness calculation of presetted pixel in the target area of every image;The defocusing curve of each target area is drawn according to the contrast of the target area of every image;The camera lens for correspondence image of each target area being found out from the defocusing curve of each target area when there is maximum-contrast Position, and when there is maximum-contrast according to each target area correspondence image lens location, determine the camera module Gradient.
- 2. test method according to claim 1, it is characterised in that described to obtain the camera module shooting test chart Block the image of obtained default quantity, including:Control motor drives the camera lens in the camera module to be moved in the range of default step-length, and shoots the test chart Card, obtains the image of the default quantity.
- 3. test method according to claim 2, it is characterised in that described that target area, bag are chosen from every image Include:Target area is chosen from the edge of every image, selected target area includes upper left, upper right, lower-left and the right side of image Lower region.
- 4. test method according to claim 3, it is characterised in that preset in the target area according to every image The contrast of the target area of every image of brightness calculation of pixel, including:Calculate the luminance difference of the diagonal adjacent pixel of presetted pixel described in the target area of every image and the presetted pixel Quadratic sum, the contrast using the value being calculated as the target area of correspondence image.
- 5. test method according to claim 4, it is characterised in that the contrast of the target area according to every image Degree draws the defocusing curve of each target area, including:Using the lens location of every image as transverse axis data, using the contrast of the target area of every image as longitudinal axis data, point Hui Zhi not upper left, upper right, the defocusing curve of lower-left and lower right area.
- 6. test method according to claim 5, it is characterised in that described to be looked for from the defocusing curve of each target area The lens location for the correspondence image that goes out each target area when there is maximum-contrast, and had according to each target area it is maximum right The lens location of correspondence image during than spending, determines the gradient of the camera module, including:Respectively from the defocusing curve of upper left, upper right, lower-left and lower right area, correspondence, which finds out top left region, has maximum-contrast When the lens location of correspondence image, right regions with maximum-contrast when the lens location of correspondence image, lower left region with The lens location of correspondence image during maximum-contrast, and when lower right area has maximum-contrast correspondence image camera lens position Put, four lens locations are obtained;The difference between position maximum and position minimum value in four lens locations is calculated, the difference being calculated is made For the gradient of the camera module.
- 7. according to the test method described in claim 1 to 6 any one, it is characterised in that the method further includes:Judge whether the camera module is qualified according to the gradient of the camera module.
- A kind of 8. device for testing inclination of camera module, it is characterised in that including:Acquiring unit, the image of the default quantity obtained for obtaining the camera module shooting test pattern;Unit is chosen, for choosing target area from every image;Computing unit, the target area for every image of brightness calculation of presetted pixel in the target area according to every image Contrast;Drawing unit, the contrast for the target area according to every image draw the defocusing curve of each target area;Determination unit, for being found out from the defocusing curve of each target area when each target area has a maximum-contrast pair The lens location of correspondence image, determines institute when answering the lens location of image, and having maximum-contrast according to each target area State the gradient of camera module.
- 9. test device according to claim 8, it is characterised in that the acquiring unit is specifically used for:Control motor drives the camera lens in the camera module to be moved in the range of default step-length, and shoots the test chart Card, obtains the image of the default quantity.
- 10. test device according to claim 9, it is characterised in that the selection unit is specifically used for:Target area is chosen from the edge of every image, selected target area includes upper left, upper right, lower-left and the right side of image Lower region.
- 11. test device according to claim 10, it is characterised in that the computing unit is specifically used for:Calculate the luminance difference of the diagonal adjacent pixel of presetted pixel described in the target area of every image and the presetted pixel Quadratic sum, the contrast using the value being calculated as the target area of correspondence image.
- 12. test device according to claim 11, it is characterised in that the drawing unit is specifically used for:Using the lens location of every image as transverse axis data, using the contrast of the target area of every image as longitudinal axis data, point Hui Zhi not upper left, upper right, the defocusing curve of lower-left and lower right area.
- 13. test device according to claim 12, it is characterised in that the determination unit includes:Subelement is searched, for from the defocusing curve of upper left, upper right, lower-left and lower right area, correspondence to find out upper left area respectively The camera lens position of correspondence image when the lens location of correspondence image, right regions are with maximum-contrast when domain is with maximum-contrast Put, when lower left region has maximum-contrast correspondence image lens location, and when lower right area has a maximum-contrast pair The lens location of image is answered, four lens locations are obtained;Computation subunit, will for calculating the difference in four lens locations between position maximum and position minimum value Gradient of the difference being calculated as the camera module.
- 14. according to the test device described in claim 8 to 13 any one, it is characterised in that described device further includes:Judging unit, for judging whether the camera module is qualified according to the gradient of the camera module.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711464322.1A CN107920246B (en) | 2017-12-28 | 2017-12-28 | The gradient test method and device of camera module |
PCT/CN2018/116240 WO2019128534A1 (en) | 2017-12-28 | 2018-11-19 | Degree of incline test method and apparatus for camera module, and storage medium and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711464322.1A CN107920246B (en) | 2017-12-28 | 2017-12-28 | The gradient test method and device of camera module |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107920246A true CN107920246A (en) | 2018-04-17 |
CN107920246B CN107920246B (en) | 2019-10-25 |
Family
ID=61894405
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711464322.1A Active CN107920246B (en) | 2017-12-28 | 2017-12-28 | The gradient test method and device of camera module |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107920246B (en) |
WO (1) | WO2019128534A1 (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019128534A1 (en) * | 2017-12-28 | 2019-07-04 | Oppo广东移动通信有限公司 | Degree of incline test method and apparatus for camera module, and storage medium and electronic device |
CN111263136A (en) * | 2018-11-30 | 2020-06-09 | 欧菲影像技术(广州)有限公司 | Method for detecting imaging field curvature, method for detecting imaging inclination and imaging detector |
CN111556311A (en) * | 2020-04-07 | 2020-08-18 | 昆山丘钛微电子科技有限公司 | Quality detection method and device for fixed-focus camera module and computer storage medium |
CN112543320A (en) * | 2019-09-23 | 2021-03-23 | 北京集创北方科技股份有限公司 | Image acquisition equipment testing method, device and system and image acquisition equipment |
CN113124830A (en) * | 2021-04-09 | 2021-07-16 | 广州得尔塔影像技术有限公司 | Method and equipment for testing imaging optical gradient of camera module |
CN113747146A (en) * | 2021-08-16 | 2021-12-03 | 珠海市丘钛微电子科技有限公司 | Test chart detection method, device, equipment and storage medium |
CN113766210A (en) * | 2021-07-21 | 2021-12-07 | 歌尔光学科技有限公司 | Test method and device |
CN113840136A (en) * | 2021-09-03 | 2021-12-24 | 大连中科创达软件有限公司 | Method and device for detecting camera installation accuracy |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7187632B2 (en) * | 2002-09-19 | 2007-03-06 | Ricoh Company, Ltd. | Optical disk device and method of adjusting tilt control amount |
CN102929074A (en) * | 2011-08-12 | 2013-02-13 | 华晶科技股份有限公司 | Lens calibration system of employing imaging technology and calibration method thereof |
CN103149789A (en) * | 2013-02-28 | 2013-06-12 | 宁波舜宇光电信息有限公司 | Image modulation transfer function (MTF) evaluation-based module motor curve testing method |
CN106296711A (en) * | 2016-08-22 | 2017-01-04 | 华南理工大学 | A kind of multiaxis active alignment method of mobile phone camera module |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150139501A1 (en) * | 2013-11-20 | 2015-05-21 | Steven Robert Rogers | Wind velocity calibration system and method |
CN105025290B (en) * | 2014-04-23 | 2017-07-04 | 宁波舜宇光电信息有限公司 | A kind of inclined method between adjust automatically camera module sensor and camera lens |
CN105758381B (en) * | 2016-05-09 | 2018-05-22 | 深圳大学 | A kind of camera module method for detecting its tilt based on spectrum analysis |
CN107920246B (en) * | 2017-12-28 | 2019-10-25 | Oppo广东移动通信有限公司 | The gradient test method and device of camera module |
-
2017
- 2017-12-28 CN CN201711464322.1A patent/CN107920246B/en active Active
-
2018
- 2018-11-19 WO PCT/CN2018/116240 patent/WO2019128534A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7187632B2 (en) * | 2002-09-19 | 2007-03-06 | Ricoh Company, Ltd. | Optical disk device and method of adjusting tilt control amount |
CN102929074A (en) * | 2011-08-12 | 2013-02-13 | 华晶科技股份有限公司 | Lens calibration system of employing imaging technology and calibration method thereof |
CN103149789A (en) * | 2013-02-28 | 2013-06-12 | 宁波舜宇光电信息有限公司 | Image modulation transfer function (MTF) evaluation-based module motor curve testing method |
CN106296711A (en) * | 2016-08-22 | 2017-01-04 | 华南理工大学 | A kind of multiaxis active alignment method of mobile phone camera module |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019128534A1 (en) * | 2017-12-28 | 2019-07-04 | Oppo广东移动通信有限公司 | Degree of incline test method and apparatus for camera module, and storage medium and electronic device |
CN111263136A (en) * | 2018-11-30 | 2020-06-09 | 欧菲影像技术(广州)有限公司 | Method for detecting imaging field curvature, method for detecting imaging inclination and imaging detector |
CN112543320A (en) * | 2019-09-23 | 2021-03-23 | 北京集创北方科技股份有限公司 | Image acquisition equipment testing method, device and system and image acquisition equipment |
CN111556311A (en) * | 2020-04-07 | 2020-08-18 | 昆山丘钛微电子科技有限公司 | Quality detection method and device for fixed-focus camera module and computer storage medium |
CN111556311B (en) * | 2020-04-07 | 2022-02-01 | 昆山丘钛微电子科技有限公司 | Quality detection method and device for fixed-focus camera module and computer storage medium |
CN113124830A (en) * | 2021-04-09 | 2021-07-16 | 广州得尔塔影像技术有限公司 | Method and equipment for testing imaging optical gradient of camera module |
CN113766210A (en) * | 2021-07-21 | 2021-12-07 | 歌尔光学科技有限公司 | Test method and device |
CN113766210B (en) * | 2021-07-21 | 2024-05-10 | 歌尔光学科技有限公司 | Test method and device |
CN113747146A (en) * | 2021-08-16 | 2021-12-03 | 珠海市丘钛微电子科技有限公司 | Test chart detection method, device, equipment and storage medium |
CN113840136A (en) * | 2021-09-03 | 2021-12-24 | 大连中科创达软件有限公司 | Method and device for detecting camera installation accuracy |
CN113840136B (en) * | 2021-09-03 | 2023-12-01 | 大连中科创达软件有限公司 | Method and device for detecting camera installation precision |
Also Published As
Publication number | Publication date |
---|---|
WO2019128534A1 (en) | 2019-07-04 |
CN107920246B (en) | 2019-10-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107920246B (en) | The gradient test method and device of camera module | |
CN101738728B (en) | Optical aberration correction for machine vision inspection systems | |
US20110128354A1 (en) | System and method for obtaining camera parameters from multiple images and computer program products thereof | |
CN111402152B (en) | Processing method and device of disparity map, computer equipment and storage medium | |
CN107749268A (en) | Screen detection method and equipment | |
CN107395924A (en) | Image processing apparatus, image capture apparatus and image processing method | |
CN112288724B (en) | Defect detection method and device, electronic equipment and storage medium | |
CN103369265A (en) | Pixel information management apparatus and image capture apparatus using the same | |
CN110519585A (en) | A kind of imaging calibration method and device applied to image capture device | |
CN109102026A (en) | A kind of vehicle image detection method, apparatus and system | |
CN108198189A (en) | Acquisition methods, device, storage medium and the electronic equipment of picture clarity | |
Noto et al. | In situ color-to-depth calibration: toward practical three-dimensional color particle tracking velocimetry | |
CN116912475B (en) | Display screen foreign matter detection method and device, electronic equipment and storage medium | |
CN109443697B (en) | Optical center testing method, device, system and equipment | |
TWI733355B (en) | Pipetting system and calibration method thereof | |
CN117612470A (en) | Color lookup table generating method and color correcting method | |
CN115719387A (en) | 3D camera calibration method, point cloud image acquisition method and camera calibration system | |
JP2018088228A (en) | Intersection detection device, camera calibration system, intersection detection method, camera calibration method, program and recording medium | |
CN113840136A (en) | Method and device for detecting camera installation accuracy | |
CN112734721A (en) | Optical axis deflection angle detection method, device, equipment and medium | |
CN110930420A (en) | Dense target background noise suppression method and device based on neural network | |
CN109388564A (en) | A kind of test method, device and electronic equipment | |
US11443521B2 (en) | Method and device for evaluating images, operational assistance method and operating device | |
KR100367058B1 (en) | Flaw detector | |
CN117437602B (en) | Dual-layer data calibration method, device, equipment and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |