CN110430426A - The test method and device of phase-detection auto-focusing performance - Google Patents

The test method and device of phase-detection auto-focusing performance Download PDF

Info

Publication number
CN110430426A
CN110430426A CN201910839809.6A CN201910839809A CN110430426A CN 110430426 A CN110430426 A CN 110430426A CN 201910839809 A CN201910839809 A CN 201910839809A CN 110430426 A CN110430426 A CN 110430426A
Authority
CN
China
Prior art keywords
test point
value
contrast test
focusing position
illumination value
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.)
Pending
Application number
CN201910839809.6A
Other languages
Chinese (zh)
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.)
Kunshan Q Technology Co Ltd
Original Assignee
Kunshan Q Technology Co 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 Kunshan Q Technology Co Ltd filed Critical Kunshan Q Technology Co Ltd
Priority to CN201910839809.6A priority Critical patent/CN110430426A/en
Publication of CN110430426A publication Critical patent/CN110430426A/en
Pending legal-status Critical Current

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

Abstract

This application discloses test method, device, storage medium and the electronic equipments of a kind of phase-detection auto-focusing performance, are related to properties of product the field of test technology.Wherein, the method determines contrast test point by the left and right sides of the target focusing position returned in camera module respectively, then modulation degree MTF corresponding to the contrast test point is compared with modulation degree mtf value corresponding to target focusing position, it obtains the positional relationship of the target focusing position Yu best focusing position, and then obtains the test result of the phase-detection auto-focusing performance of camera module.In this way, the phase-detection auto-focusing performance of camera module can be tested out, ensures that the outgoing of camera module, the quality problems of camera module is avoided to impact the usage experience of user and the public praise of product.

Description

