CN113542729B - Camera resolution obtaining method and device, intelligent terminal and storage medium - Google Patents

Camera resolution obtaining method and device, intelligent terminal and storage medium Download PDF

Info

Publication number
CN113542729B
CN113542729B CN202110719118.XA CN202110719118A CN113542729B CN 113542729 B CN113542729 B CN 113542729B CN 202110719118 A CN202110719118 A CN 202110719118A CN 113542729 B CN113542729 B CN 113542729B
Authority
CN
China
Prior art keywords
camera
test
distance
target
tested
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110719118.XA
Other languages
Chinese (zh)
Other versions
CN113542729A (en
Inventor
谢培强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202110719118.XA priority Critical patent/CN113542729B/en
Publication of CN113542729A publication Critical patent/CN113542729A/en
Application granted granted Critical
Publication of CN113542729B publication Critical patent/CN113542729B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals

Abstract

The invention discloses a method and a device for acquiring resolution of a camera, an intelligent terminal and a storage medium, wherein the method for acquiring resolution of the camera comprises the following steps: acquiring a focusing distance of a camera to be tested; acquiring a target test chart card, and performing an analytical force test on the camera to be tested through the target test chart card based on the focusing distance to acquire test data, wherein the target test chart card is an analytical force test chart card with any size; obtaining a standard test distance of the target test chart card, wherein the standard test distance is a shooting distance when a target area of the target test chart card is full of a shooting picture of the camera to be tested; and acquiring the analysis force of the camera to be tested based on the test data, the focusing distance and the standard test distance. Compared with the prior art, the method and the device are beneficial to rapidly testing the resolving power of each camera, and reduce the testing cost.

Description

Camera resolution obtaining method and device, intelligent terminal and storage medium
Technical Field
The invention relates to the technical field of camera testing, in particular to a method and a device for acquiring resolution of a camera, an intelligent terminal and a storage medium.
Background
With the development of science and technology, cameras (or camera modules) have become devices that are visible everywhere in life, for example, mobile terminals such as mobile phones used by users are basically configured with cameras. And the demands of users for various performances of cameras are gradually increasing. The resolution of the camera, also called definition or resolution, is an important parameter for representing the performance of the camera, so that it is very important to perform the resolution test on the camera.
In the prior art, the resolution test can be performed on the camera through the resolution test chart card. But in the process of using the resolution test chart card to perform resolution test on the camera, the test distance corresponding to the resolution test chart card needs to be ensured to be the same as the focusing distance of the camera. The problem in the prior art is that, for a camera with a certain focusing distance, only the resolution test chart card with a specific size can be customized, and for cameras with different focusing distances, the resolution test chart cards with different sizes need to be customized respectively, which is not beneficial to rapidly testing the resolution of each camera, and the test cost is high.
Accordingly, there is a need for improvement and development in the art.
Disclosure of Invention
The invention mainly aims to provide a method, a device, an intelligent terminal and a storage medium for acquiring resolution of a camera, and aims to solve the problems that in the prior art, for a camera with a certain focusing distance, only resolution test chart cards with specific sizes can be customized, for cameras with different focusing distances, resolution test chart cards with different sizes need to be customized respectively, so that the rapid resolution test of each camera is not facilitated, and the test cost is high.
In order to achieve the above object, a first aspect of the present invention provides a method for obtaining resolution of a camera, where the method includes:
acquiring a focusing distance of a camera to be tested;
acquiring a target test chart card, and performing an analytical force test on the camera to be tested through the target test chart card based on the focusing distance to acquire test data, wherein the target test chart card is an analytical force test chart card with any size;
obtaining a standard test distance of the target test chart card, wherein the standard test distance is a shooting distance when a target area of the target test chart card is full of a shooting picture of the camera to be tested;
and acquiring the analysis force of the camera to be tested based on the test data, the focusing distance and the standard test distance.
Optionally, the acquiring the target test chart card, based on the focusing distance, performs an analytical force test on the camera to be tested through the target test chart card, and acquires test data, including:
obtaining a target test chart card;
setting the camera to be tested perpendicular to the target test chart card, wherein the perpendicular distance between the camera to be tested and the target test chart card is the focusing distance;
and shooting the target test chart card by the camera to be tested, and acquiring test data based on an image obtained by shooting.
Optionally, the obtaining the standard test distance of the target test chart card includes:
acquiring the target area size of the target test chart card;
acquiring the angle of view of the camera to be tested;
and acquiring the standard test distance based on the target area size and the view angle.
Optionally, the target area is a 4:3 area of the target test card.
Optionally, the target area of the target test chart card is a rectangular area, the target area size of the target test chart card includes a length and a width of the target area of the target test chart card, and the acquiring the standard test distance based on the target area size and the field angle includes:
Calculating a diagonal length of the target area based on the length and the width of the target area;
the standard test distance is equal to a target length divided by a target angle tangent, wherein the target length is one-half of the diagonal length, and the target angle tangent is a tangent obtained by multiplying the field angle by one-half.
Optionally, the acquiring the resolving power of the camera to be tested based on the test data, the focusing distance and the standard test distance includes:
a value obtained by dividing the focusing distance by the standard test distance is taken as a similar equal ratio;
and acquiring the analysis force of the camera to be tested based on the similarity equal ratio and the test data.
Optionally, after the obtaining the resolving power of the camera to be tested based on the similarity-to-equivalence ratio and the test data, the method further includes:
and acquiring the resolution level of the camera based on a preset resolution level threshold, the test data and the similar ratios.
The second aspect of the present invention provides a device for obtaining resolution of a camera, where the device includes:
the focusing distance acquisition module is used for acquiring the focusing distance of the camera to be tested;
The test data acquisition module is used for acquiring a target test chart card, and carrying out analytical force test on the camera to be tested through the target test chart card based on the focusing distance to acquire test data, wherein the target test chart card is an analytical force test chart card with any size;
the standard test distance acquisition module is used for acquiring the standard test distance of the target test chart card, wherein the standard test distance is the shooting distance when the target area of the target test chart card is full of the shooting picture of the camera to be tested;
and the analysis force acquisition module is used for acquiring the analysis force of the camera to be tested based on the test data, the focusing distance and the standard test distance.
The third aspect of the present invention provides an intelligent terminal, where the intelligent terminal includes a memory, a processor, and a camera resolution acquiring program stored in the memory and capable of running on the processor, and the camera resolution acquiring program implements any one of the steps of the camera resolution acquiring method when executed by the processor.
A fourth aspect of the present invention provides a computer-readable storage medium having stored thereon a camera resolution acquisition program that, when executed by a processor, implements the steps of any one of the above-described camera resolution acquisition methods.
From the above, in the scheme of the invention: acquiring a focusing distance of a camera to be tested; acquiring a target test chart card, and performing an analytical force test on the camera to be tested through the target test chart card based on the focusing distance to acquire test data, wherein the target test chart card is an analytical force test chart card with any size; obtaining a standard test distance of the target test chart card, wherein the standard test distance is a shooting distance when a target area of the target test chart card is full of a shooting picture of the camera to be tested; and acquiring the analysis force of the camera to be tested based on the test data, the focusing distance and the standard test distance. Compared with the prior art, the method and the device can use the analysis force diagram card with any size to test the analysis force of the camera to be tested, and obtain the actual analysis force of the camera to be tested according to the obtained test data, the focusing distance of the camera and the standard test distance corresponding to the analysis force diagram card. Therefore, for cameras with different focusing distances, the same resolution test chart card can be adopted to perform resolution tests on different cameras without customizing resolution test chart cards with different sizes, thereby being beneficial to rapidly performing resolution tests on each camera and reducing test cost.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a method for obtaining resolution of a camera according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of step S200 in FIG. 1 according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating the step S300 in FIG. 1 according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating the step S303 in FIG. 3 according to an embodiment of the present invention;
FIG. 5 is a schematic flow chart of step S400 in FIG. 1 according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a test result of analyzing an 8M wide angle using standard Jiao Tuka and 4X ISO12233 cards according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a device for obtaining resolution of a camera according to an embodiment of the present invention;
fig. 8 is a schematic block diagram of an internal structure of an intelligent terminal according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, 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 is also to be understood that the terminology used in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted in context as "when …" or "upon" or "in response to a determination" or "in response to detection. Similarly, the phrase "if a condition or event described is determined" or "if a condition or event described is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a condition or event described" or "in response to detection of a condition or event described".
The following description of the embodiments of the present invention will be made more fully hereinafter with reference to the accompanying drawings, in which embodiments of the invention are shown, it being evident that the embodiments described are only some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, but the present invention may be practiced in other ways other than those described herein, and persons skilled in the art will readily appreciate that the present invention is not limited to the specific embodiments disclosed below.
With the development of science and technology, cameras (or camera modules) have become devices that are visible everywhere in life, for example, mobile terminals such as mobile phones used by users are basically configured with cameras. And the demands of users for various performances of cameras are gradually increasing. The resolution of the camera, also called definition or resolution, is an important parameter for representing the performance of the camera, so that it is very important to perform the resolution test on the camera.
In the prior art, a camera (or a camera module) can be subjected to an analytic force test through an analytic force test chart. For example, an ISO12233 resolution test chart may be used to test the resolution of a camera. The ISO12233 analysis force test chart is a standard sample and can provide auxiliary tests such as vertical analysis force, horizontal analysis force and the like of actual shooting. But in the process of using the resolution test chart card to perform resolution test on the camera, the test distance corresponding to the resolution test chart card needs to be ensured to be the same as the focusing distance of the camera. The current focusing requirements of each step pixel camera module are different, for example, the 5M wide-angle focusing distance is 40 cm, the 8M wide-angle focusing distance is 70 cm, and the 16M wide-angle focusing distance is 90 cm. The resolution test chart card for performing the resolution test needs to be customized according to the focusing distance and the angle of view of the camera module, and the customization chart card is expensive and has weak commonality. When more camera modules need to be tested, the problems of multiple evaluation cards, difficult management, resource waste and the like are caused. The problem in the prior art is that, for a camera with a certain focusing distance, only the resolution test chart card with a specific size can be customized, and for cameras with different focusing distances, the resolution test chart cards with different sizes need to be customized respectively, which is not beneficial to rapidly testing the resolution of each camera, and the test cost is high.
In order to solve the problems in the prior art, the scheme of the invention obtains the focusing distance of the camera to be measured; acquiring a target test chart card, and performing an analytical force test on the camera to be tested through the target test chart card based on the focusing distance to acquire test data, wherein the target test chart card is an analytical force test chart card with any size; obtaining a standard test distance of the target test chart card, wherein the standard test distance is a shooting distance when a target area of the target test chart card is full of a shooting picture of the camera to be tested; and acquiring the analysis force of the camera to be tested based on the test data, the focusing distance and the standard test distance. Compared with the prior art, the method and the device can use the analysis force diagram card with any size to test the analysis force of the camera to be tested, and obtain the actual analysis force of the camera to be tested according to the obtained test data, the focusing distance of the camera and the standard test distance corresponding to the analysis force diagram card. Therefore, for cameras with different focusing distances, the same resolution test chart card can be adopted to perform resolution tests on different cameras without customizing resolution test chart cards with different sizes, thereby being beneficial to rapidly performing resolution tests on each camera and reducing test cost.
Exemplary method
As shown in fig. 1, an embodiment of the present invention provides a method for obtaining resolution of a camera, and specifically, the method includes the following steps:
step S100, obtaining the focusing distance of the camera to be tested.
The camera to be tested is a camera which needs to be subjected to analysis force test. In this embodiment, the analysis force test for the camera is described as an example, but the analysis force test for the camera module may also be performed based on the solution of this embodiment, and the specific flow may refer to the flow of the analysis force test for the camera in this embodiment, which is not limited herein. The focusing distance is set according to the actual requirement of the camera to be tested, and the camera to be tested can clearly shoot the test chart card under the focusing distance. In the prior art, a test chart card capable of meeting the shooting requirement of the camera to be tested at the focusing distance is required to be customized, so that the focusing distance is acquired and converted based on the focusing distance in the embodiment, the size of the target test chart card is not limited, and the test requirement and cost can be reduced.
Step S200, obtaining a target test chart card, and performing an analytical force test on the camera to be tested through the target test chart card based on the focusing distance to obtain test data, wherein the target test chart card is an analytical force test chart card with any size.
The target test chart card is used for carrying out analysis force test on the camera. In this embodiment, any size of test chart card may be used, so, based on the scheme of this embodiment, the same target test chart card may be used to perform analysis force test on different cameras, without customizing target test chart cards with different sizes for cameras with different focusing distances, where the size of the target test chart card is not limited. Specifically, the vertical distance between the camera to be tested and the target test chart card is controlled to be equal to the focusing distance, so that the camera to be tested can clearly shoot the corresponding target test chart card, and the analysis force test is performed to obtain corresponding test data.
Step S300, obtaining a standard test distance of the target test chart card, wherein the standard test distance is a shooting distance when a target area of the target test chart card is full of a shooting picture of the camera to be tested.
Specifically, in this embodiment, the target area of the target test chart may be a rectangle, and when the corresponding rectangle fills the shot image, the longest side in the image is the diagonal line of the rectangle of the target area. And the camera to be tested shoots perpendicular to the target test chart card, so that the standard test distance can be obtained through calculation according to the diagonal length of the target area and the field angle of the camera to be tested. Further, in this embodiment, the size of the target test chart card satisfies that the camera to be tested can completely shoot the target area into the picture when shooting at the focusing distance.
Step S400, the analysis force of the camera to be tested is obtained based on the test data, the focusing distance and the standard test distance.
Specifically, the actual resolving power of the camera to be tested may be obtained based on the test data according to the proportional relationship between the focusing distance (i.e., the actual shooting distance) and the standard test distance. Therefore, the method and the device realize the test of the analytic force of the camera to be tested by using the non-customized analytic force test chart card, and are beneficial to reducing the test cost.
From the above, in the method for obtaining the resolution of the camera provided by the embodiment of the invention, the focusing distance of the camera to be measured is obtained; acquiring a target test chart card, and performing an analytical force test on the camera to be tested through the target test chart card based on the focusing distance to acquire test data, wherein the target test chart card is an analytical force test chart card with any size; obtaining a standard test distance of the target test chart card, wherein the standard test distance is a shooting distance when a target area of the target test chart card is full of a shooting picture of the camera to be tested; and acquiring the analysis force of the camera to be tested based on the test data, the focusing distance and the standard test distance. Compared with the prior art, the method and the device can use the analysis force diagram card with any size to test the analysis force of the camera to be tested, and obtain the actual analysis force of the camera to be tested according to the obtained test data, the focusing distance of the camera and the standard test distance corresponding to the analysis force diagram card. Therefore, for cameras with different focusing distances, the same resolution test chart card can be adopted to perform resolution tests on different cameras without customizing resolution test chart cards with different sizes, thereby being beneficial to rapidly performing resolution tests on each camera and reducing test cost.
Specifically, the focusing distances of each camera to be tested are different, for example, the 5M wide-angle focusing distance is 40 cm, the 8M wide-angle focusing distance is 70 cm, the 16M wide-angle focusing distance is 90 cm, and the corresponding focusing distance is obtained according to specific parameters of the camera to be tested in the actual use process.
Specifically, in this embodiment, as shown in fig. 2, the step S200 includes:
step S201, obtain the target test card.
The target test chart card is used for carrying out the analysis force test on the camera, and the size of the target test chart card is not limited. For example, an ISO12233 resolution test chart card may be used, a 4x ISO12233 resolution test chart card may be used, and a resolution test chart card of other dimensions or other standards may be used, without specific limitation. In this embodiment, a 4x iso12233 resolution test chart card is taken as an example for explanation, and by the method of this embodiment, the size of the target test chart card is not required to be matched with the focusing distance of the camera to be tested correspondingly, so that the same target test chart card can be used to test the cameras to be tested with different focusing distances, the resolution evaluation requirement of each step pixel camera module is adapted, the purchase quantity of chart cards can be reduced, the equipment management of a laboratory is convenient, and meanwhile, the expense is saved.
Step S202, setting the camera to be tested perpendicular to the target test chart card, wherein the perpendicular distance between the camera to be tested and the target test chart card is the focusing distance.
Specifically, the focusing distance is directly used as the shooting distance during testing, so that the camera to be tested can clearly shoot the target test chart card.
Step S203, shooting the target test chart card by the camera to be tested, and acquiring test data based on the image obtained by shooting.
The test data are analytical force test data obtained according to the photographed image. Specifically, corresponding analytical force test data can be obtained by shooting a reading corresponding to a clear analytical force bar according to the shot image. For example, if the number corresponding to the resolution bar in the center area of the 4x iso12233 resolution test chart is 18 in the obtained image, the number is multiplied by 100 to obtain the resolution test data corresponding to the area, specifically 1800 image height/line width, i.e., 1800LW/PH. Because the shooting distance used in the embodiment is not the standard distance corresponding to the resolution test chart card, the obtained resolution test data is not the actual resolution of the camera to be tested, and further conversion is needed to obtain the actual resolution corresponding to the camera to be tested.
Specifically, in this embodiment, as shown in fig. 3, the step S300 includes:
step S301, obtaining the target area size of the target test card.
Step S302, obtaining the angle of view of the camera to be tested.
Step S303, the standard test distance is obtained based on the target area size and the view angle.
The target area size is the size of an area for performing an analytical force test in the target test card. Specifically, different target areas may be set in the target test chart card corresponding to different test requirements, and the aspect ratio of the images of the target areas is different. For example, the 4XISO12233 analytical force test card used in this embodiment is provided with 16:9, 3:2, 4:3, and 1:1 zones. When the resolution test is performed on the camera, it is generally required to make the camera satisfy the 4:3 area full screen, and in this embodiment, the 4:3 area in the above-mentioned target test chart card is adopted as the target area. The target area size is the size of the 4:3 area of the 4XISO12233 analytical force test card.
The angle of view of the camera to be tested is determined by the optical lens of the camera to be tested. In this embodiment, under the standard test distance, the angle of view is equal to the angle degree formed by the two end points of the longest edge in the target area and the camera to be tested when the target area is full.
Specifically, in this embodiment, the target area of the target test chart card is a rectangular area, the target area size of the target test chart card includes the length and the width of the target area of the target test chart card, as shown in fig. 4, the step S303 includes:
step S3031, the diagonal length of the target area is obtained based on the length and the width of the target area.
In step S3032, the standard test distance is equal to a target length divided by a target angle tangent, where the target length is one half of the diagonal length, and the target angle tangent is a tangent obtained by multiplying the field angle by one half.
Specifically, the 4:3 area of the 4x ISO12233 analytical force test card is used in this embodiment. Specifically, in this embodiment, the standard test distance may be calculated based on the following formula (1):
wherein D is the standard test distance, a and b are the length and width of the target area, respectively, and FOV is the angle of view of the camera under test, in the above formula (1), FOV is in degrees, if the angle of view obtained is a numerical value, without units, it is possible to applyDivided by 180 and multiplied by pi, and the tangent is calculated. Above- >The length and width of the 4:3 area of the 4x io 12233 analytical force test chart card are 106 cm and 80 cm respectively, which is equal to the diagonal length of the target area, and the diagonal length can be calculated to be 132.8 cm. In this embodiment, an 8M wide-angle module (i.e. a camera to be tested) is tested for resolution, the angle of view of the wide-angle module is 98 ° (HFOV can be used to replace the FOV when using the wide-angle module), and the standard test distance D corresponding to the wide-angle module can be calculated according to the above formula (1) to obtain the standard test distance D about57 cm, and the focusing distance of the obtained wide-angle module is 70 cm.
Specifically, in this embodiment, as shown in fig. 5, the step S400 includes:
step S401, a value obtained by dividing the focusing distance by the standard test distance is used as a similar equal ratio.
Step S402, the analysis force of the camera to be tested is obtained based on the similarity equal ratio and the test data.
In this embodiment, for the 8M wide-angle module to be tested, the focusing distance is 70 cm, the standard test distance is 57 cm, and the focusing distance divided by the standard test distance is used to obtain a similar equivalence ratio of about 1.23. Further, the analysis force of the camera to be tested can be obtained by multiplying the test data by the similar equal ratio. Specifically, when the 4x io 12233 analytical force test chart card is used for testing, test data of the center and different positions of four corners of the analytical force test chart card need to be obtained, and the test data specifically comprises horizontal data and vertical data of the left side and the right side of the center, and the four positions of the four corners respectively correspond to the horizontal data and the vertical data. For example, the horizontal resolution data obtained by measuring a certain position in the center is 1500LW/PH, and then the actual horizontal resolution corresponding to the position can be obtained by multiplying 1.23 by 1845LW/PH, so as to obtain the actual resolution of the camera to be measured corresponding to the measurement data of each position. Specifically, in this embodiment, the resolution level threshold value (that is, the standard value of the resolution qualified can be set and adjusted according to the actual requirement) of each position may be preset, and whether the camera (or the camera module) to be tested is qualified is determined according to the resolution level threshold value and the calculated real resolution. For example, for an 8M wide-angle module to be tested, the resolution level threshold of the center area is set to be 1700LW/PH, the resolution level threshold of the four corner areas is set to be 1200LW/PH, and for the position with the real horizontal resolution of 1845LW/PH, the resolution is qualified. And respectively comparing the measured real resolving power corresponding to each position with the resolving power grade threshold of the position, and when the real resolving power is not smaller than the resolving power grade threshold of the position, considering that the resolving power of the position is qualified, otherwise, considering that the resolving power of the position is unqualified. And if the resolving power of all the positions of the camera (or the camera module) to be detected is qualified, the resolving power of the camera (or the camera module) is considered to be qualified, otherwise, the resolving power is considered to be unqualified.
Specifically, in this embodiment, after the step S400, the method further includes: and acquiring the resolution level of the camera based on a preset resolution level threshold, the test data and the similar ratios.
Furthermore, a plurality of resolving power level thresholds may be set for a location, and different levels, such as a first level, a second level, a third level, etc., may be set and adjusted according to actual requirements, and the real resolving power of each location may be obtained by calculating according to test data of each location and a similar ratio, and determining the resolving power level of the camera based on the magnitude relation between the real resolving power of each location and the resolving power level threshold of the location.
In this embodiment, the description is further based on an analytical force test experiment in a specific application scenario. Specifically, the camera to be tested is 8M wide angle, the target test chart used is 4x iso12233 chart, the focusing distance of the 8M wide angle is 70 cm, and the field angle (HFOV) is 98 °. The standard test distance (namely, the shooting distance when the 4:3 area of the 4X ISO12233 chart card is full screen) obtained by calculation is about 57 cm, and the focusing distance of the 8M wide angle is 70 cm, so that the chart cannot be directly shot to read the analysis line pair, the analysis line pair is converted by using the similarity equal ratio, and the similarity equal ratio obtained by calculation is about 1.23. Specifically, in an ideal test environment, that is, in the case of using an analysis force test chart card of a custom size corresponding to an 8M wide angle, the set ideal analysis force level threshold is Center region 1700LW/PH, corner region 1200LW/PH, that is, the ideal analysis force level threshold corresponding to the position of the Center region (that is, the qualification standard under ideal experimental conditions) is 1700LW/PH, and the ideal analysis force level threshold corresponding to the position of the four Corner regions is 1200LW/PH. And converting each ideal analytic force level threshold according to the similar equal ratio, specifically, dividing each ideal analytic force level threshold by the similar equal ratio to obtain analytic force level thresholds under experimental conditions (namely, qualification standards under actual experiments) respectively corresponding to Center region 1350LW/PH and Corner region 950LW/PH. In this embodiment, 5 experiments were performed using custom standard Jiao Tuka corresponding to an 8M wide angle and 4x ISO12233 chart cards, respectively, to test the resolution, and specific test results are shown in fig. 6. In the figure, center L and Center R represent the left and right positions of the Center region, respectively, UL, BL, BR, UR represents the different positions of the four corners, hori represents the horizontal resolution, and ver represents the vertical resolution, respectively; the standard Jiao Tuka represents an ideal resolution force rating threshold under conditions where a quasi-focal resolution force diagram card is used; the 4X chart similarity equal ratio conversion standard represents an analysis force level threshold obtained by dividing the corresponding ideal analysis force level threshold by the similarity equal ratio, namely an analysis force qualification standard corresponding to an 8M wide angle when measuring with a focusing distance of 70 cm. For example, the standard Jiao Tuka for Center L and Center R regions is 1700LW/PH, and the equivalent ratio conversion for 4 Xcard similarity is 1700 divided by 1.23, which is about 1350LW/PH. As can be seen from fig. 6, when the resolution test is performed according to the solution provided by the embodiment of the present invention, whether the resolution of the camera is qualified can also be well determined. Further, the actual resolving power can be obtained by multiplying the reading corresponding to the 4X chart card by a similar equal ratio, for example, the resolving power corresponding to the hori of the first set of Center L points tested by the 4X chart card is 1500LW/PH, the actual resolving power obtained after multiplying by 1.23 is 1845LW/PH, and the resolving power obtained by measuring by standard Jiao Tuka is very close to 1900LW/PH, which shows that the resolving power obtained by the scheme test provided by the embodiment of the invention has small difference from the resolving power reading obtained by the customized standard Jiao Tuka test adapted to the camera to be tested, and the error is within an acceptable range.
Exemplary apparatus
As shown in fig. 7, corresponding to the above-mentioned method for obtaining a resolution of a camera, an embodiment of the present invention further provides a device for obtaining a resolution of a camera, where the device for obtaining a resolution of a camera includes:
the focusing distance obtaining module 510 is configured to obtain a focusing distance of the camera to be tested.
The camera to be tested is a camera which needs to be subjected to analysis force test. In this embodiment, the analysis force test for the camera is described as an example, but the analysis force test for the camera module may also be performed based on the solution of this embodiment, and the specific flow may refer to the flow of the analysis force test for the camera in this embodiment, which is not limited herein. The focusing distance is set according to the actual requirement of the camera to be tested, and the camera to be tested can clearly shoot the test chart card under the focusing distance. In the prior art, a test chart card capable of meeting the shooting requirement of the camera to be tested at the focusing distance is required to be customized, so that the focusing distance is acquired and converted based on the focusing distance in the embodiment, the size of the target test chart card is not limited, and the test requirement and cost can be reduced.
The test data obtaining module 520 is configured to obtain a target test chart card, and based on the focusing distance, perform an analytical force test on the camera to be tested through the target test chart card to obtain test data, where the target test chart card is an analytical force test chart card with any size.
The target test chart card is used for carrying out analysis force test on the camera. In this embodiment, any size of test chart card may be used, so, based on the scheme of this embodiment, the same target test chart card may be used to perform analysis force test on different cameras, without customizing target test chart cards with different sizes for cameras with different focusing distances, where the size of the target test chart card is not limited. Specifically, the vertical distance between the camera to be tested and the target test chart card is controlled to be equal to the focusing distance, so that the camera to be tested can clearly shoot the corresponding target test chart card, and the analysis force test is performed to obtain corresponding test data.
The standard test distance obtaining module 530 is configured to obtain a standard test distance of the target test chart card, where the standard test distance is a photographing distance when a target area of the target test chart card is full of a photographing picture of the camera to be tested.
Specifically, in this embodiment, the target area of the target test chart may be a rectangle, and when the corresponding rectangle fills the shot image, the longest side in the image is the diagonal line of the rectangle of the target area. And the camera to be tested shoots perpendicular to the target test chart card, so that the standard test distance can be obtained through calculation according to the diagonal length of the target area and the field angle of the camera to be tested.
The resolving power obtaining module 540 is configured to obtain the resolving power of the camera to be tested based on the test data, the focusing distance and the standard test distance.
Specifically, the actual resolving power of the camera to be tested may be obtained based on the test data according to the proportional relationship between the focusing distance (i.e., the actual shooting distance) and the standard test distance. Therefore, the method and the device realize the test of the analytic force of the camera to be tested by using the non-customized analytic force test chart card, and are beneficial to reducing the test cost.
From the above, the device for obtaining resolution of camera provided by the embodiment of the invention obtains the focusing distance of the camera to be measured through the focusing distance obtaining module 510; acquiring a target test chart card through a test data acquisition module 520, and performing an analytical force test on the camera to be tested through the target test chart card based on the focusing distance to acquire test data, wherein the target test chart card is an analytical force test chart card with any size; obtaining a standard test distance of the target test chart card by a standard test distance obtaining module 530, wherein the standard test distance is a shooting distance when a target area of the target test chart card is full of a shooting picture of the camera to be tested; the resolving power of the camera to be tested is obtained by the resolving power obtaining module 540 based on the test data, the focusing distance and the standard test distance. Compared with the prior art, the method and the device can use the analysis force diagram card with any size to test the analysis force of the camera to be tested, and obtain the actual analysis force of the camera to be tested according to the obtained test data, the focusing distance of the camera and the standard test distance corresponding to the analysis force diagram card. Therefore, for cameras with different focusing distances, the same resolution test chart card can be adopted to perform resolution tests on different cameras without customizing resolution test chart cards with different sizes, thereby being beneficial to rapidly performing resolution tests on each camera and reducing test cost.
Specifically, the focusing distances of each camera to be tested are different, for example, the 5M wide-angle focusing distance is 40 cm, the 8M wide-angle focusing distance is 70 cm, the 16M wide-angle focusing distance is 90 cm, and the corresponding focusing distance is obtained according to specific parameters of the camera to be tested in the actual use process.
In particular, in this embodiment, specific functions of each module of the above-mentioned device for obtaining a resolution of a camera may refer to corresponding descriptions in the above-mentioned method for obtaining a resolution of a camera, which is not described herein again.
Based on the above embodiment, the present invention further provides an intelligent terminal, and a functional block diagram thereof may be shown in fig. 8. The intelligent terminal comprises a processor, a memory, a network interface and a display screen which are connected through a system bus. The processor of the intelligent terminal is used for providing computing and control capabilities. The memory of the intelligent terminal comprises a nonvolatile storage medium and an internal memory. The nonvolatile storage medium stores an operating system and a camera resolution acquisition program. The internal memory provides an environment for the operation of the operating system and the camera resolution acquisition program in the nonvolatile storage medium. The network interface of the intelligent terminal is used for communicating with an external terminal through network connection. The camera resolution obtaining program realizes the steps of any one of the camera resolution obtaining methods when being executed by a processor. The display screen of the intelligent terminal can be a liquid crystal display screen or an electronic ink display screen.
It will be appreciated by those skilled in the art that the schematic block diagram shown in fig. 8 is merely a block diagram of a portion of the structure associated with the present inventive arrangements and is not limiting of the smart terminal to which the present inventive arrangements are applied, and that a particular smart terminal may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, there is provided an intelligent terminal including a memory, a processor, and a camera resolution acquisition program stored on the memory and executable on the processor, the camera resolution acquisition program executing the following operation instructions when executed by the processor:
acquiring a focusing distance of a camera to be tested;
acquiring a target test chart card, and performing an analytical force test on the camera to be tested through the target test chart card based on the focusing distance to acquire test data, wherein the target test chart card is an analytical force test chart card with any size;
obtaining a standard test distance of the target test chart card, wherein the standard test distance is a shooting distance when a target area of the target test chart card is full of a shooting picture of the camera to be tested;
And acquiring the analysis force of the camera to be tested based on the test data, the focusing distance and the standard test distance.
It should be understood that the sequence number of each step in the above embodiment does not mean the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not be construed as limiting the implementation process of the embodiment of the present invention.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present invention. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other manners. For example, the apparatus/terminal device embodiments described above are merely illustrative, e.g., the division of the modules or units described above is merely a logical function division, and may be implemented in other manners, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed.
The integrated modules/units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer-readable storage medium. Based on such understanding, the present invention may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the steps of each method embodiment may be implemented. The computer program comprises computer program code, and the computer program code can be in a source code form, an object code form, an executable file or some intermediate form and the like. The computer readable medium may include: any entity or device capable of carrying the computer program code described above, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. The content of the computer readable storage medium can be appropriately increased or decreased according to the requirements of the legislation and the patent practice in the jurisdiction.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that; the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions are not intended to depart from the spirit and scope of the various embodiments of the invention, which are also within the spirit and scope of the invention.

Claims (7)

1. The method for acquiring the resolution of the camera is characterized by comprising the following steps:
acquiring a focusing distance of a camera to be tested;
acquiring a target test chart card, and performing an analytical force test on the camera to be tested through the target test chart card based on the focusing distance to acquire test data, wherein the target test chart card is an analytical force test chart card with any size;
obtaining a standard test distance of the target test chart card, wherein the standard test distance is a shooting distance when a target area of the target test chart card is full of a shooting picture of the camera to be tested;
Acquiring the resolving power of the camera to be tested based on the test data, the focusing distance and the standard test distance;
based on the focusing distance, the target test chart card is used for carrying out analysis force test on the camera to be tested to obtain test data, and the method comprises the following steps:
setting the camera to be tested perpendicular to the target test chart card, wherein the perpendicular distance between the camera to be tested and the target test chart card is the focusing distance;
shooting the target test image card through the camera to be tested, and acquiring test data based on an image obtained by shooting;
the obtaining the standard test distance of the target test chart card includes:
acquiring the target area size of the target test chart card;
acquiring the field angle of the camera to be tested;
acquiring the standard test distance based on the target area size and the field angle;
the obtaining the resolving power of the camera to be tested based on the test data, the focusing distance and the standard test distance includes:
a value obtained by dividing the focusing distance by the standard test distance is taken as a similar equal ratio;
and acquiring the analysis force of the camera to be tested based on the similarity equal ratio and the test data.
2. The method for obtaining resolution of a camera according to claim 1, wherein the target area is a 4:3 area of the target test chart.
3. The camera resolution obtaining method according to claim 1, wherein the target area of the target test chart card is a rectangular area, the target area size of the target test chart card includes a length and a width of the target area of the target test chart card, the obtaining the standard test distance based on the target area size and the angle of view includes:
calculating and obtaining the diagonal length of the target area based on the length and the width of the target area;
the standard test distance is equal to a target length divided by a target angle tangent, wherein the target length is one-half of the diagonal length, and the target angle tangent is a tangent after the field angle is multiplied by one-half.
4. The camera resolution power acquisition method according to claim 1, characterized in that after the acquisition of the resolution power of the camera to be measured based on the similarity equal ratio and the test data, the method further comprises:
and acquiring the resolution force level of the camera based on a preset resolution force level threshold, the test data and the similar equal ratio.
5. A camera resolution acquisition device, the device comprising:
the focusing distance acquisition module is used for acquiring the focusing distance of the camera to be tested;
the test data acquisition module is used for acquiring a target test chart card, and carrying out analytical force test on the camera to be tested through the target test chart card based on the focusing distance to acquire test data, wherein the target test chart card is an analytical force test chart card with any size;
the standard test distance acquisition module is used for acquiring the standard test distance of the target test chart card, wherein the standard test distance is the shooting distance when the target area of the target test chart card is full of the shooting picture of the camera to be tested;
the analysis force acquisition module is used for acquiring the analysis force of the camera to be tested based on the test data, the focusing distance and the standard test distance;
based on the focusing distance, the target test chart card is used for carrying out analysis force test on the camera to be tested to obtain test data, and the method comprises the following steps:
setting the camera to be tested perpendicular to the target test chart card, wherein the perpendicular distance between the camera to be tested and the target test chart card is the focusing distance;
Shooting the target test image card through the camera to be tested, and acquiring test data based on an image obtained by shooting;
the obtaining the standard test distance of the target test chart card includes:
acquiring the target area size of the target test chart card;
acquiring the field angle of the camera to be tested;
acquiring the standard test distance based on the target area size and the field angle;
the obtaining the resolving power of the camera to be tested based on the test data, the focusing distance and the standard test distance includes:
a value obtained by dividing the focusing distance by the standard test distance is taken as a similar equal ratio;
and acquiring the analysis force of the camera to be tested based on the similarity equal ratio and the test data.
6. An intelligent terminal, characterized in that the intelligent terminal comprises a memory, a processor and a camera resolution acquisition program stored on the memory and capable of running on the processor, the camera resolution acquisition program implementing the steps of the camera resolution acquisition method according to any one of claims 1-4 when executed by the processor.
7. A computer-readable storage medium, wherein a camera resolution acquisition program is stored on the computer-readable storage medium, and the camera resolution acquisition program, when executed by a processor, implements the steps of the camera resolution acquisition method according to any one of claims 1 to 4.
CN202110719118.XA 2021-06-28 2021-06-28 Camera resolution obtaining method and device, intelligent terminal and storage medium Active CN113542729B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110719118.XA CN113542729B (en) 2021-06-28 2021-06-28 Camera resolution obtaining method and device, intelligent terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110719118.XA CN113542729B (en) 2021-06-28 2021-06-28 Camera resolution obtaining method and device, intelligent terminal and storage medium

Publications (2)

Publication Number Publication Date
CN113542729A CN113542729A (en) 2021-10-22
CN113542729B true CN113542729B (en) 2024-03-19

Family

ID=78097016

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110719118.XA Active CN113542729B (en) 2021-06-28 2021-06-28 Camera resolution obtaining method and device, intelligent terminal and storage medium

Country Status (1)

Country Link
CN (1) CN113542729B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107920211A (en) * 2017-12-28 2018-04-17 深圳市金立通信设备有限公司 A kind of photographic method, terminal and computer-readable recording medium
CN108225741A (en) * 2017-12-28 2018-06-29 广东欧珀移动通信有限公司 Method for testing definition, device, storage medium and electronic equipment
CN208488645U (en) * 2018-07-05 2019-02-12 Oppo广东移动通信有限公司 Image header parsing power test pattern
CN109348129A (en) * 2018-11-13 2019-02-15 信利光电股份有限公司 A kind of the clarity detection method and system of cameras with fixed focus
CN110365971A (en) * 2019-07-17 2019-10-22 上海集成电路研发中心有限公司 It is a kind of to be automatically positioned the test macro and method most preferably to focus
CN111757102A (en) * 2020-08-03 2020-10-09 Oppo广东移动通信有限公司 Ultra-micro distance camera definition detection device and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107920211A (en) * 2017-12-28 2018-04-17 深圳市金立通信设备有限公司 A kind of photographic method, terminal and computer-readable recording medium
CN108225741A (en) * 2017-12-28 2018-06-29 广东欧珀移动通信有限公司 Method for testing definition, device, storage medium and electronic equipment
CN208488645U (en) * 2018-07-05 2019-02-12 Oppo广东移动通信有限公司 Image header parsing power test pattern
CN109348129A (en) * 2018-11-13 2019-02-15 信利光电股份有限公司 A kind of the clarity detection method and system of cameras with fixed focus
CN110365971A (en) * 2019-07-17 2019-10-22 上海集成电路研发中心有限公司 It is a kind of to be automatically positioned the test macro and method most preferably to focus
CN111757102A (en) * 2020-08-03 2020-10-09 Oppo广东移动通信有限公司 Ultra-micro distance camera definition detection device and method

Also Published As

Publication number Publication date
CN113542729A (en) 2021-10-22

Similar Documents

Publication Publication Date Title
CN110660066B (en) Training method of network, image processing method, network, terminal equipment and medium
CN109166156B (en) Camera calibration image generation method, mobile terminal and storage medium
CN113240630B (en) Speckle image quality evaluation method and device, terminal equipment and readable storage medium
US20130278788A1 (en) Method for determining the extent of a foreground object in an image
CN109218718B (en) Automatic focusing debugging method, device, equipment and storage medium
CN112508887B (en) Image definition evaluation method, system, storage medium, device and application
CN110487737B (en) Image information extraction and calculation method and system for spectrum detection of smart phone
US20070076981A1 (en) Scalable test target and method for measurement of camera image quality
CN110345875B (en) Calibration and ranging method, device, electronic equipment and computer readable storage medium
CN111368587B (en) Scene detection method, device, terminal equipment and computer readable storage medium
CN108156452B (en) Method, device and equipment for detecting sensor and storage medium
CN112991459B (en) Camera calibration method, device, equipment and storage medium
CN104065863A (en) Image processing method and processing device
CN113542729B (en) Camera resolution obtaining method and device, intelligent terminal and storage medium
CN114007013A (en) Fuzzy region determination and anti-shake performance detection method and system, and anti-shake performance detection equipment
CN110719452B (en) Color coordinate measuring method, measuring device, computer equipment and storage medium
CN115690747B (en) Vehicle blind area detection model test method and device, electronic equipment and storage medium
CN112203080B (en) Resolution testing method, device and storage medium
CN114323585B (en) Method for batch calculation of modulation transfer function, electronic device and storage medium
CN111669572A (en) Camera module detection method and device, medium and electronic equipment
CN112863408B (en) Screen resolution detection method and device
CN115359132B (en) Camera calibration method and device for vehicle, electronic equipment and storage medium
CN112422953B (en) Method and device for identifying whether camera is shielded or not and terminal equipment
CN115661048A (en) Method, device and system for image automatic test and storage medium
CN112304573A (en) Method and system for simultaneously measuring lens distortion and MTF indexes

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
GR01 Patent grant
GR01 Patent grant