CN113776782A - MTF test method, test equipment and computer readable storage medium - Google Patents

MTF test method, test equipment and computer readable storage medium Download PDF

Info

Publication number
CN113776782A
CN113776782A CN202110922706.3A CN202110922706A CN113776782A CN 113776782 A CN113776782 A CN 113776782A CN 202110922706 A CN202110922706 A CN 202110922706A CN 113776782 A CN113776782 A CN 113776782A
Authority
CN
China
Prior art keywords
mtf
value
test
attribute value
attribute
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
CN202110922706.3A
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.)
Huizhou TCL Cloud Internet Corp Technology Co Ltd
Original Assignee
Huizhou TCL Cloud Internet Corp 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 Huizhou TCL Cloud Internet Corp Technology Co Ltd filed Critical Huizhou TCL Cloud Internet Corp Technology Co Ltd
Priority to CN202110922706.3A priority Critical patent/CN113776782A/en
Publication of CN113776782A publication Critical patent/CN113776782A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M11/00Testing of optical apparatus; Testing structures by optical methods not otherwise provided for
    • G01M11/02Testing optical properties
    • G01M11/0292Testing optical properties of objectives by measuring the optical modulation transfer function

Abstract

The invention discloses an MTF test method, test equipment and a computer readable storage medium, wherein the MTF test method comprises the following steps: obtaining an MTF attribute value, and if the MTF attribute value is a first value, performing a first MTF test; and if the first MTF test is passed and the MTF attribute value is still the first value, performing a second MTF test. The invention can effectively avoid the influence of subjective test on MTF test by confirming the MTF attribute value and selecting to carry out MTF test according to the code logic, thereby reducing the test times and the rework frequency of factory software.

Description