The test method and device of phase-detection auto-focusing performance
Technical field
This application involves properties of product the field of test technology, in particular to a kind of phase-detection auto-focusing performance Test method, device, storage medium and electronic equipment.
Background technique
Currently, many camera modules require to be PDAF (Phase Detection Auto Focus, phase-detection from Dynamic focusing), its principle is that some masking pixels are reserved on photosensitive element, is specifically used to carry out phase-detection, then The deviant of focusing is determined by the distance between pixel and its variation etc., to realize accurate focusing.
But in the prior art there is no being analyzed for PDAF returned data, so as to cause part camera module Occur PDAF returned data (theoretical clear position) and practical best the problem of clearly position has big difference after factory.
Since the problem not only will affect the usage experience of user, or even it is also possible to reduce the public praise of product, therefore, for For those skilled in the art, the method that phase-detection auto-focusing performance can effectively be controlled by studying one kind has important meaning Justice.
Summary of the invention
The embodiment of the present application provides test method, device, storage medium and the electricity of a kind of phase-detection auto-focusing performance Sub- equipment, wherein the method is surveyed by the corresponding mtf value of the target focusing position for returning to camera module and multiple comparisons Mtf value corresponding to pilot is compared, to test out the phase-detection auto-focusing performance of camera module, it is ensured that take the photograph As the outgoing of head mould group.
To achieve the goals above, the application preferred embodiment the technical solution adopted is as follows:
In a first aspect, the embodiment of the present application provides a kind of test method of phase-detection auto-focusing performance, it is applied to electricity Sub- equipment, the electronic equipment includes camera module, and the camera module is configured with phase-detection automatic focusing function, The described method includes:
The focus data that camera module returns is obtained, the focus data includes target focusing position;
Contrast test point is determined in the left and right sides of the target focusing position according to default spacing;
Calculate the contrast test point and the corresponding modulation degree mtf value of the target focusing position;
It is compared, is obtained based on the contrast test point and the corresponding modulation degree mtf value of the target focusing position To the test result of the phase-detection auto-focusing performance of the camera module.
Optionally, in the embodiment of the present application, the basis presets spacing in the left and right sides of the target focusing position The step of determining contrast test point, comprising:
The first contrast test point is determined in the left side of the target focusing position according to preset first spacing, in the mesh The right side of mark focusing position determines the second contrast test point;
Third contrast test point is determined in the left side of the target focusing position according to preset second spacing, in the mesh The right side of mark focusing position determines the 4th contrast test point;Wherein, second spacing is greater than first spacing.
Optionally, in the embodiment of the present application, the calculating contrast test point and target focusing position difference The step of corresponding modulation degree mtf value, comprising:
Obtain the corresponding maximal illumination value of the contrast test point and minimal illumination value and the target focusing position pair The maximal illumination value and minimal illumination value answered;
It is calculated according to the corresponding maximal illumination value of the contrast test point and minimal illumination value, obtains the comparison and survey The corresponding modulation degree mtf value of pilot;
It is calculated according to the corresponding maximal illumination value of the target focusing position and minimal illumination value, obtains the target The corresponding modulation degree mtf value of focusing position.
Specifically, described according to the corresponding maximal illumination value of the contrast test point in a kind of embodiment of the application The step of being calculated with minimal illumination value, obtaining the contrast test point corresponding modulation degree mtf value, comprising:
By the difference of the first contrast test point corresponding maximal illumination value and minimal illumination value, divided by first comparison The sum of the corresponding maximal illumination value of test point and minimal illumination value obtain corresponding first mtf value of the first contrast test point;
By the difference of the second contrast test point corresponding maximal illumination value and minimal illumination value, divided by second comparison The sum of the corresponding maximal illumination value of test point and minimal illumination value obtain corresponding second mtf value of the second contrast test point;
By the difference of the third contrast test point corresponding maximal illumination value and minimal illumination value, compared divided by the third The sum of the corresponding maximal illumination value of test point and minimal illumination value obtain the corresponding third mtf value of the third contrast test point;
By the difference of the 4th contrast test point corresponding maximal illumination value and minimal illumination value, divided by the 4th comparison The sum of the corresponding maximal illumination value of test point and minimal illumination value obtain corresponding 4th mtf value of the 4th contrast test point.
It is described to be calculated according to the corresponding maximal illumination value of the target focusing position and minimal illumination value, it obtains described The step of target focusing position corresponding modulation degree mtf value, comprising:
By the difference of the target focusing position corresponding maximal illumination value and minimal illumination value, divided by target focusing position The sum of corresponding maximal illumination value and minimal illumination value are set, corresponding 5th mtf value of the target focusing position is obtained.
Optionally, in the embodiment of the present application, described to be distinguished based on the contrast test point and the target focusing position Corresponding modulation degree mtf value is compared, and obtains the test result of the phase-detection auto-focusing performance of the camera module The step of, comprising:
It is greater than first mtf value in the 5th mtf value, the 5th mtf value is greater than second mtf value, and institute It states the first mtf value and determines the camera when second mtf value is greater than four mtf value greater than the third mtf value The test result of the phase-detection auto-focusing performance of mould group is qualification, otherwise, it is determined that the phase-detection of the camera module The test result of auto-focusing performance is unqualified.
Second aspect, the embodiment of the present application provide a kind of test device of phase-detection auto-focusing performance, are applied to electricity Sub- equipment, the electronic equipment includes camera module, and the camera module is configured with phase-detection automatic focusing function, Described device includes:
Module is obtained, for obtaining the focus data of camera module return, the focus data includes target focusing position It sets;
Test point determining module, for determining comparison to be surveyed in the left and right sides of the target focusing position according to spacing is preset Pilot;
Computing module, for calculating the contrast test point and the corresponding modulation degree MTF of the target focusing position Value;
Judgment module, for being based on the contrast test point and the corresponding modulation degree MTF of the target focusing position Value is compared, and obtains the test result of the phase-detection auto-focusing performance of the camera module.
Optionally, in the embodiment of the present application, the test point determining module is specifically used for:
The first contrast test point is determined in the left side of the target focusing position according to preset first spacing, in the mesh The right side of mark focusing position determines the second contrast test point;
Third contrast test point is determined in the left side of the target focusing position according to preset second spacing, in the mesh The right side of mark focusing position determines the 4th contrast test point;Wherein, second spacing is greater than first spacing.
Optionally, in the embodiment of the present application, the computing module is specifically used for:
Obtain the corresponding maximal illumination value of the contrast test point and minimal illumination value and the target focusing position pair The maximal illumination value and minimal illumination value answered;
It is calculated according to the corresponding maximal illumination value of the contrast test point and minimal illumination value, obtains the comparison and survey The corresponding modulation degree mtf value of pilot;
It is calculated according to the corresponding maximal illumination value of the target focusing position and minimal illumination value, obtains the target The corresponding modulation degree mtf value of focusing position.
Specifically, in a kind of embodiment of the application, the computing module is specifically used for:
By the difference of the first contrast test point corresponding maximal illumination value and minimal illumination value, divided by first comparison The sum of the corresponding maximal illumination value of test point and minimal illumination value obtain corresponding first mtf value of the first contrast test point;
By the difference of the second contrast test point corresponding maximal illumination value and minimal illumination value, divided by second comparison The sum of the corresponding maximal illumination value of test point and minimal illumination value obtain corresponding second mtf value of the second contrast test point;
By the difference of the third contrast test point corresponding maximal illumination value and minimal illumination value, compared divided by the third The sum of the corresponding maximal illumination value of test point and minimal illumination value obtain the corresponding third mtf value of the third contrast test point;
By the difference of the 4th contrast test point corresponding maximal illumination value and minimal illumination value, divided by the 4th comparison The sum of the corresponding maximal illumination value of test point and minimal illumination value obtain corresponding 4th mtf value of the 4th contrast test point;
By the difference of the target focusing position corresponding maximal illumination value and minimal illumination value, divided by target focusing position The sum of corresponding maximal illumination value and minimal illumination value are set, corresponding 5th mtf value of the target focusing position is obtained.
Optionally, in the embodiment of the present application, the judgment module is specifically used for:
It is greater than first mtf value in the 5th mtf value, the 5th mtf value is greater than second mtf value, and institute It states the first mtf value and determines the camera when second mtf value is greater than four mtf value greater than the third mtf value The test result of the phase-detection auto-focusing performance of mould group is qualification, otherwise, it is determined that the phase-detection of the camera module The test result of auto-focusing performance is unqualified.
The third aspect, the embodiment of the present application also provide a kind of storage medium, and the storage medium includes computer program, institute Computer program is stated for realizing method described in any embodiment as above.
Fourth aspect, the embodiment of the present application also provide a kind of electronic equipment, and the electronic equipment includes memory and processing Device, the memory is for storing computer program, and the processor is for computer program described in load and execution, so that described Electronic equipment executes method described in any embodiment as above.
In terms of existing technologies, the test side of the phase-detection auto-focusing performance provided in the embodiment of the present application Method has at least the following technical effects or advantages:
The test method of phase-detection auto-focusing performance provided by the embodiments of the present application, by being returned in camera module Target focusing position the left and right sides respectively determine contrast test point, then by modulation degree corresponding to the contrast test point MTF is compared with modulation degree mtf value corresponding to target focusing position, obtains the target focusing position and best focusing position Positional relationship, and then obtain the test result of the phase-detection auto-focusing performance of camera module.In this way, can be with The phase-detection auto-focusing performance for testing out camera module, ensures that the outgoing of camera module, avoids taking the photograph As the quality problems of head mould group impact the usage experience of user and the public praise of product.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is some embodiments of the present application, for this For the those of ordinary skill of field, without creative efforts, it can also be obtained according to these attached drawings others Attached drawing.
Fig. 1 is the structural schematic diagram of electronic equipment provided by the embodiments of the present application;
Fig. 2 is the step process signal of the test method of phase-detection auto-focusing performance provided by the embodiments of the present application Figure;
Fig. 3 is the sub-step of step S20 in the test method of phase-detection auto-focusing performance provided by the embodiments of the present application Rapid flow diagram;
Fig. 4-Fig. 6 is target focusing position in the test method of phase-detection auto-focusing performance provided by the embodiments of the present application Set the relation schematic diagram with contrast test point;
Fig. 7 is the sub-step of step S30 in the test method of phase-detection auto-focusing performance provided by the embodiments of the present application Rapid flow diagram;
Fig. 8 is in the test method of phase-detection auto-focusing performance provided by the embodiments of the present application for calculating mtf value Predetermined pattern schematic diagram;
Fig. 9 is the module diagram of the test device of phase-detection auto-focusing performance provided by the embodiments of the present application.
Icon: 20- electronic equipment;21- memory;22- storage control;23- processor;70- phase-detection is automatically right The test device of burnt performance;701- obtains module;702- test point determining module;703- computing module;704- judgment module.
Specific embodiment
In order to better understand the above technical scheme, in conjunction with appended figures and specific embodiments to upper Technical solution is stated to be described in detail.In the absence of conflict, the feature in following embodiments and embodiment can be mutual Combination.
It should be noted that the orientation or positional relationship of the instructions such as term "left", "right" is base in the description of the present application In orientation or positional relationship shown in the drawings or the invention product using when the orientation or positional relationship usually put, only It is the application and simplified description for ease of description, rather than the device or element of indication or suggestion meaning must have specifically Orientation is constructed and operated in a specific orientation, therefore should not be understood as the limitation to the application.In addition, term " first ", " the Two " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
It referring to Fig.1, is the structural schematic diagram of electronic equipment provided by the embodiments of the present application, the electronic equipment 20 includes phase Test device 70, memory 21, storage control 22 and the processor 23 of position detection auto-focusing performance.
The memory 21, storage control 22 and each element of processor 23 directly or indirectly electrically connect between each other It connects, to realize the transmission or interaction of data.For example, these elements can pass through one or more communication bus or signal between each other Line, which is realized, to be electrically connected.The test device 70 of the phase-detection auto-focusing performance may include at least one can with software or The form of firmware (firmware) is stored in the memory 21 or is solidificated in the operating system of the electronic equipment 20 Software function module in (operating system, OS).The processor 23 stores in the memory 21 for executing Executable module, such as software function module and meter included by the test device 70 of the phase-detection auto-focusing performance Calculation machine program etc., so that the electronic equipment 20 realizes the test method of phase-detection auto-focusing performance as described below.
It is the step process of the test method of phase-detection auto-focusing performance provided by the embodiments of the present application referring to Fig. 2 Schematic diagram, this method can be applied to electronic equipment 20 shown in FIG. 1, to provide phase as described below for the electronic equipment 20 The test function of position detection auto-focusing performance.
It is carried out below with reference to test method of Fig. 2-Fig. 8 to phase-detection auto-focusing performance provided by the embodiments of the present application It is described in detail.
Referring to Fig. 2, in the embodiment of the present application, which comprises
Step S10 obtains the focus data that camera module returns, and the focus data includes target focusing position.
Step S20 determines contrast test point in the left and right sides of the target focusing position according to default spacing.
Step S30 calculates the contrast test point and the corresponding modulation degree mtf value of the target focusing position.
Step S40 is carried out based on the contrast test point and the corresponding modulation degree mtf value of the target focusing position Compare, obtains the test result of the phase-detection auto-focusing performance of the camera module.
In step slo, the target focusing position which returns is the place by being arranged in camera module The clear position of theory that reason chip is calculated, not due to the relationship between the target focusing position and practical best focusing position Know (may be best focusing position, be likely located near best focusing position, it is also possible to differed with best focusing position compared with Far), when the target focusing position and best focusing position gap are excessive, the phase-detection that will lead to camera module is automatically right Burnt function is invalid, and then influences the usage experience of user.Therefore, in the embodiment of the present application through the above steps S20 determine it is multiple Contrast test point is verified to verify the relationship between the target focusing position and practical best focusing position, so that it is guaranteed that The phase-detection auto-focusing performance of camera module.
Specifically, in the embodiment of the present application, above-mentioned steps S20 may include:
Sub-step S201 determines the first contrast test point in the left side of target focusing position according to preset first spacing, The second contrast test point is determined on the right side of target focusing position.
Sub-step S202 determines third contrast test point in the left side of target focusing position according to preset second spacing, The 4th contrast test point is determined on the right side of target focusing position.
In a kind of embodiment of the application, the stroke range of camera lens can be defined as 1~1000.It needs to illustrate It is that 1~1000 herein should be understood as a reference quantity, for example, when the stroke total distance of camera lens is 2mm, every 100 reference quantity Corresponding camera lens moving distance is 0.2mm.
Specifically, in a kind of embodiment of the application, which is greater than the first spacing, such as first spacing can To be set as 50, the second spacing can be set to 80.It should be appreciated that first spacing and the second spacing are contrast test point and institute The spacing reference quantity between target focusing position is stated, also, in the embodiment of the present application, first spacing and the second spacing institute are right The spacing reference quantity answered may be, but not limited to, above-mentioned 50 and 80.
The first contrast test point, the second contrast test point, third contrast test point, the 4th contrast test point and target pair The positional relationship of burnt position is as shown in Figure 4-Figure 6.
Further, after determining above-mentioned contrast test point, modulation corresponding to above-mentioned contrast test point is calculated separately Modulation degree mtf value corresponding to mtf value and target focusing position is spent, can judge the target focusing that camera module returns Positional relationship between position and best focusing position.
Specifically, Fig. 7 is please referred to, in the embodiment of the present application, above-mentioned steps S30 may include:
Sub-step S301 obtains the corresponding maximal illumination value of contrast test point and minimal illumination value and target focusing position Set corresponding maximal illumination value and minimal illumination value.
Sub-step S302 is calculated according to the corresponding maximal illumination value of the contrast test point and minimal illumination value, is obtained To the corresponding modulation degree mtf value of the contrast test point.
Sub-step S303 is calculated according to the corresponding maximal illumination value of the target focusing position and minimal illumination value, Obtain the corresponding modulation degree mtf value of the target focusing position.
MTF (Modulation Transfer Function, modulation transfer function) be present analysis camera lens solution picture than More scientific method, in the present embodiment, which is the parameter for measuring camera imaging quality, it is therefore possible to use Compared with mtf value corresponding to the corresponding mtf value of each contrast test point and the target focusing position that camera module returns, thus Judge the phase-detection auto-focusing performance of camera module.
More specifically, in the embodiment of the present application, above-mentioned contrast test point and the corresponding maximal illumination of target focusing position Value and minimal illumination value can be moved to corresponding position by controlling camera lens, the figure then acquired according to the camera lens in corresponding position As obtaining.Specifically, i.e. control camera lens is moved to the contrast test point and target focusing position to predetermined pattern (as schemed respectively Shown in 8) Image Acquisition is carried out, then according to the maximal illumination value and minimum in the calculated for pixel values image of the image collected Brightness value.
Further, target focusing position and the corresponding maximal illumination value of each contrast test point and minimum are being obtained It after brightness value, can be calculated according to the maximal illumination value and minimal illumination value, obtain contrast test point and target focusing The corresponding modulation degree mtf value in position.
In the embodiment of the present application, the calculating process of the modulation degree mtf value can indicate are as follows:
MTF=(maximal illumination value-minimal illumination value)/(maximal illumination value+minimal illumination value)
Specifically, the difference of the first contrast test point corresponding maximal illumination value and minimal illumination value is shone with the maximum The sum of angle value and minimal illumination value are divided by, and corresponding first mtf value of the first contrast test point can be obtained;By the second contrast test The difference of point corresponding maximal illumination value and minimal illumination value, is divided by with the sum of the maximal illumination value and minimal illumination value, can obtain To corresponding second mtf value of the second contrast test point.In the present embodiment, the corresponding third mtf value of third contrast test point, the 4th The calculating process of corresponding 4th mtf value of contrast test point and corresponding 5th mtf value of target focusing position in the same way, Therefore, it is no longer repeated herein.
Further, above-mentioned first mtf value, the second mtf value, third mtf value, the 4th mtf value and the 5th MTF are being obtained It after value, is compared, the test result that the phase-detection auto-focusing performance of camera module can be obtained (images The positional relationship of target focusing position and best focusing position that head mould group returns).
Specifically, referring once again to Fig. 4-Fig. 6, in the embodiment of the present application, between camera lens stroke and modulation degree mtf value Relationship is substantially in normal distribution.But it is influenced by factors such as hardware configuration and lens driving motors, in the upper of the relation curve It rises along it is possible that sub-fraction last transition, sub-fraction first transition may also occurs in the failing edge of relation curve, Therefore, in the embodiment of the present application in order to ensure the accuracy of test result, using four contrast test points come respectively with target pair The mtf value of burnt position is compared.
As shown in Figure 4 and Figure 5, in the embodiment of the present application, if the 5th mtf value corresponding to target focusing position is greater than the Corresponding first mtf value of one comparison test point and corresponding second mtf value of the second contrast test point, then it represents that target focusing Position is near crest location or wave crest.But it can not determine that the wave crest is wave crest corresponding to best focusing position at this time Or wave crest caused by abnormal section (i.e. the first transition of the last transition of rising edge appearance and failing edge appearance), therefore, also It needs for corresponding first mtf value of the first contrast test point third mtf value corresponding with third contrast test point to be compared, Corresponding second mtf value of second contrast test point the 4th mtf value corresponding with the 4th contrast test point is compared, if this One mtf value is greater than third mtf value, and the second mtf value is greater than the 4th mtf value, then can determine that the target focusing position is located at most Near good focusing position or the best focusing position, at this point, the test result that phase-detection auto-focusing performance can be obtained is It is qualified.
Similarly, Fig. 6 is please referred to, if corresponding 5th mtf value of target focusing position is corresponding greater than the second contrast test point The second mtf value, but the first mtf value corresponding less than the first contrast test point, then it represents that the target pair that camera module returns Burnt position differs larger with best focusing position, and the test result of available phase-detection auto-focusing performance is not conform at this time Lattice.
It should be appreciated that in the embodiment of the present application, needs to meet the following conditions simultaneously just and can determine that the phase of camera module Position detection auto-focusing performance is qualified: the 5th the first mtf value of mtf value > of A.;B. the 5th the second mtf value of mtf value >;C. first Mtf value > third mtf value;D. the 4th mtf value of the second mtf value >.When there is any one condition to be unsatisfactory in conditions above, equal table Show that the phase-detection auto-focusing performance of camera module is unqualified.
In conclusion the test method of the phase-detection auto-focusing performance provided in the embodiment of the present application is relative to existing For technology, at least have the following technical effects or advantages:
The test method of phase-detection auto-focusing performance provided by the embodiments of the present application, by being returned in camera module Target focusing position the left and right sides respectively determine contrast test point, then by modulation degree corresponding to the contrast test point MTF is compared with modulation degree mtf value corresponding to target focusing position, obtains the target focusing position and best focusing position Positional relationship, and then obtain the test result of the phase-detection auto-focusing performance of camera module.In this way, can be with The phase-detection auto-focusing performance for testing out camera module, ensures that the outgoing of camera module, avoids taking the photograph As the quality problems of head mould group impact the usage experience of user and the public praise of product.
Referring to Fig. 9, the embodiment of the present application also provides a kind of test device 70 of phase-detection auto-focusing performance, the device It can be applied to electronic equipment 20 shown in FIG. 1, so that it is automatically right to provide phase-detection as described above for the electronic equipment 20 The test function of burnt performance.
In the embodiment of the present application, which includes obtaining 701. test point determining module 702 of module, computing module 703 And judgment module 704.Wherein, which is used to obtain the focus data of camera module return, the focus data Including target focusing position;Test point determining module 702 is used for according to default spacing in the left and right of the target focusing position two Side determines contrast test point;Computing module 703 is used to calculate the contrast test point and the target focusing position respectively corresponds Modulation degree mtf value;Judgment module 704, for corresponding based on the contrast test point and the target focusing position Modulation degree mtf value is compared, and obtains the test result of the phase-detection auto-focusing performance of the camera module.
Optionally, in a kind of embodiment of the application, which is specifically used for:
The first contrast test point is determined in the left side of the target focusing position according to preset first spacing, in the mesh The right side of mark focusing position determines the second contrast test point;And according to preset second spacing in the target focusing position Left side determines third contrast test point, determines the 4th contrast test point on the right side of the target focusing position;Wherein, described Two spacing are greater than first spacing.
Optionally, in a kind of embodiment of the application, the computing module 703 is specifically used for:
Obtain the corresponding maximal illumination value of the contrast test point and minimal illumination value and the target focusing position pair The maximal illumination value and minimal illumination value answered;Then according to the corresponding maximal illumination value of the contrast test point and minimal illumination value It is calculated, obtains the corresponding modulation degree mtf value of the contrast test point, according to the corresponding maximum photograph of the target focusing position Angle value and minimal illumination value are calculated, and the corresponding modulation degree mtf value of the target focusing position is obtained.
Specifically, in a kind of embodiment of the application, the computing module 703 is specifically used for:
By the difference of the first contrast test point corresponding maximal illumination value and minimal illumination value, divided by first comparison The sum of the corresponding maximal illumination value of test point and minimal illumination value obtain corresponding first mtf value of the first contrast test point; By the difference of the second contrast test point corresponding maximal illumination value and minimal illumination value, divided by the second contrast test point pair The sum of maximal illumination value and minimal illumination value for answering obtain corresponding second mtf value of the second contrast test point;By described The difference of 3 contrast test points corresponding maximal illumination value and minimal illumination value, divided by the corresponding maximum of the third contrast test point The sum of brightness value and minimal illumination value obtain the corresponding third mtf value of the third contrast test point;4th comparison is surveyed The difference of pilot corresponding maximal illumination value and minimal illumination value, divided by the corresponding maximal illumination value of the 4th contrast test point with The sum of minimal illumination value obtains corresponding 4th mtf value of the 4th contrast test point;The target focusing position is corresponding The difference of maximal illumination value and minimal illumination value, divided by the corresponding maximal illumination value of the target focusing position and minimal illumination value it With obtain corresponding 5th mtf value of the target focusing position.
Optionally, in a kind of embodiment of the application, the judgment module 704 is specifically used for:
It is greater than first mtf value in the 5th mtf value, the 5th mtf value is greater than second mtf value, and institute It states the first mtf value and determines the camera when second mtf value is greater than four mtf value greater than the third mtf value The test result of the phase-detection auto-focusing performance of mould group is qualification, otherwise, it is determined that the phase-detection of the camera module The test result of auto-focusing performance is unqualified.
The test device 70 for the phase-detection auto-focusing performance introduced by the present embodiment is realizes that the application is implemented Device used by the test method of phase-detection auto-focusing performance in example, so based on described in the embodiment of the present application The test method of phase-detection auto-focusing performance, those skilled in the art can understand the phase-detection of the present embodiment certainly The specific embodiment and its various change form of the test device 70 of dynamic focusability, so herein for the phase-detection How the test device 70 of auto-focusing performance realizes that the method in the embodiment of the present application is no longer discussed in detail.As long as this field institute Belong to technical staff implement in the embodiment of the present application phase-detection used by the test method of phase-detection auto-focusing performance from The test device 70 of dynamic focusability, belongs to the range to be protected of the application.
In addition, the embodiment of the present application also provides a kind of storage medium, it is stored with computer program on the storage medium, the meter Calculation machine program executes each step in the test method of phase-detection auto-focusing performance as described above when being run by processor Suddenly.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Embodiment described above, the only specific embodiment of the application, to illustrate the technical solution of the application, rather than It is limited, the protection scope of the application is not limited thereto, although having carried out with reference to the foregoing embodiments to the application detailed Illustrate, those skilled in the art should understand that: anyone skilled in the art discloses in the application In technical scope, it can still modify to technical solution documented by previous embodiment or variation can be readily occurred in, or Person's equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make corresponding technical solution Essence is detached from the spirit and scope of the embodiment of the present application technical solution, should all cover within the scope of protection of this application.Therefore, The protection scope of the application should be based on the protection scope of the described claims.

Claims (10)

1. a kind of test method of phase-detection auto-focusing performance, which is characterized in that be applied to electronic equipment, the electronics is set Standby includes camera module, and the camera module is configured with phase-detection automatic focusing function, which comprises
The focus data that camera module returns is obtained, the focus data includes target focusing position;
Contrast test point is determined in the left and right sides of the target focusing position according to default spacing;
Calculate the contrast test point and the corresponding modulation degree mtf value of the target focusing position;
It is compared based on the contrast test point and the corresponding modulation degree mtf value of the target focusing position, obtains institute State the test result of the phase-detection auto-focusing performance of camera module.
2. the method as described in claim 1, which is characterized in that the basis presets spacing on a left side for the target focusing position Right two sides determine the step of contrast test point, comprising:
The first contrast test point is determined in the left side of the target focusing position according to preset first spacing, in the target pair The right side of burnt position determines the second contrast test point;
Third contrast test point is determined in the left side of the target focusing position according to preset second spacing, in the target pair The right side of burnt position determines the 4th contrast test point;Wherein, second spacing is greater than first spacing.
3. method according to claim 2, which is characterized in that the calculating contrast test point and target focusing position The step of setting corresponding modulation degree mtf value, comprising:
It obtains the corresponding maximal illumination value of the contrast test point and minimal illumination value and the target focusing position is corresponding Maximal illumination value and minimal illumination value;
It is calculated according to the corresponding maximal illumination value of the contrast test point and minimal illumination value, obtains the contrast test point Corresponding modulation degree mtf value;
It is calculated according to the corresponding maximal illumination value of the target focusing position and minimal illumination value, obtains the target focusing The corresponding modulation degree mtf value in position.
4. method as claimed in claim 3, which is characterized in that described according to the corresponding maximal illumination value of the contrast test point The step of being calculated with minimal illumination value, obtaining the contrast test point corresponding modulation degree mtf value, comprising:
By the difference of the first contrast test point corresponding maximal illumination value and minimal illumination value, divided by first contrast test The sum of the corresponding maximal illumination value of point and minimal illumination value, obtain corresponding first mtf value of the first contrast test point;
By the difference of the second contrast test point corresponding maximal illumination value and minimal illumination value, divided by second contrast test The sum of the corresponding maximal illumination value of point and minimal illumination value, obtain corresponding second mtf value of the second contrast test point;
By the difference of the third contrast test point corresponding maximal illumination value and minimal illumination value, divided by the third contrast test The sum of the corresponding maximal illumination value of point and minimal illumination value, obtain the corresponding third mtf value of the third contrast test point;
By the difference of the 4th contrast test point corresponding maximal illumination value and minimal illumination value, divided by the 4th contrast test The sum of the corresponding maximal illumination value of point and minimal illumination value, obtain corresponding 4th mtf value of the 4th contrast test point.
5. method as claimed in claim 4, which is characterized in that described according to the corresponding maximal illumination of the target focusing position The step of value and minimal illumination value are calculated, and the target focusing position corresponding modulation degree mtf value is obtained, comprising:
By the difference of the target focusing position corresponding maximal illumination value and minimal illumination value, divided by the target focusing position pair The sum of maximal illumination value and minimal illumination value for answering obtain corresponding 5th mtf value of the target focusing position.
6. method as claimed in claim 5, which is characterized in that described to be based on the contrast test point and target focusing position It sets corresponding modulation degree mtf value to be compared, obtains the survey of the phase-detection auto-focusing performance of the camera module The step of test result, comprising:
It is greater than first mtf value in the 5th mtf value, the 5th mtf value is greater than second mtf value, and described the One mtf value is greater than the third mtf value and determines the camera module when second mtf value is greater than four mtf value Phase-detection auto-focusing performance test result be qualification, otherwise, it is determined that the phase-detection of the camera module is automatic The test result of focusability is unqualified.
7. a kind of test device of phase-detection auto-focusing performance, which is characterized in that be applied to electronic equipment, the electronics is set Standby includes camera module, and the camera module is configured with phase-detection automatic focusing function, and described device includes:
Module is obtained, for obtaining the focus data of camera module return, the focus data includes target focusing position;
Test point determining module, for determining contrast test in the left and right sides of the target focusing position according to default spacing Point;
Computing module, for calculating the contrast test point and the corresponding modulation degree mtf value of the target focusing position;
Judgment module, for based on the contrast test point and the corresponding modulation degree mtf value of the target focusing position into Row compares, and obtains the test result of the phase-detection auto-focusing performance of the camera module.
8. device as claimed in claim 7, which is characterized in that the test point determining module is specifically used for:
The first contrast test point is determined in the left side of the target focusing position according to preset first spacing, in the target pair The right side of burnt position determines the second contrast test point;
Third contrast test point is determined in the left side of the target focusing position according to preset second spacing, in the target pair The right side of burnt position determines the 4th contrast test point;Wherein, second spacing is greater than first spacing.
9. a kind of storage medium, which is characterized in that the storage medium includes computer program, and the computer program is for real Now such as method of any of claims 1-6.
10. a kind of electronic equipment, which is characterized in that the electronic equipment includes memory and processor, and the memory is used for Computer program is stored, the processor is for computer program described in load and execution, so that the electronic equipment is executed as weighed Benefit requires method described in any one of 1-6.
CN201910839809.6A 2019-09-06 2019-09-06 The test method and device of phase-detection auto-focusing performance Pending CN110430426A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910839809.6A CN110430426A (en) 2019-09-06 2019-09-06 The test method and device of phase-detection auto-focusing performance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910839809.6A CN110430426A (en) 2019-09-06 2019-09-06 The test method and device of phase-detection auto-focusing performance

Publications (1)

Publication Number Publication Date
CN110430426A true CN110430426A (en) 2019-11-08

Family

ID=68417662

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910839809.6A Pending CN110430426A (en) 2019-09-06 2019-09-06 The test method and device of phase-detection auto-focusing performance

Country Status (1)

Country Link
CN (1) CN110430426A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111220362A (en) * 2020-01-19 2020-06-02 Oppo广东移动通信有限公司 Test method and test system
CN112312028A (en) * 2020-11-20 2021-02-02 歌尔光学科技有限公司 Camera module focusing method and device and computer readable storage medium
CN113727093A (en) * 2021-08-23 2021-11-30 重庆市天实精工科技有限公司 Method for burning DAC (digital-to-analog converter) by USB (universal serial bus) camera
CN113776782A (en) * 2021-08-12 2021-12-10 惠州Tcl云创科技有限公司 MTF test method, test equipment and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203365910U (en) * 2013-07-31 2013-12-25 南昌欧菲光电技术有限公司 Camera module auto-focus function test system
CN106101561A (en) * 2016-08-09 2016-11-09 青岛海信移动通信技术股份有限公司 Camera focusing detection method and device
CN106686373A (en) * 2015-11-10 2017-05-17 群光电子股份有限公司 Automatic focusing test system and method
CN108141534A (en) * 2015-10-05 2018-06-08 谷歌有限责任公司 Use the auto focusing method and equipment of modulation transfer function curve
CN108243305A (en) * 2016-12-26 2018-07-03 聚晶半导体股份有限公司 Image capturing device and the bearing calibration of its phase focusing
CN109696788A (en) * 2019-01-08 2019-04-30 武汉精立电子技术有限公司 A kind of fast automatic focusing method based on display panel

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203365910U (en) * 2013-07-31 2013-12-25 南昌欧菲光电技术有限公司 Camera module auto-focus function test system
CN108141534A (en) * 2015-10-05 2018-06-08 谷歌有限责任公司 Use the auto focusing method and equipment of modulation transfer function curve
CN106686373A (en) * 2015-11-10 2017-05-17 群光电子股份有限公司 Automatic focusing test system and method
CN106101561A (en) * 2016-08-09 2016-11-09 青岛海信移动通信技术股份有限公司 Camera focusing detection method and device
CN108243305A (en) * 2016-12-26 2018-07-03 聚晶半导体股份有限公司 Image capturing device and the bearing calibration of its phase focusing
CN109696788A (en) * 2019-01-08 2019-04-30 武汉精立电子技术有限公司 A kind of fast automatic focusing method based on display panel

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111220362A (en) * 2020-01-19 2020-06-02 Oppo广东移动通信有限公司 Test method and test system
CN112312028A (en) * 2020-11-20 2021-02-02 歌尔光学科技有限公司 Camera module focusing method and device and computer readable storage medium
CN113776782A (en) * 2021-08-12 2021-12-10 惠州Tcl云创科技有限公司 MTF test method, test equipment and computer readable storage medium
CN113727093A (en) * 2021-08-23 2021-11-30 重庆市天实精工科技有限公司 Method for burning DAC (digital-to-analog converter) by USB (universal serial bus) camera

Similar Documents

Publication Publication Date Title
CN110430426A (en) The test method and device of phase-detection auto-focusing performance
EP3396942B1 (en) Image sensor, imaging method and electronic device
CN110244444B (en) Microscope focusing method and device, terminal equipment and storage medium
CN108805938B (en) Detection method of optical anti-shake module, mobile terminal and storage medium
CN109788277B (en) Method and device for compensating optical axis deviation of anti-shake movement and storage medium
CN107920246B (en) The gradient test method and device of camera module
CN103179322B (en) A kind of image color correction method and electronic equipment
CN110177272A (en) Stabilization test method, device, storage medium and the intelligent terminal of camera
CN103119494A (en) Imaging device
CN108198189A (en) Acquisition methods, device, storage medium and the electronic equipment of picture clarity
CN104376323A (en) Object distance determining method and device
CN111818260B (en) Automatic focusing method and device and electronic equipment
CN113418091B (en) Method, device and equipment for installing camera shooting assembly
CN105847690A (en) Method for switching photographing modes and camera
US20130027405A1 (en) Image processing apparatus and image processing method
CN104853107A (en) Information processing method and electronic device
US20210156677A1 (en) Three-dimensional measurement apparatus and method
CN115841520A (en) Camera internal reference calibration method and device, electronic equipment and medium
CN113452991B (en) Lens focusing state determining method, device, equipment and storage medium
KR102639638B1 (en) Flicker measurement device, flicker measurement method, flicker measurement program, flicker evaluation support device, flicker evaluation support method and flicker evaluation support program
CN113538590A (en) Zoom camera calibration method and device, terminal equipment and storage medium
US20150117770A1 (en) Image processing method, electronic device, electronic device readable storage medium and program applied in electronic device
CN106027889A (en) Control method, control device and electronic device
CN108234900B (en) Camera configuration method and device
CN111641782B (en) Control method and device for image pickup apparatus, storage medium, and electronic device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191108

RJ01 Rejection of invention patent application after publication