CN107920246B - The gradient test method and device of camera module - Google Patents

The gradient test method and device of camera module Download PDF

Info

Publication number
CN107920246B
CN107920246B CN201711464322.1A CN201711464322A CN107920246B CN 107920246 B CN107920246 B CN 107920246B CN 201711464322 A CN201711464322 A CN 201711464322A CN 107920246 B CN107920246 B CN 107920246B
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.)
Active
Application number
CN201711464322.1A
Other languages
Chinese (zh)
Other versions
CN107920246A (en
Inventor
张乐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711464322.1A priority Critical patent/CN107920246B/en
Publication of CN107920246A publication Critical patent/CN107920246A/en
Priority to PCT/CN2018/116240 priority patent/WO2019128534A1/en
Application granted granted Critical
Publication of CN107920246B publication Critical patent/CN107920246B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, 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: the image for obtaining the preset 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 of correspondence image when finding out each target area from the defocusing curve of each target area with 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 be improved measuring accuracy and stability.

Description

The gradient test method and device of camera module
Technical field
This application involves camera module testing fields, and in particular to a kind of gradient test method of camera module and Device.
Background technique
During camera module production, by manufacture, mounting technology or technique etc. are influenced, mirror in camera module It will appear not parallel situation between head and image sensor, i.e., incline between camera lens and image sensor there are a degree of Tiltedly, such camera module is at work, it may appear that defocus phenomenon, it is relatively fuzzyyer so as to cause the image of generation, at As second-rate.Therefore, it before factory, needs to detect the inclined degree between camera lens and image sensor, to ensure Product quality.
Existing detection method mainly passes through the specific test pattern (bevel edge test pattern) of shooting, the figure obtained to shooting 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 value.This method can only use specific survey Attempt card, application scenarios are relatively more limited, and are related to bevel edge discriminance analysis, are easy to appear recognition failures or analysis mistake, test essence Spend that low, stability is poor.
Summary 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 can be improved measuring accuracy and stability.
The gradient test method of camera module provided by the embodiments of the present application, comprising:
Obtain the image for the preset 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;
Correspondence image when finding out each target area from the defocusing curve of each target area with maximum-contrast Lens location, and according to each target area have maximum-contrast when correspondence image lens location, determine the camera The gradient of mould group.
The device for testing inclination of camera module provided by the embodiments of the present application, comprising:
Acquiring unit, for obtaining the image for the preset quantity that the camera module shooting test pattern obtains;
Selection unit, 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 for drawing each target area for the contrast according to the target area of every image are bent Line;
Determination unit, for finding out each target area from the defocusing curve of each target area with maximum-contrast When correspondence image lens location, and according to each target area have maximum-contrast when 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 entire test process, presetted pixel brightness in the target area of image is pertained only to Calculating, therefore be not limited to using bevel edge test pattern, most of test patterns can meet demand, test scene compares Extensively;In addition, due to not having to carry out discriminance analysis to the bevel edge in image survey can be improved to avoid error or test crash Try precision and stability.
Detailed description of the invention
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 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 structural schematic diagram of the device for testing inclination of camera module provided by the embodiments of the present application.
Figure 10 is another structural schematic diagram of the device for testing inclination of camera module provided by the embodiments of the present application.
Figure 11 is the structural schematic diagram of the test equipment of camera module provided by the embodiments of the present application.
Specific embodiment
Schema is please referred to, wherein identical component symbol represents identical component, the principle of the application is to implement one It is illustrated in computing environment appropriate.The following description be based on illustrated by the application specific embodiment, 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 will refer to the step as 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 executed by computer, this paper institute The computer execution of finger includes by representing with the computer processing unit of the electronic signal of the data in a structuring pattern Operation.This operation is converted at the data or the position being maintained in the memory system of the computer, reconfigurable Or in addition change the running of the computer in mode known to the tester of this field.The maintained data structure of the data For the provider location of the memory, there is the specific feature as defined in the data format.But the application principle is with above-mentioned text Word illustrates that be not represented as a kind of limitation, this field tester will appreciate that plurality of step and behaviour as described below Also it may be implemented in hardware.
Term as used herein " module " can regard the software object to execute 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 the form of software, can also be implemented on hardware certainly, within the application protection scope.
Term " first ", " second " and " third " in the application etc. are for distinguishing different objects, rather than for retouching State particular order.In addition, term " includes " and " having " and their any deformations, it is intended that cover and non-exclusive include. Such as contain series of steps or module process, method, system, product or equipment be not limited to listed step or Module, but some embodiments further include the steps that 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 executing subject 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 other component, such as: motor, colour filter, substrate Deng being not especially limited herein.Wherein, camera lens is for assembling light, the projects of shooting to image sensor;Image passes Sensor is used to be converted to the image (optical signal) that camera lens projects electric signal, and motor is for driving camera lens mobile, so that camera lens is thrown Penetrate clearly image to image sensor.
As shown in the left side Fig. 1, 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, will lead to entirely at Image planes are not simultaneously in focus state, i.e. some visual fields can be in state out of focus, wherein the edge of image most serious out of focus, Image border is most fuzzy.Therefore, it before factory, needs to the inclined degree between camera module inner lens and image sensor It is detected.
The embodiment of the present application provides the method for the inclined degree between testing lens and image sensor, specific In implementation process, it can use camera module shooting test pattern to be detected and obtain the image of preset quantity, scheme from every 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 draws the defocusing curve of each target area according to the contrast of the target area of every image, from each The lens location of correspondence image when finding out each target area in the defocusing curve of target area with maximum-contrast, and according to The lens location of correspondence image, determines the gradient of the camera module when each target area has maximum-contrast.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;In addition, due to not having to in image Bevel edge carries out discriminance analysis, can improve measuring accuracy and stability to avoid error.
The embodiment of the present application describes from the angle of the device for testing inclination of camera module the embodiment of the present application and provides Camera module gradient test method, which includes: to obtain camera module shooting test The image for the preset 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;It is 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 with maximum contrast The lens location of correspondence image when spending, and according to each target area have maximum-contrast when correspondence image lens location, Determine the gradient of the camera module.
Referring to Fig. 2, Fig. 2 is the process signal of the gradient test method of camera module provided by the embodiments of the present application Figure.The detailed process of the gradient test method of camera module provided by the embodiments of the present application can be such that
Step S201, the image for the preset 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, it can It is moved within the scope of preset step-length with controlling the camera lens in motor driving camera module, and shoots the test pattern, obtained The image of preset quantity.
, can be within the scope of the step-length of P-R to P+R such as shown in Fig. 3, moving lens, one position of every movement, control takes the photograph As head mould group once shoots test pattern, obtains shooting every time and obtains image to get the image of preset quantity is arrived.
Step S202, target area is chosen from every image.
In the specific implementation, target area, target can be chosen from every image after obtaining the image of preset quantity 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 several regions as target area from the edge of image.For example, can be from the upper and lower, left and right position of image Four regions are chosen as target area, or the upper left from image, upper right, lower-left, this four angles, four region of selection 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, for the accuracy for guaranteeing test result, selected region can be close to image border, but not It will can there are a certain distance directly on image border, i.e., between selected region and image border.In addition, actually answering In, it can also be chosen without region, 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 variation to red (Red), green (Green), blue (Blue) three Color Channels It arrives, RGB is the pixel color for representing three channels of red, green, blue, therefore, can be by the channel the R pixel or G in image Channel 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 the channel G pixel as presetted pixel.
After the target area for obtaining every image, the contrast of each target area can be calculated.It is specific to calculate Method may is that the brightness for obtaining the diagonal adjacent pixel of presetted pixel and presetted pixel in target area, calculate target area The luminance difference of the diagonal adjacent pixel of interior presetted pixel and presetted pixel quadratic sum (the brightness value of pixel is first subtracted each other, Square operation is done to the value obtained after subtracting each other, 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 comparison of each target area of available every image 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 horizontal 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, when finding out each target area from the defocusing curve of each target area with 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, 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 when having maximum-contrast, right regions have maximum-contrast, The corresponding diagram when lens location of correspondence image and lower right area have maximum-contrast when lower left region has maximum-contrast Four lens locations are obtained in the lens location of picture, calculate position maximum value and position minimum value in four lens locations Between difference, using the difference being calculated as the gradient of the camera module.
After obtaining the gradient of camera module, 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 Mould group 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 of the image shot according to camera module is understood, The contrast for calculating the target area of image draws defocusing curve according to the contrast of the target area of image, according to defocus song Line determines the gradient of camera module;In entire test process, presetted pixel brightness in the target area of image is pertained only to Calculate, therefore be not limited to using bevel edge test pattern, most of test patterns can meet demand, test scene is wider It is general;In addition, due to not having to carry out discriminance analysis to the bevel edge in image measuring accuracy can be improved to avoid malfunctioning or failing And stability.
It on the basis of the method that above-described embodiment describes, will illustrate below and the gradient of the camera module of the application surveyed Method for testing is described further.With reference to Fig. 4, the method for the present embodiment includes:
Step S401, the image for the preset 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, it can It is moved within the scope of preset step-length with controlling the camera lens in motor driving camera module, and shoots the test pattern, obtained The image of preset quantity.
For example, in a specific embodiment, can control camera lens within the scope of 323~367 step-length, every time according to The step-length of 4 units is moved, and a position is often moved to, 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, region selected by every image can be as shown in figure 5, include 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 lines of image, for the standard for guaranteeing test result Exactness, this selected four regions are all close to image border, but not directly on image border.
Step S403, calculate every image in upper left, upper right, lower-left, lower right area contrast.
The circular of the contrast in each region, which may is that, obtains presetted pixel and presetted pixel in the region The brightness of diagonal adjacent pixel calculates the flat of the luminance difference of the diagonal adjacent pixel of the presetted pixel and presetted pixel in the region Contrast of the value as the region will be calculated in Fang He.
Such as: pixel in some region, then can be with as shown in fig. 6, the quantitative proportion of the channel G pixel is maximum in the region Using the channel G pixel as presetted pixel, the luminance difference of each channel G pixel and the diagonal adjacent pixel of the channel the G pixel is calculated Quadratic sum (first the brightness value of pixel is subtracted each other, square operation is done to the value obtained after subtracting each other, will finally do square operation Obtained all values add up), using the numerical value being calculated as the contrast in the region.Such as in Fig. 6, pair in the region It may is that Contrast=(Gr01-Gb10) than degree2+(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 Indicate contrast, Gr01, Gr03, Gb10, Gb12, Gr21, Gr23, Gb31, Gb32 indicate the brightness of pixel.
According to the method described above, the contrast of each selected areas of available every image.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 have the upper left of lens location information and image, upper right, lower-left, lower right area contrast This five information.
Step S404, according to the upper left in every image, upper right, lower-left, the contrast of lower right area and every image Lens location draws upper left, upper right, the defocusing curve of lower-left and lower right area respectively.
Specifically, horizontal axis data is in the position of the camera lens 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 after chosen area according to the method described above can be such as Fig. 8 It is shown, including upper left, upper right, the defocusing curve of lower-left, this four regions of bottom right.
Step S405, corresponding to find out each region with maximum contrast respectively from the defocusing curve in aforementioned four region Four lens locations are obtained in the lens location of correspondence image when spending.
It, can be in top left region when upper left, upper right, lower-left, bottom right this four region of the selected region for image Defocusing curve in, correspond to picture (picture when i.e. top left region is clearest) when finding out top left region with maximum-contrast Lens location corresponds to picture (i.e. upper right area when finding out right regions with maximum-contrast in the defocusing curve of right regions Picture when domain is clearest) lens location;In the defocusing curve of lower left region, lower left region is found out with maximum-contrast When correspond to the lens location of picture (picture when i.e. lower left region is clearest);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 clearest) when having maximum-contrast, be obtained four Lens location.
Step S406, the difference in four lens locations between position maximum value and position minimum value is calculated, will be counted Gradient of the obtained difference as the camera module.
Than as shown in figure 8, from the defocusing curve of lower left region, when available 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, available 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, available lower right area has most The lens location of correspondence image is about 353 when big contrast;From the defocusing curve of right regions, available right regions The lens location of correspondence image is about 362 when with maximum-contrast;Position maximum value is 362 in this four position numerical value, Position minimum value is 329, then by 362 gradient with 329 difference 33 (approximate) as the camera module.
After obtaining the gradient of camera module, 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 Mould group 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 of the image shot according to camera module is understood, The contrast for calculating the target area of image draws defocusing curve according to the contrast of the target area of image, according to defocus song Line determines the gradient of camera module;In entire test process, presetted pixel brightness in the target area of image is pertained only to Calculate, therefore be not limited to using bevel edge test pattern, most of test patterns can meet demand, test scene is wider It is general;In addition, due to not having to carry out discriminance analysis 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, selection unit 902, computing unit 903, drawing unit 904 and determination unit 905, It is as follows:
Acquiring unit 901, for obtaining the image for the preset quantity that the camera module shooting test pattern obtains;
Selection unit 902, 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 draws the defocus of each target area for the contrast according to the target area of every image Curve;
Determination unit 905 has maximum right for finding out each target area from the defocusing curve of each target area The lens location of correspondence image when than spending, and according to each target area have maximum-contrast when correspondence image camera lens position It sets, determines the gradient of the camera module.
In some embodiments, the acquiring unit 901 is specifically used for:
Control motor drives the camera lens in the camera module to move within the scope of preset step-length, and shoots the test Graph card obtains the image of the preset quantity.
In some 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 some 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 The quadratic sum for spending difference, using the value being calculated as the contrast of the target area of correspondence image.
In some embodiments, the drawing unit 904 is specifically used for:
Using the lens location of every image as horizontal axis data, using the contrast of the target area of every image as longitudinal axis number According to, respectively draw upper left, upper right, the defocusing curve of lower-left and lower right area.
In some 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 have maximum-contrast when top left region is with maximum-contrast out Lens location, lower left region when there is maximum-contrast the lens location of correspondence image and lower right area have it is maximum right Four lens locations are obtained in the lens location of correspondence image when than spending;
Computation subunit 9052, for calculating in four lens locations between position maximum value and position minimum value Difference, using the difference being calculated as the gradient of the camera module.
In some embodiments, as shown in Figure 10, described device further include:
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 obtaining the camera module in the present embodiment test device by acquiring unit 901 and shooting test chart Block the image of obtained preset quantity, selection unit 902 chooses target area from every image, and computing unit 903 is according to every 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 mould group;In entire test process, the calculating of presetted pixel brightness in the target area of image is pertained only to, therefore not office Be limited to using bevel edge test pattern, most of test patterns can meet demand, test scene is than wide;In addition, due to Without carrying out discriminance analysis to the bevel edge in image, measuring accuracy and stability can be improved to avoid error.
When it is implemented, the above modules can be used as independent entity to realize, any combination can also be carried out, is made It is realized for same or several entities, the specific implementation of the above modules can be found in the embodiment of the method for front, herein not It repeats again.
The embodiment of the present application also provides a kind of test equipment, for testing the gradient of camera module.Figure 11 is please referred to, Test equipment 1000 includes processor 1001 and memory 1002.Wherein, processor 1001 and memory 1002 are electrically connected.
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 are called and are stored in Data in reservoir 1002 execute the various functions of test equipment 1000 and handle data, to carry out to test equipment 1000 Integral monitoring.
The memory 1002 can be used for storing software program and module, and processor 1001 is stored in storage by operation The computer program and module of device 1002, thereby executing various function application and data processing.Memory 1002 can be main Including storing program area and storage data area, wherein storing program area can meter needed for storage program area, at least one function Calculation machine program (such as sound-playing function, image player function etc.) etc.;Storage data area can be stored to be made according to test equipment With the data etc. created.In addition, memory 1002 may include high-speed random access memory, it can also include non-volatile Memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.Correspondingly, it stores 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 following step, by one or The corresponding instruction of the process of more than one computer program is loaded into memory 1002, and is run and stored by processor 1001 Computer program in memory 1002, thus realize various functions, it is as follows:
Obtain the image for the preset 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;
Correspondence image when finding out each target area from the defocusing curve of each target area with maximum-contrast Lens location, and according to each target area have maximum-contrast when correspondence image lens location, determine the camera The gradient of mould group.
In some embodiments, in the image for obtaining the preset quantity that the camera module shooting test pattern obtains When, processor 1001 can specifically execute following steps:
Control motor drives the camera lens in the camera module to move within the scope of preset step-length, and shoots the test Graph card obtains the image of the preset quantity.
In some embodiments, when choosing target area from every image, processor 1001 can specifically be executed 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 execute 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 The quadratic sum for spending difference, using the value being calculated as the contrast of the target area of correspondence image.
In some embodiments, the contrast according to the target area of every image draw each target area from When burnt curve, processor 1001 can specifically execute following steps:
Using the lens location of every image as horizontal axis data, using the contrast of the target area of every image as longitudinal axis number According to, respectively draw upper left, upper right, the defocusing curve of lower-left and lower right area.
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 when contrast, and according to each target area have maximum-contrast when correspondence image camera lens position It sets, when determining the gradient of the camera module, processor 1001 can specifically execute 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 has maximum right The lens location of correspondence image, lower left region when the lens location of correspondence image, right regions have maximum-contrast when than spending The camera lens of correspondence image when the lens location of correspondence image and lower right area have maximum-contrast when with maximum-contrast Four lens locations are obtained in position;
Calculate the difference in four lens locations between position maximum value and position minimum value, the difference that will be calculated It is worth the gradient as the camera module.
In some embodiments, following steps can also be performed in processor 1001:
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 for marking presetted pixel in region, calculates the contrast of the target area of image, 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 entire 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 using bevel edge test pattern, most of test patterns are ok Meet demand, test scene is than wide;In addition, due to not having to carry out discriminance analysis to the bevel edge in image, it can be to avoid out Wrong or test crash, improves measuring accuracy and stability.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.
It should be noted that this field is general for the gradient test method of the camera module of the embodiment of the present application Logical tester is understood that realize all or part of stream of the gradient test method of the camera module of the embodiment of the present application Journey is relevant hardware can be controlled by computer program to complete, and the computer program can be stored in a computer It in read/write memory medium, is such as stored in the memory of electronic equipment, and by least one processor in the electronic equipment It executes, in the process of implementation may include the process of the embodiment of the gradient test method such as camera module.Wherein, described Storage medium can be magnetic disk, CD, read-only memory, random access memory etc..
For the device for testing inclination of the camera module of the embodiment of the present application, each functional module be can integrate In one processing chip, it is also possible to modules and physically exists alone, one can also be integrated in two or more modules In a module.Above-mentioned integrated module both can take the form of hardware realization, can also use the form of software function module It realizes.If the integrated module is realized and when sold or used as an independent product in the form of software function module, Also it can store in a computer readable storage medium, the storage medium is for example read-only memory, disk or light Disk etc..
The gradient test method and device of a kind of camera module provided by the embodiment of the present application are carried out above It is discussed in detail, specific examples are used herein to illustrate the principle and implementation manner of the present application, above embodiments Illustrate to be merely used to help understand 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 the specific implementation manner and application range, in conclusion the content of the present specification is not answered It is interpreted as the limitation to the application.

Claims (12)

1. a kind of gradient test method of camera module characterized by comprising
Obtain the image for the preset 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, packet It includes: obtaining the brightness of the diagonal adjacent pixel of the presetted pixel and the presetted pixel in the target area of every image, meter Calculate square of the luminance difference of the diagonal adjacent pixel of the presetted pixel and the presetted pixel in the target area of every image With using the value being calculated as the contrast of the target area of correspondence image, the presetted pixel is in corresponding target area The shared maximum pixel of quantitative proportion;
Draw the defocusing curve of each target area, comprising: according to the contrast of the target area of every image with every image Lens location when shooting is horizontal axis data, using the contrast of each target area of every image as longitudinal axis data, is drawn every The defocusing curve of a target area;
The camera lens of correspondence image when finding out each target area from the defocusing curve of each target area with maximum-contrast Position, and according to each target area have maximum-contrast when correspondence image lens location, determine the camera module Gradient;
Judge the gradient of the camera module whether in inclination range, if, the camera module is qualified, Otherwise, the camera module is unqualified.
2. test method according to claim 1, which is characterized in that described to obtain the camera module shooting test chart Block the image of obtained preset quantity, comprising:
Control motor drives the camera lens in the camera module to move within the scope of preset step-length, and shoots the test chart Card, obtains the image of the preset quantity.
3. test method according to claim 2, which is characterized in that described to choose target area, packet from every image It includes:
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, which is characterized in that the comparison of the target area according to every image Degree draws the defocusing curve of each target area, comprising:
Using the lens location of every image as horizontal axis data, using the contrast of the target area of every image as longitudinal axis data, point It Hui Zhi not upper left, upper right, the defocusing curve of lower-left and lower right area.
5. test method according to claim 4, which is characterized in that described to be looked for from the defocusing curve of each target area The lens location of correspondence image when each target area has maximum-contrast out, and have maximum right according to each target area The lens location of correspondence image when than spending, determines the gradient of the camera module, comprising:
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-contrast When the lens location of correspondence image, right regions have in the lens location of correspondence image, lower left region when there is maximum-contrast The camera lens position of correspondence image when the lens location of correspondence image and lower right area have maximum-contrast when maximum-contrast It sets, four lens locations is obtained;
The difference in four lens locations between position maximum value and position minimum value is calculated, the difference being calculated is made For the gradient of the camera module.
6. a kind of device for testing inclination of camera module characterized by comprising
Acquiring unit, for obtaining the image for the preset quantity that the camera module shooting test pattern obtains;
Selection unit, 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, comprising: obtain every image target area in the presetted pixel and the presetted pixel diagonal adjacent picture Element brightness, calculate every image target area in the diagonal adjacent pixel of the presetted pixel and the presetted pixel it is bright The quadratic sum for spending difference, using the value being calculated as the contrast of the target area of correspondence image, the presetted pixel is to correspond to The shared maximum pixel of quantitative proportion in target area;
Drawing unit draws the defocusing curve of each target area, packet for the contrast according to the target area of every image Include: for lens location when using every image taking as horizontal axis data, the contrast with each target area of every image is vertical Number of axle evidence draws the defocusing curve of each target area;
Determination unit, when for finding out each target area from the defocusing curve of each target area with 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;
Judging unit, for judging the gradient of the camera module whether in inclination range, if described to take the photograph As head die combination lattice, otherwise, the camera module is unqualified.
7. test device according to claim 6, which is characterized in that the acquiring unit is specifically used for:
Control motor drives the camera lens in the camera module to move within the scope of preset step-length, and shoots the test chart Card, obtains the image of the preset quantity.
8. test device according to claim 7, which is characterized 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.
9. test device according to claim 8, which is characterized in that the drawing unit is specifically used for:
Using the lens location of every image as horizontal axis data, using the contrast of the target area of every image as longitudinal axis data, point It Hui Zhi not upper left, upper right, the defocusing curve of lower-left and lower right area.
10. test device according to claim 9, which is characterized 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 have maximum-contrast when domain is with maximum-contrast Set, lower left region have maximum-contrast when correspondence image lens location and lower right area have maximum-contrast when pair Four lens locations are obtained in the lens location for answering image;
Computation subunit will for calculating the difference in four lens locations between position maximum value and position minimum value Gradient of the difference being calculated as the camera module.
11. a kind of computer readable storage medium, is stored with computer program, wherein the computer program to calculate Machine executes the method as described in claim 1 to 5 any one.
12. a kind of test equipment, including memory and processor, the memory is stored with computer program, the computer When program is executed by the processor, so that the processor executes the method as described in claim 1 to 5 any one.
CN201711464322.1A 2017-12-28 2017-12-28 The gradient test method and device of camera module Active CN107920246B (en)

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 CN107920246A (en) 2018-04-17
CN107920246B true 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)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107920246B (en) * 2017-12-28 2019-10-25 Oppo广东移动通信有限公司 The gradient test method and device of camera module
CN111263136B (en) * 2018-11-30 2022-04-01 欧菲影像技术(广州)有限公司 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
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
CN113747146A (en) * 2021-08-16 2021-12-03 珠海市丘钛微电子科技有限公司 Test chart detection method, device, equipment and storage medium
CN113840136B (en) * 2021-09-03 2023-12-01 大连中科创达软件有限公司 Method and device for detecting camera installation precision

Citations (4)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN107920246A (en) 2018-04-17
WO2019128534A1 (en) 2019-07-04

Similar Documents

Publication Publication Date Title
CN107920246B (en) The gradient test method and device of camera module
CN111179358B (en) Calibration method, device, equipment and storage medium
CN104794704A (en) Calibration template and template detection method, device and terminal
US9239230B2 (en) Computing device and method for measuring widths of measured parts
CN109102026A (en) A kind of vehicle image detection method, apparatus and system
CN107067441B (en) Camera calibration method and device
CN108198189A (en) Acquisition methods, device, storage medium and the electronic equipment of picture clarity
US20120274763A1 (en) Device and method of focusing on points of objects
CN111818260B (en) Automatic focusing method and device and electronic equipment
CN109443697B (en) Optical center testing method, device, system and equipment
CN108780572A (en) The method and device of image rectification
US8102516B2 (en) Test method for compound-eye distance measuring apparatus, test apparatus, and chart used for the same
JP6906177B2 (en) Intersection detection device, camera calibration system, intersection detection method, camera calibration method, program and recording medium
CN112262411B (en) Image association method, system and device
CN113840136A (en) Method and device for detecting camera installation accuracy
Abbaspour Tehrani et al. A practical method for fully automatic intrinsic camera calibration using directionally encoded light
CN112734721A (en) Optical axis deflection angle detection method, device, equipment and medium
CN108495057B (en) Camera configuration method and device
TW201644271A (en) Testing system and testing method
CN117437602B (en) Dual-layer data calibration method, device, equipment and readable storage medium
CN109862348A (en) A kind of picture system parsing power test judgement method and device
CN108449551B (en) Camera configuration method and device
CN115442591B (en) Camera quality testing method, system, electronic device and storage medium
US11443521B2 (en) Method and device for evaluating images, operational assistance method and operating device
CN117830251A (en) Defect analysis method, defect analysis device and electronic equipment

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