MTF test method, test equipment and computer readable storage medium
Technical Field
The invention relates to the technical field of product testing, in particular to an MTF testing method, testing equipment and a computer readable storage medium.
Background
The shot is one of the devices with the highest investment among photographers and photographers, and is also the most important factor for determining the shooting quality. Therefore, the quality of the lens has been greatly regarded as important. The imaging quality of the lens is the most concerned and most debated topic of manufacturers, and although various testing methods for the imaging quality of the lens are various, the testing conditions are different, so that the methods cannot reflect the real quality of the lens very accurately. Until the MTF testing technology appears later, the real quality of the lens can be reflected more accurately.
The MTF (Modulation Transfer Function) is a Function of a Modulation degree varying with a spatial frequency, and is referred to as a Modulation Transfer Function. The modulation transfer function was originally intended to illustrate the capabilities of the lens. MTF can be simply understood as a general term for resolution (the ability to restore details of a picture) and contrast (a measure of the different levels of brightness between the brightest white and darkest black of bright and dark regions in an image). MTF is often used in individual lenses to describe the MTF curve of the lens, indicating the capabilities of the lens. These curves were derived by testing in an ideal test environment to minimize the attenuation of the sharpness of the lens by other systems, but the MTF may also cover the sharpness evaluation of the entire imaging system.
The MTF test is a method for testing the comprehensive performance of the imaging contrast and resolution of a camera, can judge the capability of a lens for restoring the contrast, is one of modes for describing the performance of the lens, and is mainly used for evaluating the effect which can be achieved by a sensor chip and judging the contrast and resolution characteristics of the lens.
MTF testing is currently the most accurate and scientific lens testing method. Its interpretation by swedish authority 'photography' magazine is: the MTF test uses a black and white line mark plate with gradual transition, and projection is carried out through a lens. The result of the measurement is a contrast reduction. If the contrast of the resulting image is identical to that of the test target, the MTF value is 100%. This is the optimal lens in the ideal, and does not exist in practice; if the contrast is half, the MTF value is 50%. A value of 0 indicates complete loss of contrast and the black and white lines are reduced to a single gray color; it is excellent when the value exceeds 80% (under 20 lp/mm); whereas values below 30% provide poor image quality even under 4X6 inch print.
The MTF test is divided into radial and tangential directions, and if the difference between the radial and tangential directions is large, the lens suffers from more serious astigmatism. Higher spatial frequency values (i.e., lp/mm values, which can be understood as resolution) generally have lower MTF values than 20lp/mm, such as 30 lp/mm.
However, in practice, when performing MTF testing, a research and development staff first performs research and development debugging to obtain a subjective effect, and after the subjective effect debugging, the result of MTF testing on a production line is often affected, so that the number of times of testing is increased, and even the problems of frequent reworking of production line software and production line stoppage are caused.
Thus, the prior art has yet to be improved and developed.
Disclosure of Invention
In view of the above disadvantages of the prior art, an object of the present invention is to provide an MTF testing method, testing equipment, and a computer-readable storage medium, which are used to solve the problems in the prior art that the result of the MTF test is affected by subjective effect testing, so that the testing times are increased, and even the production line software is frequently reworked and the production line is stopped.
In order to achieve the purpose, the invention adopts the following technical scheme:
a MTF testing method, comprising the steps of:
obtaining an MTF attribute value, and if the MTF attribute value is a first value, performing a first MTF test;
and if the first MTF test is passed and the MTF attribute value is still the first value, performing a second MTF test.
Optionally, the MTF testing method, wherein the obtaining of the MTF attribute value and performing a first MTF test if the MTF attribute value is a first value specifically includes:
acquiring the MTF attribute value, and judging whether the MTF attribute value is a first numerical value or not;
and if the MTF attribute value is a first value, executing a first MTF test and detecting whether the first MTF test passes or not.
Optionally, the MTF testing method, wherein the determining whether the MTF attribute value is a first value further includes:
and if the MTF attribute value is not the first numerical value, assigning the MTF attribute value as the first numerical value, restarting, and continuously confirming whether the MTF attribute value is the first numerical value after restarting.
Optionally, the MTF testing method, wherein if the first MTF test passes and it is determined that the MTF attribute value is still the first value, performing a second MTF test, specifically includes:
if the first MTF test is detected to pass, acquiring the MTF attribute value again, and judging whether the MTF attribute value is still the first value or not;
and if the MTF attribute value is still the first value, executing a second MTF test.
Optionally, the MTF testing method, wherein the determining whether the MTF attribute value is still the first value further includes:
and if the MTF attribute value is not the first numerical value, assigning the MTF attribute value as the first numerical value, restarting, and continuously confirming whether the MTF attribute value is the first numerical value after restarting.
Optionally, the MTF testing method, wherein if the MTF attribute value is still the first value, performing a second MTF test, and then further comprising:
and if the second MTF passes the test, assigning the MTF attribute value from the first value to a second value, and restarting.
Optionally, in the MTF testing method, the first MTF test is a miniature camera MTF test, and the second MTF test is a front camera MTF test.
Optionally, the MTF testing method, wherein the first value is 1 and the second value is 0.
In addition, to achieve the above object, the present invention also provides a test apparatus, wherein the test apparatus includes: the MTF testing pass rate program is stored on the memory and can run on the processor, and when the MTF testing pass rate program is executed by the processor, the steps of the MTF testing method are realized.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium, wherein the computer readable storage medium stores an MTF test program, and when the MTF test program is executed by a processor, the steps of the MTF test method as described above are implemented.
Compared with the prior art, the MTF testing method, the testing equipment and the computer readable storage medium provided by the invention have the advantages that: obtaining an MTF attribute value, and if the MTF attribute value is a first value, performing a first MTF test; and if the first MTF test is passed and the MTF attribute value is still the first value, performing a second MTF test. The invention can effectively avoid the influence of subjective test on MTF test by confirming the MTF attribute value and selecting to carry out MTF test according to the code logic, thereby reducing the test times and the rework frequency of factory software.
Drawings
FIG. 1 is a simplified flow chart of a preferred embodiment of the MTF testing method of the present invention;
FIG. 2 is a flowchart of steps S10 and S122 according to the MTF testing method of the present invention;
FIG. 3 is a flowchart of steps S20 and S222 according to the MTF testing method of the present invention;
FIG. 4 is a flowchart of a MTF testing method according to a preferred embodiment of the present invention;
FIG. 5 is a flow chart of code in a preferred embodiment of the test equipment of the present invention;
FIG. 6 is a schematic diagram of an operating environment of a preferred embodiment of the MTF testing method of the present invention;
FIG. 7 is a schematic block diagram of a MTF testing apparatus according to a preferred embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The design scheme of the MTF test method is described below by specific exemplary embodiments, and it should be noted that the following embodiments are only used for explaining the technical scheme of the invention, and are not specifically limited:
referring to fig. 1, the MTF testing method provided by the present invention includes the following steps:
step S10, obtaining an MTF attribute value, and if the MTF attribute value is a first value, performing a first MTF test.
Specifically, after performing the MTF test, firstly, an MTF test script (the test script refers to a series of instructions of a specific test, and these instructions can be executed by an automated test tool) acquires the MTF attribute value (in this embodiment, the MTF attribute value is a persistence attribute value of the MTF), then determines whether the MTF attribute value is a first value (in this embodiment, the MTF attribute value is 1), and if the MTF attribute value is the first value, performs the first MTF test (in this embodiment, the first MTF test is the micro camera MTF test).
The MTF testing method is applied to testing equipment for testing the performance of the camera and is used for testing the comprehensive performance of the imaging contrast and the resolution of the camera. After the MTF test is started, the first MTF test is carried out after the MTF attribute value is judged to be the first value through the MTF test script, and therefore the MTF test can be effectively carried out.
The step S10 is preceded by: assigning the MTF attribute value as a first numerical value, and restarting;
after restarting, acquiring the MTF attribute value, and if the MTF attribute value is the first numerical value, analyzing a first parameter;
and if the MTF attribute value is not the first value, analyzing a second parameter.
Specifically, before entering the MTF test, the previous test procedure assigns the MTF attribute value to the first parameter through an MTF test script, and restarts the MTF test; after the restart, the following steps are executed by the code: acquiring the MTF attribute value, and if the MTF attribute value is the first numerical value, analyzing a first parameter; if the MTF attribute value is not the first value (in this embodiment, the first value is 0 or null), analyzing a second parameter; namely, after the restart, the code for confirming the MTF attribute value is executed first, and the restart is used as a trigger condition for executing the step of confirming the MTF attribute value through the code. The first parameter is an MTF parameter which is a parameter required to be used when the MTF test is carried out; the second parameter is a user parameter (user parameter: here, the effect parameter used by the camera is an effect parameter called by the user when using the mobile phone camera), and is a parameter required to be used when performing the subjective effect test.
The code for performing the step of validating the MTF attribute values is as follows:
property _ get ("property. vector. camera. mtf. enable", prop, "0"); the default value of// "prop" is "0", and if the MTF parameter needs to be run, the factory tool will, by command: adb shell setprop persistence. driver. camera. mtf. enable has its enable to be 1.
mtf _ flag ═ atoi (prop); // "atoi" is a function that converts strings to integer numbers.
CAMX_LOG_CONFIG(CamxLogGroupSensor,"mtf test flag:mtf_flag=%d",mtf_flag);
The meaning of the following code: a file is obtained with the suffix bin of the keyword "sensormodule _ mtf". This document contains the parameters of the MTF. Is a file added to fit the MTF test in this application.
if (MTF _ flag is 1) {// judging whether to use the MTF parameter file, if equal to 1, it indicates that MTF parameters need to be used
fileCount=OsUtils::GetFilesFromPath(SensorModulesPath,
FILENAME_MAX,
&binaryFiles[fileCountMM][0],
"*",
"sensormodule_mtf",
"*",
"*",
"bin"); the function is to get the file with the suffix bin of the key "sensormodule _ mtf". This document contains the parameters of the MTF.
The result is MTF _ flag not equal to 1, and the resolved user parameter does not resolve the MTF parameter.
fileCount=OsUtils::GetFilesFromPath(SensorModulesPath,
FILENAME_MAX,
&binaryFiles[fileCountMM][0],
"*",
"sensormodule",
"*",
"*",
"bin");
The code flow is explained as follows: the code will read the persistence attribute value of MTF at boot time: persistence, vector, camera, MTF, enable, if the persistence attribute value is 1, then analyzing the loading MTF parameter; if the persistence attribute value is 0, the load user parameter is parsed. Wherein, the persistence is the attribute defined at the beginning (persistence attribute), and the value is written in the data/property, so the value of the attribute will not be cleared even if the system restarts.
In the invention, after each restart, the step of confirming the MTF attribute value is executed through a code: acquiring the MTF attribute value, if the MTF attribute value is the first value, analyzing the MTF parameter, and entering an MTF test; and if the MTF attribute value is not the first numerical value, analyzing the user parameter and entering a subjective effect test. By adopting the technical scheme that two sets of parameters are added into one set of codes and MTF parameters are selected by confirming the persistence attribute and the code logic, the process of MTF test on the camera and the process of normally using the camera are independent and do not influence each other.
Please refer to fig. 2, which is a flowchart of steps S10 and S122 in the MTF testing method according to the present invention.
As shown in fig. 2, the step S10 specifically includes:
step S11, obtaining the MTF attribute value, and determining whether the MTF attribute value is a first value.
Step S121, if the MTF attribute value is the first value, executing a first MTF test, and detecting whether the first MTF test passes.
Further, in step S122, if the MTF attribute value is not the first value, the MTF attribute value is assigned as the first value, and the MTF attribute value is restarted, and then it is continuously determined whether the MTF attribute value is the first value after the restart.
Specifically, after the MTF test is started, the MTF test script acquires the MTF attribute value and judges whether the MTF attribute value is a first parameter, if so, the first MTF test is executed, and whether the first MTF test is passed is detected; if the MTF attribute value is not the first numerical value, assigning the MTF attribute value as the first numerical value, restarting, continuously confirming whether the MTF attribute value is the first numerical value after restarting, namely, judging whether the MTF attribute value is the first parameter again, and simultaneously executing the following steps through codes: obtaining the MTF attribute value, and if the MTF attribute value is the first numerical value, continuing to analyze the MTF parameter; and if the first numerical value is not the first numerical value, analyzing the user parameters and entering into subjective effect test.
Before a first MTF test is carried out, the MTF attribute value is judged through an MTF test script, and if the MTF attribute value is the first value, the first MTF test is carried out; if not, assigning the MTF attribute value as the first numerical value, restarting, and then judging whether the MTF attribute value is the first numerical value again.
Step S20, if the first MTF test passes and the MTF attribute value is still the first value, perform a second MTF test.
Please refer to fig. 3, which is a flowchart of steps S20 and S222 in the MTF testing method according to the present invention.
As shown in fig. 3, the step S20 specifically includes:
step S21, if the first MTF test is detected to pass, acquiring the MTF attribute value again, and judging whether the MTF attribute value is still the first value;
step S221, if the MTF attribute value is still the first value, a second MTF test is performed.
Further, in step S222, if the MTF attribute value is not the first value, the MTF attribute value is assigned as the first value, and the MTF attribute value is restarted, and then it is continuously determined whether the MTF attribute value is the first value after the restart.
Specifically, after detecting that the first MTF test passes, the MTF test script acquires the MTF attribute value again, and determines whether the MTF attribute value is still the first value, and if the MTF attribute value is still the first value, performs the second MTF test (in this embodiment, the second MTF test is a front camera MTF test); if the MTF attribute value is not the first value, the MTF attribute value is assigned as the first value, the starting is carried out, whether the MTF attribute value is the first value or not is continuously confirmed after the starting, namely, the step of judging whether the MTF attribute value is still the first parameter or not is carried out again, and meanwhile, the step of confirming the MTF attribute value is executed through codes.
Similarly, before the second MTF test, the MTF attribute value is judged again through the MTF test script, and if the MTF attribute value is the first value, the second MTF test is carried out; if not, assigning the MTF attribute value as the first numerical value, restarting, and then judging whether the MTF attribute value is the first numerical value again. When at least two sensors are needed to test the camera, the steps of obtaining the MTF attribute value at least twice and judging whether the MTF attribute value is a first value or not are needed.
Before each time of different MTF tests, the steps of obtaining the MTF attribute value and judging the MTF attribute value are required to be carried out once, and when the MTF attribute value is the first value, the MTF test is normally carried out; and when the MTF attribute value is not the first value, assigning the MTF attribute value as the first value, and then re-confirming whether the MTF attribute value is the first value so as to smoothly perform the MTF test.
And step S30, if the second MTF test is passed, assigning the MTF attribute value from the first value to a second value, and restarting.
Specifically, after all the different MTF tests are finished, the MTF test script assigns the MTF attribute value from the first value to the second value, restarts the MTF attribute value, and then directly enters the next process (for example, an LCD test process).
Further, for better understanding of the present invention, the working principle of the MTF testing method of the present invention is described in detail below with reference to fig. 4 and 5:
specifically, before the MTF testing process, the previous testing process assigns the MTF attribute value (persistence attribute value) to 1 through an MTF testing script, and restarts (S1); as long as the condition of restarting is triggered, firstly, the code executes the step of confirming the persistence attribute value, namely, acquiring the persistence attribute value (S100), judging whether the persistence attribute value is 1(S200), and analyzing the MTF parameter (S310) if the persistence attribute value is 1; if the persistence attribute value is 0 or null, analyzing the user parameter (S320); meanwhile, the MTF test script firstly acquires the persistence attribute value, then judges whether the persistence attribute value is 1(S2), and if the persistence attribute value is 1, the miniature camera MTF test is carried out (S3); if the persistence attribute value is 0 or null value, assigning the persistence attribute value to 1, and restarting (S4); at this time, the code executes the step of confirming the persistence attribute value again, and when confirming that the persistence attribute value is 1, continues to analyze the MTF parameter (S310), so that the MTF test proceeds smoothly.
Secondly, after the micro camera MTF test is finished, the MTF test script acquires the persistence attribute value again, then judges whether the persistence attribute value is 1(S5), and if the persistence attribute value is 1, performs a front camera MTF test (S6); if the persistence attribute value is 0 or null value, assigning the persistence attribute value to 1, and restarting (S7); similarly, at this time, the code will execute the step of confirming the persistence attribute value again, and when confirming that the persistence attribute value is 1, continue to analyze the MTF parameter (S310), so that the MTF test proceeds smoothly.
Finally, after the front camera MTF test is completed, the MTF test script assigns the persistence attribute value from 1 to 0, restarts (S8), and then proceeds to the next process directly.
It should be noted that, according to the number of the sensors, when at least two sensors are required to test the camera, the MTF test script needs to perform the steps of acquiring the MTF attribute value at least twice, and determining whether the MTF attribute value is 1, and perform different MTF tests on the camera for corresponding times; only after all different MTF tests are finished, the MTF test script assigns the persistence attribute value from 1 to 0, restarts the MTF test script and then directly enters the next procedure; before the next process starts, acquiring the persistence attribute value, and judging whether the persistence attribute value is 0, if the persistence attribute value is 0, confirming that the camera has completed all MTF tests, and normally performing the current process; and if the persistence attribute value is not 0, returning the camera to the previous process, namely performing MTF test in the MTF test process.
Before the MTF testing process is carried out, the previous process assigns the persistence attribute value to 1 and restarts the same, and once a restarting condition is triggered, the code executes the step of confirming the persistence attribute value, and if the persistence attribute value is judged to be 1, the MTF parameter is analyzed, so that the MTF testing is normally carried out; if the persistence attribute value is changed to be not 1 due to abnormal reasons, at this time, the code judges that the persistence attribute value is 0 or null value, and analyzes the user parameter without performing the MTF test.
When the MTF test is normally carried out, the MTF test script firstly acquires the persistence attribute value, then judges whether the persistence attribute value is 1, and if the persistence attribute value is 1, the MTF test of the miniature camera is carried out; after the MTF test of the miniature camera is finished, the MTF test script acquires the persistence attribute value again, then judges whether the persistence attribute value is 1, and if the persistence attribute value is 1, the MTF test of a front camera is carried out; and after the MTF test of the front camera is finished, the MTF test script assigns the persistence attribute value from 1 to 0, restarts the camera and then directly enters the next procedure.
Performing different MTF tests of corresponding times according to different numbers of sensors, but before each different MTF test, performing the step of acquiring the persistence attribute value, then judging whether the persistence attribute value is 1, if the persistence attribute value is always 1, performing all different MTF tests according to a normal flow, if the persistence attribute value is changed into non-1 due to abnormal reasons, setting the persistence attribute value to be 1, restarting, after restarting, executing the step of confirming the persistence attribute value again by a code, and when confirming that the persistence attribute value is 1, continuing to analyze the MTF parameters; meanwhile, the MTF test script performs the step of obtaining the persistence attribute value again, then judges whether the persistence attribute value is 1, continues to perform the current MTF test when the persistence attribute value is judged to be 1, otherwise, continues to assign the persistence attribute value to be 1, and restarts the MTF test; and after the current MTF test is finished, the step of obtaining the persistence attribute value again, then judging whether the persistence attribute value is 1, and when the persistence attribute value is judged to be assigned to be 1, performing the next MTF test until all different MTF tests are finished. The MTF test script assigns the persistence attribute value from 1 to 0, restarts the script and then directly enters the next process.
As shown in fig. 6, an embodiment of the present invention provides an MTF testing apparatus, including: the test system comprises an acquisition module 100, a judgment module 200, a first test module 310 and a second test module 320. Specifically, the obtaining module 100 is configured to obtain an MTF attribute value; the judging module 200 is configured to judge whether the MTF attribute value is a first value, and the judging module 200 is further configured to judge whether the MTF attribute value is the first value after the first test; the first testing module 310 is configured to perform a first MTF test when the determining module 200 determines that the MTF attribute value is a first value; the second testing module 320 is configured to perform a second MTF test when the determining module 200 determines that the MTF attribute value is still the first value.
Further, based on the above embodiments, the present invention also provides a testing apparatus, and a schematic block diagram thereof may be as shown in fig. 7. Wherein the test apparatus comprises: memory 10, processor 20, and display 30. FIG. 7 shows only some of the components of the test equipment, but it should be understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
The processor 10 may be a Central Processing Unit (CPU), microprocessor or other data Processing chip in some embodiments, and is used for running program codes stored in the memory 20 or Processing data, such as executing the MTF test method.
The memory 20 may in some embodiments be an internal storage unit of the test device, such as a hard disk or a memory. The memory 20 may also be an external storage device of the test device in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 20 may also include both an internal storage unit and an external storage device of the test device. The memory 20 is used for storing application software installed in the test equipment and various types of data, such as program codes of the installation test equipment. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, the memory 20 stores an MTF test program 40, and the MTF test program 40 can be executed by the processor 10 to implement the MTF test method of the present application.
The display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch panel, or the like in some embodiments. The display 30 is used to display information at the test equipment and to display a visual user interface. The components 10-30 of the test device communicate with each other via a system bus.
In one embodiment, the following steps are implemented when the processor 10 executes the MTF test program 40 in the memory 20:
obtaining an MTF attribute value, and if the MTF attribute value is a first value, performing a first MTF test;
and if the first MTF test is passed and the MTF attribute value is still the first value, performing a second MTF test.
Obtaining an MTF attribute value, and if the MTF attribute value is a first value, performing a first MTF test, specifically including:
acquiring the MTF attribute value, and judging whether the MTF attribute value is a first numerical value or not;
and if the MTF attribute value is a first value, executing a first MTF test and detecting whether the first MTF test passes or not.
Wherein, the judging whether the MTF attribute value is a first value further includes:
and if the MTF attribute value is not the first numerical value, assigning the MTF attribute value as the first numerical value, restarting, and continuously confirming whether the MTF attribute value is the first numerical value after restarting.
If the first MTF test passes and the MTF attribute value is still the first value, performing a second MTF test, specifically including:
if the first MTF test is detected to pass, acquiring the MTF attribute value again, and judging whether the MTF attribute value is still the first value or not;
and if the MTF attribute value is still the first value, executing a second MTF test.
Wherein, the judging whether the MTF attribute value is still the first value further includes:
and if the MTF attribute value is not the first numerical value, assigning the MTF attribute value as the first numerical value, restarting, and continuously confirming whether the MTF attribute value is the first numerical value after restarting.
Wherein, if the MTF attribute value is still the first value, a second MTF test is executed, and then the method further includes:
and if the second MTF passes the test, assigning the MTF attribute value from the first value to a second value, and restarting.
The first MTF test is a miniature camera MTF test, and the second MTF test is a front camera MTF test.
Wherein the first value is 1 and the second value is 0.
The present invention also provides a computer readable storage medium, wherein the computer readable storage medium stores an MTF test program, and the MTF test program implements the steps of the MTF test method as described above when executed by a processor.
In summary, the MTF testing method, the testing apparatus and the computer-readable storage medium provided by the present invention include: obtaining an MTF attribute value, and if the MTF attribute value is a first value, performing a first MTF test; and if the first MTF test is passed and the MTF attribute value is still the first value, performing a second MTF test. The invention can effectively avoid the influence of subjective test on MTF test by confirming the MTF attribute value and selecting to carry out MTF test according to the code logic, thereby reducing the test times and the rework frequency of factory software.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Of course, it will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by instructing relevant hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer readable storage medium, and when executed, the program can include the processes of the embodiments of the methods described above. The computer readable storage medium may be a memory, a magnetic disk, an optical disk, etc.
It should be understood that equivalents and modifications of the technical solution and inventive concept thereof may occur to those skilled in the art, and all such modifications and alterations should fall within the scope of the appended claims.

Claims (10)

1. A MTF testing method, comprising:
obtaining an MTF attribute value, and if the MTF attribute value is a first value, performing a first MTF test;
and if the first MTF test is passed and the MTF attribute value is still the first value, performing a second MTF test.
2. The method according to claim 1, wherein the obtaining the MTF attribute value, and if the MTF attribute value is a first value, performing a first MTF test includes:
acquiring the MTF attribute value, and judging whether the MTF attribute value is a first numerical value or not;
and if the MTF attribute value is a first value, executing a first MTF test and detecting whether the first MTF test passes or not.
3. The MTF testing method of claim 2, wherein the determining whether the MTF attribute value is a first value further comprises:
and if the MTF attribute value is not the first numerical value, assigning the MTF attribute value as the first numerical value, restarting, and continuously confirming whether the MTF attribute value is the first numerical value after restarting.
4. The method of claim 1, wherein if the first MTF test passes and the MTF attribute is determined to be the first value, performing a second MTF test, comprising:
if the first MTF test is detected to pass, acquiring the MTF attribute value again, and judging whether the MTF attribute value is still the first value or not;
and if the MTF attribute value is still the first value, executing a second MTF test.
5. The MTF testing method of claim 4, wherein said determining whether the MTF attribute value is still the first value further comprises:
and if the MTF attribute value is not the first numerical value, assigning the MTF attribute value as the first numerical value, restarting, and continuously confirming whether the MTF attribute value is the first numerical value after restarting.
6. The method of claim 4, wherein if the MTF attribute value is still the first value, performing a second MTF test, and thereafter further comprising:
and if the second MTF passes the test, assigning the MTF attribute value from the first value to a second value, and restarting.
7. The method of claim 1, wherein the first MTF test is a miniature camera MTF test and the second MTF test is a front camera MTF test.
8. The method of claim 6, wherein the first value is 1 and the second value is 0.
9. A test apparatus, characterized in that the test apparatus comprises: a memory, a processor, and an MTF test pass rate program stored on the memory and executable on the processor, the MTF test pass rate program when executed by the processor implementing the steps of the MTF testing method of any of claims 1-8.
10. A computer-readable storage medium, wherein the computer-readable storage medium stores an MTF test program, which when executed by a processor, performs the steps of the MTF testing method of any one of claims 1-8.
CN202110922706.3A 2021-08-12 2021-08-12 MTF test method, test equipment and computer readable storage medium Pending CN113776782A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110922706.3A CN113776782A (en) 2021-08-12 2021-08-12 MTF test method, test equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110922706.3A CN113776782A (en) 2021-08-12 2021-08-12 MTF test method, test equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN113776782A true CN113776782A (en) 2021-12-10

Family

ID=78837471

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110922706.3A Pending CN113776782A (en) 2021-08-12 2021-08-12 MTF test method, test equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113776782A (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110131002A1 (en) * 2008-05-15 2011-06-02 Simeon Falk Sheye Method for automatic testing of software
CN103399815A (en) * 2013-07-16 2013-11-20 广东欧珀移动通信有限公司 Automated testing method and automated testing device
CN105224459A (en) * 2015-10-21 2016-01-06 浪潮电子信息产业股份有限公司 Under a kind of LINUX platform, test b MC is by the method for OEM order read-write BIOS configuration feature
CN105371885A (en) * 2015-10-14 2016-03-02 凌云光技术集团有限责任公司 Automatic test method and system of imaging chip MTF value
CN105469483A (en) * 2015-11-20 2016-04-06 北京天诚盛业科技有限公司 Iris entrance guard reliability detection method and apparatus thereof
CN107465572A (en) * 2017-08-02 2017-12-12 华数传媒网络有限公司 Intelligent terminal method of testing, apparatus and system
CN110430426A (en) * 2019-09-06 2019-11-08 昆山丘钛微电子科技有限公司 The test method and device of phase-detection auto-focusing performance
CN111159048A (en) * 2019-12-30 2020-05-15 深圳Tcl数字技术有限公司 Application program testing method and device and computer readable storage medium
CN111209202A (en) * 2020-01-06 2020-05-29 北京字节跳动网络技术有限公司 Terminal application testing method and device
CN111813617A (en) * 2020-08-31 2020-10-23 成都申威科技有限责任公司 Method and device for testing and scheduling functions of main board device
CN111984539A (en) * 2020-08-25 2020-11-24 北京微步在线科技有限公司 Automatic testing method and device for webpage front end
CN112069082A (en) * 2020-09-29 2020-12-11 智慧互通科技有限公司 Automatic testing method and system
CN112203080A (en) * 2019-07-08 2021-01-08 宁波舜宇光电信息有限公司 Resolution testing method, device and storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110131002A1 (en) * 2008-05-15 2011-06-02 Simeon Falk Sheye Method for automatic testing of software
CN103399815A (en) * 2013-07-16 2013-11-20 广东欧珀移动通信有限公司 Automated testing method and automated testing device
CN105371885A (en) * 2015-10-14 2016-03-02 凌云光技术集团有限责任公司 Automatic test method and system of imaging chip MTF value
CN105224459A (en) * 2015-10-21 2016-01-06 浪潮电子信息产业股份有限公司 Under a kind of LINUX platform, test b MC is by the method for OEM order read-write BIOS configuration feature
CN105469483A (en) * 2015-11-20 2016-04-06 北京天诚盛业科技有限公司 Iris entrance guard reliability detection method and apparatus thereof
CN107465572A (en) * 2017-08-02 2017-12-12 华数传媒网络有限公司 Intelligent terminal method of testing, apparatus and system
CN112203080A (en) * 2019-07-08 2021-01-08 宁波舜宇光电信息有限公司 Resolution testing method, device and storage medium
CN110430426A (en) * 2019-09-06 2019-11-08 昆山丘钛微电子科技有限公司 The test method and device of phase-detection auto-focusing performance
CN111159048A (en) * 2019-12-30 2020-05-15 深圳Tcl数字技术有限公司 Application program testing method and device and computer readable storage medium
CN111209202A (en) * 2020-01-06 2020-05-29 北京字节跳动网络技术有限公司 Terminal application testing method and device
CN111984539A (en) * 2020-08-25 2020-11-24 北京微步在线科技有限公司 Automatic testing method and device for webpage front end
CN111813617A (en) * 2020-08-31 2020-10-23 成都申威科技有限责任公司 Method and device for testing and scheduling functions of main board device
CN112069082A (en) * 2020-09-29 2020-12-11 智慧互通科技有限公司 Automatic testing method and system

Similar Documents

Publication Publication Date Title
CN109165162B (en) Test method and related equipment for vehicle-mounted system
US7565579B2 (en) Post (power on self test) debug system and method
CN105913797A (en) LED display screen module correction data automatic loading method and system
CN108632533B (en) Camera control method, mobile terminal and computer readable storage medium
CN112783756A (en) Automatic test method, terminal, system and storage medium
WO2022222293A1 (en) Storage device test method and apparatus, television, and storage medium
CN107295250B (en) Camera adjustment method and its system
US20120110383A1 (en) Method and apparatus for off-line analyzing crashed programs
TW201324141A (en) Testing method and testing apparatus for testing function of electronic apparatus
CN113776782A (en) MTF test method, test equipment and computer readable storage medium
CN107203463B (en) Interface testing method, interface drawing method and device
CN108197025B (en) Instrument pressure testing system and instrument pressure testing method
CN111240965A (en) ISP real-time debugging method and system
CN112199272A (en) Intelligent terminal testing method and device, terminal equipment and medium
US9058184B2 (en) Run time generation and functionality validation of device drivers
AU2017235993B2 (en) Dynamic loading and deployment of test files to prevent interruption of test execution
CN111651308B (en) Method and device for acquiring debugging data of DP-HDMI chip and intelligent device
CN1831785A (en) Micro processor and method using in firmware program debug
CN107454240B (en) Installation method of detection system, detection system and detection method of camera
CN110572641B (en) Display equipment testing method and device and computer readable storage medium
CN114461479A (en) Method and device for debugging multimedia processing chip, storage medium and electronic equipment
WO2020157795A1 (en) Test device, test method, and test program
CN116701501B (en) Camera calibration data loading method and device and terminal equipment
CN115292113B (en) Method and device for fault detection of internal memory of server and electronic equipment
CN117192343B (en) Chip testing method based on auxiliary system, electronic equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination