CN111795805B - Test chart drawing method, terminal device and storage medium - Google Patents

Test chart drawing method, terminal device and storage medium Download PDF

Info

Publication number
CN111795805B
CN111795805B CN202010608596.9A CN202010608596A CN111795805B CN 111795805 B CN111795805 B CN 111795805B CN 202010608596 A CN202010608596 A CN 202010608596A CN 111795805 B CN111795805 B CN 111795805B
Authority
CN
China
Prior art keywords
test chart
test
point
target
included angle
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
CN202010608596.9A
Other languages
Chinese (zh)
Other versions
CN111795805A (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.)
Goertek Optical Technology Co Ltd
Original Assignee
Goertek Optical 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 Goertek Optical Technology Co Ltd filed Critical Goertek Optical Technology Co Ltd
Priority to CN202010608596.9A priority Critical patent/CN111795805B/en
Publication of CN111795805A publication Critical patent/CN111795805A/en
Application granted granted Critical
Publication of CN111795805B publication Critical patent/CN111795805B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Abstract

The invention discloses a method for drawing a test chart, which comprises the following steps: acquiring an included angle corresponding to a comparison point in a standard test chart, wherein the comparison point comprises at least two points on each side line of a test block of the standard test chart, and the included angle corresponding to the comparison point is an included angle between a connecting line between the comparison point and an original point of a preset coordinate system and a target coordinate axis in the target coordinate system; acquiring a field view angle of a camera to be tested and a pre-stored testing distance corresponding to the camera to be tested; determining the coordinate position of a target point corresponding to the test chart according to the included angle, the field view angle and the test distance; and drawing a test chart according to the coordinate position of the target point. The invention also discloses a terminal device and a computer readable storage medium, which achieve the effect of improving the accuracy of the SFR test result of the fisheye camera.

Description

Test chart drawing method, terminal device and storage medium
Technical Field
The present invention relates to the field of virtual reality technologies, and in particular, to a method for drawing a test chart, a terminal device, and a computer-readable storage medium.
Background
The resolution of the imaging system is always the most critical evaluation index of the camera module, wherein the resolution is also called resolution and discrimination rate, and is used for quantitatively describing the capability of the camera module to reproduce the shot scene details. The higher the resolution of the camera module, the clearer the image. Meanwhile, MTF (Modulation Transfer Function), SFR (spatial frequency response), and the like are common detection methods for the resolution of the camera module at present.
When detecting the resolution of fisheye camera through SFR, because light can appear the distortion phenomenon behind the lens, promptly when light behind the lens, can lead to light skew to the nonideal position because of the effect of lens to light. Because the image shot by the fisheye camera can be distorted, the detection accuracy can be reduced when a standard SFR chart is adopted for testing.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a test chart drawing method, terminal equipment and a computer readable storage medium, and aims to improve the accuracy of an SFR test result of a fisheye camera.
In order to achieve the above object, the present invention provides a method for drawing a test chart, which comprises the following steps:
acquiring an included angle corresponding to a comparison point in a standard test chart, wherein the comparison point comprises at least two points on each side line of a test block of the standard test chart, and the included angle corresponding to the comparison point is an included angle between a connecting line between the comparison point and an original point of a preset coordinate system and a target coordinate axis in the target coordinate system;
acquiring a field view angle of a camera to be tested and a pre-stored testing distance corresponding to the camera to be tested;
determining the coordinate position of a target point corresponding to the test chart according to the included angle, the field angle and the test distance;
and drawing a test chart according to the coordinate position of the target point.
Optionally, the step of determining the coordinate position of the target point in the test chart according to the included angle, the field angle and the test distance includes:
determining the imaging height of the target point according to the field angle and the test distance;
and determining the coordinate position of the target point according to the imaging height and the included angle.
Optionally, the step of obtaining the field view angle of the camera to be tested and the testing distance of the camera to be tested includes:
acquiring the coordinate position of the comparison point;
determining the imaging height of the comparison point according to the coordinate position and the included angle;
determining the field view angle of the camera to be detected according to the imaging height of the contrast point;
and acquiring the pre-stored test distance.
Optionally, the step of drawing the test chart according to the coordinate position of the target point includes:
drawing a target test block in the test chart to be drawn according to the coordinate position of the target point;
performing gray scale processing on the test chart to be drawn of the drawn target test block;
and taking the test chart to be drawn after the gray scale processing as a test chart of the fisheye camera.
Optionally, the step of drawing the target test block in the test chart to be drawn according to the coordinate position of the target point includes:
and drawing a sideline of the target test block in the test chart to be drawn according to the coordinate position of the target point, so that the sideline forms the target test block in the test chart to be drawn.
Optionally, before the step of obtaining an included angle between the reference point in the standard test chart and the target coordinate axis in the preset coordinate system, the method further includes:
and respectively establishing the preset coordinate system by taking the central points of the standard test chart and the test chart as the origin of coordinates so as to enable the coordinates in the standard test chart and the test chart to correspond one to one.
In addition, in order to achieve the above object, the present invention further provides a terminal device, where the terminal device includes a memory, a processor, and a test chart drawing program stored in the memory and executable on the processor, and the test chart drawing program implements the steps of the test chart drawing method described above when executed by the processor.
Further, to achieve the above object, the present invention provides a computer-readable storage medium having stored thereon a test chart drawing program, which when executed by a processor, implements the steps of the test chart drawing method as described above.
The method for drawing the test chart, the terminal device and the computer-readable storage medium provided by the embodiment of the invention are used for obtaining an included angle corresponding to a comparison point in the standard test chart, wherein the comparison point comprises at least two points on each side line of a test block of the standard test chart, the included angle corresponding to the comparison point is an included angle between a connecting line between the comparison point and an original point of a preset coordinate system and a target coordinate axis in the target coordinate system, then obtaining a field visual angle of a camera to be tested and a test distance of the camera to be tested, further determining a coordinate position of a target point corresponding to the test chart according to the included angle, the field visual angle and the test distance, and drawing the test chart according to the coordinate position of the target point. The test chart for the SFR test of the fisheye camera can be reversely deduced on the basis of the standard test chart, namely, the mark test chart is pre-distorted based on the distortion characteristic of the fisheye camera, so that the test imaging pattern comprises the standard test block in the test process of the fisheye camera, and the effect of improving the accuracy of the SFR test result of the fisheye camera is achieved.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart diagram illustrating a method for drawing a test chart according to an embodiment of the present invention;
fig. 3 is a diagram comparing the imaging positions of a fisheye camera and a normal camera according to an embodiment of the present invention;
FIG. 4 is a simplified diagram of a fisheye camera imaging according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating a functional curve of a linear equation according to an embodiment of the present invention;
FIG. 6 is a graph of imaging height as a function of field angle according to an embodiment of the present invention;
FIG. 7 is a flowchart illustrating a method for drawing a test chart according to another embodiment of the present invention;
FIG. 8 is a schematic diagram illustrating a gray scale processing effect according to an embodiment of the present invention.
The implementation, functional features and advantages of the present invention will be further described with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
When the resolution of the fish-eye camera is detected through the SFR, the distortion phenomenon can occur after light passes through the lens, namely, after the light passes through the lens, the light can deviate to a non-ideal position due to the action of the lens on the light. Since the image captured by the fisheye camera is distorted, the detection accuracy is reduced when a standard SFR chart is used for testing.
In order to solve the above-mentioned drawbacks, an embodiment of the present invention provides a method for drawing a test chart, which mainly includes the following steps:
acquiring an included angle corresponding to a comparison point in a standard test chart, wherein the comparison point comprises at least two points on each side line of a test block of the standard test chart, and the included angle corresponding to the comparison point is an included angle between a connecting line between the comparison point and an original point of a preset coordinate system and a target coordinate axis in the target coordinate system;
acquiring a field view angle of a camera to be tested and a pre-stored testing distance corresponding to the camera to be tested;
determining the coordinate position of a target point corresponding to the test chart according to the included angle, the field view angle and the test distance;
and drawing a test chart according to the coordinate position of the target point.
The test chart for the SFR test of the fisheye camera can be reversely deduced on the basis of the standard test chart, namely, the mark test chart is pre-distorted based on the distortion characteristic of the fisheye camera, so that the test imaging pattern comprises the standard test block in the test process of the fisheye camera, and the effect of improving the accuracy of the SFR test result of the fisheye camera is achieved.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be a terminal device such as a PC.
As shown in fig. 1, the terminal may include: a processor 1001, e.g. a CPU, a user interface 1003, a memory 1004, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), a mouse, etc., and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The memory 1004 may be a high-speed RAM memory or a non-volatile memory, such as a disk memory. The memory 1004 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, the memory 1004, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a drawing program of a test chart.
In the terminal shown in fig. 1, the processor 1001 may be configured to call a drawing program of the test chart stored in the memory 1004, and perform the following operations:
acquiring an included angle corresponding to a comparison point in a standard test chart, wherein the comparison point comprises at least two points on each side line of a test block of the standard test chart, and the included angle corresponding to the comparison point is an included angle between a connecting line between the comparison point and an original point of a preset coordinate system and a target coordinate axis in the target coordinate system;
acquiring a field view angle of a camera to be tested and a pre-stored testing distance corresponding to the camera to be tested;
determining the coordinate position of a target point corresponding to the test chart according to the included angle, the field angle and the test distance;
and drawing a test chart according to the coordinate position of the target point.
Further, the processor 1001 may call the drawing program of the test chart stored in the memory 1004, and also perform the following operations:
determining the imaging height of the target point according to the field angle and the test distance;
and determining the coordinate position of the target point according to the imaging height and the included angle.
Further, the processor 1001 may call the drawing program of the test chart stored in the memory 1004, and also perform the following operations:
acquiring the coordinate position of the comparison point;
determining the imaging height of the comparison point according to the coordinate position and the included angle;
determining the field view angle of the camera to be detected according to the imaging height of the contrast point;
and acquiring the pre-stored test distance.
Further, the processor 1001 may call the drawing program of the test chart stored in the memory 1004, and also perform the following operations:
drawing a target test block in the test chart to be drawn according to the coordinate position of the target point;
performing gray scale processing on the test chart to be drawn of the drawn target test block;
and taking the test chart to be drawn after the gray scale processing as a test chart of the fisheye camera.
Further, the processor 1001 may call the drawing program of the test chart stored in the memory 1004, and also perform the following operations:
and drawing a sideline of the target test block in the test chart to be drawn according to the coordinate position of the target point, so that the sideline forms the target test block in the test chart to be drawn.
Further, the processor 1001 may call the drawing program of the test chart stored in the memory 1004, and also perform the following operations:
and respectively establishing the preset coordinate system by taking the central points of the standard test chart and the test chart as the origin of coordinates so as to enable the coordinates in the standard test chart and the test chart to correspond one to one.
Referring to fig. 2, in an embodiment of the method for drawing a test chart according to the present invention, the method for drawing a test chart includes the following steps:
step S10, obtaining an included angle corresponding to a comparison point in a standard test chart, wherein the comparison point comprises at least two points on each side line of a test block of the standard test chart, and the included angle corresponding to the comparison point is an included angle between a connecting line between the comparison point and an original point of a preset coordinate system and a target coordinate axis in the target coordinate system;
step S20, acquiring a field view angle of a camera to be tested and a pre-stored testing distance corresponding to the camera to be tested;
step S30, determining the coordinate position of the target point corresponding to the test chart according to the included angle, the field angle and the test distance;
and step S40, drawing a test chart according to the coordinate position of the target point.
The resolution of the imaging system is always the most critical evaluation index of the camera module, wherein the resolution is also called resolution and discrimination rate, and is used for quantitatively describing the capability of the camera module to reproduce the shot scene details. The higher the resolution of the camera module, the clearer the image. Meanwhile, MTF (Modulation Transfer Function), SFR (spatial frequency response), and the like are common detection methods for the resolution of the camera module at present.
As a common special camera, a fisheye camera needs to be provided with a special lens in order to have a wider shooting field of view. Formally, the lens of the fisheye camera is different from the lens of a common camera, so that the fisheye camera generates certain distortion when imaging. Referring to fig. 3, the optical path of the light ray at point a in the object space after passing through the lens of the general camera is shown by the dotted line in fig. 3, and the imaging point is imaged at point a corresponding to point a in the image space. After the light of the point a in the object space passes through the lens of the fisheye camera, the optical path is shown as a solid line in the figure, and the imaging point is in the image space and is imaged on the point b which does not correspond to the point a, so that the fisheye camera is distorted during imaging.
Therefore, when the resolution of the fisheye camera is detected by the SFR, the light deviates to a non-ideal position due to distortion after passing through the lens. In addition, during the SFR test, the SRF test result is accurate only when the test block shot by the camera is the standard test block. Therefore, the test blocks in the standard test chart for testing the general camera are generally drawn as standard test blocks. However, due to the above distortion of the fisheye camera, when a test is performed based on a standard test chart, an imaged image may also be distorted, and an SFR test result obtained based on the distorted imaged image has a defect of low accuracy, so that a test chart for performing an SFR test on the fisheye camera needs to be drawn based on the characteristics of the fisheye camera.
In the invention, in order to enable the test block to be the standard test block in the test chart image shot by the fisheye camera, the test chart for performing the SFR test on the fisheye camera can be obtained by reversely deducing through setting the standard test chart as the imaging result and further carrying out the distortion processing on the mark test chart in advance, and when the fisheye camera carries out the SFR test on the basis of the test chart, the test image containing the standard test block can be obtained, thereby achieving the purpose of improving the accuracy of the SFR test result of the fisheye camera. The test image desired to be obtained is described as a standard test chart, and the specific implementation process for obtaining the SFR test chart for the fisheye camera is explained.
In this embodiment, a rectangular coordinate system may be established in the test chart to be drawn and the standard test chart according to the central points of the test chart to be drawn and the standard test chart. The rectangular coordinate systems in the test chart to be drawn and the standard test chart are corresponding rectangular coordinate systems, so that the coordinate points and the imaging height in the test chart to be drawn correspond to the coordinate points and the imaging height in the standard test chart one to one.
In the test chart, the edge line of the test block can be seen to be composed of an infinite number of target points, so that when the coordinate position of the target point is determined, that is, the test chart can be drawn based on the coordinate position of the target point in the test chart to be drawn.
Further, referring to fig. 4, when it is required to determine the coordinate position of the target point on the edge line of the test block in the test chart, since the coordinate point and the imaging height of the standard test chart in the test chart are in a one-to-one correspondence relationship, the imaging height HI in the test chart is the distance from the target point to the origin of coordinates in the test chart, and the imaging height HI in the standard test chart is the distance from the control point to the origin of coordinates in the standard test chart.
Line imaging in the normal direction does not change direction according to the characteristics of Lens. Therefore, in the test chart and the standard test chart, the imaging height HI of the target point and the imaging height HI of the comparison point are different, but the included angle θ between the connecting line between the target point and the comparison point and the corresponding coordinate origin and the preset coordinate axis is the same.
Therefore, an included angle theta between a connecting line between the reference point in the standard test chart and the origin of the preset coordinate system and a target coordinate axis of the target coordinate system is obtained. The angle between the relation between the target point and the origin of the corresponding coordinate system and the corresponding coordinate axis is also theta. After the included angle is determined, the imaging height HI may be further determined, and then the coordinate position of the target point may be determined according to the polar coordinate formula, the included angle θ and the imaging height HI. The imaging height HI may be determined by the test distance L and FOV (field angle) of the lens, among others.
Specifically, in a specific embodiment, a connection line between a reference point in a standard test chart and an origin of a preset coordinate system and an included angle between a target coordinate axis of the target coordinate system may be obtained, then the included angle obtains a coordinate position of the reference point, an imaging height of the reference point is determined according to the coordinate position and the included angle, and the field view angle of the camera to be tested is determined according to the imaging height of the reference point.
For example, the coordinate position of the control point in the calibration graph may be determined according to the following formula:
x=ih*cosθ (1)
y=ih*sinθ (2)
wherein y is the first axis coordinate of the comparison point, and x is the second axis coordinate of the comparison point. When the first axis is a longitudinal axis, the second axis is a transverse axis.
Further, referring to fig. 5, in the standard test chart, the test edge of the test block needs to be inclined according to the SFR algorithm characteristic, and the inclination range is generally 8 ° to 15 °. And the inclination angle is a fixed parameter which can be directly determined, so that after a rectangular coordinate system is established, a sideline equation corresponding to each side of the test block can be determined according to the fixed inclination angle.
y=kx+b (3)
Where k is equal to tan α or tan (90 ° - α), α being the edge inclination angle, e.g., 8 °.
Based on the above equations (1), (2) and (3), it can be obtained:
ih=b/(sinθ-k*cosθ) (4)
further, the corresponding relationship between the field angle FOV and the imaging height ih of the reference point is determined by the production process and the hardware structure of the camera, is a fixed corresponding relationship, and can be determined by the manufacturer of the camera.
Illustratively, the correspondence between the field view FOV and the imaging height ih of the control point is as follows:
FOV (degree) 1 2 3 4 5 6 7 8 9
ih 0.0430 0.0859 0.1289 0.1718 0.2148 0.2578 0.3007 0.3437 0.3866
FOV (degree) 10 11 12 13 14 …… 160 161 162
ih 0.4295 0.4725 0.5154 0.5583 0.6012 …… 6.0879 6.0995 6.1106
Further, based on the correspondence between the field view angle FOV and the imaging height ih of the control point, it can be determined that:
f(ih)=FOV
based on the correspondence table given in the above example, it can be determined that:
FOV=0.131ih^4-1.3553ih^3+4.6713ih^2+17.842ih+1.4264 (5)
to better understand the above equation (5), referring to fig. 6, in a specific implementation, there is a functional relationship between the imaging height ih of the control point and the field view angle FOV as shown in fig. 6.
Further, the coordinates of the target point may be determined based on the following formula:
X=IH*cosθ (6)
Y=IH*sinθ (7)
wherein, Y is the first axis coordinate of the comparison point, and X is the second axis coordinate of the comparison point. When the first axis is a longitudinal axis, the second axis is a transverse axis.
Further, the coordinate position of the target point corresponding to the test chart can be determined according to the included angle, the field angle and the test distance. Referring to fig. 4, the imaging height of the target point may be determined according to the field angle and the test distance, and then the coordinate position of the target point may be determined according to the imaging height and the included angle.
Specifically, the imaging height IH of the target point may be determined according to the field angle FOV and a preset test distance L of the fisheye camera. The testing distance is the distance between the lens of the camera to be tested and the test chart in the testing process. The testing distance can be a fixed value which can be set according to the testing requirement. Are known constants.
Therefore, based on the above equations (6) and (7), it can be determined that the imaging height IH of the target point can be determined according to the following equation:
IH=tan(FOV)*L (8)
in the case where the test distance L is a known constant, which can be found based on the above equations (4), (5), (6), (7), and (8), the coordinates of the target point can be obtained according to the following equation:
X=tan{f[f(θ)]}*L*conθ (9)
Y=tan{f[f(θ)]}*L*sinθ (10)
wherein, Y is the first axis coordinate of the comparison point, and X is the second axis coordinate of the comparison point. Theta is an included angle between a connecting line between the reference point and the coordinate origin and the second coordinate axis.
Optionally, in a specific embodiment, based on the principle, a data processing module that uses the angle θ as an input parameter and uses the coordinates of the target point as an output parameter may be set in a terminal device. And obtaining the coordinate position of the target point of the test block in the test chart to be drawn from the included angle theta which can be input into the standard test chart. And drawing a target test block in the test chart to be drawn according to the coordinate position so as to quickly draw the test chart which can be used for providing the SFR test precision of the fisheye camera.
In the technical scheme disclosed in this embodiment, an included angle corresponding to a comparison point in a standard test chart is obtained first, wherein the comparison point includes at least two points on each side line of a test block of the standard test chart, the included angle corresponding to the comparison point is an included angle between a connecting line between the comparison point and an origin of a preset coordinate system and a target coordinate axis in the target coordinate system, then a field view angle of a camera to be tested and a test distance of the camera to be tested are obtained, a coordinate position of a target point corresponding to the test chart is determined according to the included angle, the field view angle and the test distance, the test chart is drawn according to the coordinate position of the target point, and since the standard test chart can be used as a basis, the test chart for the SFR test of the fisheye camera is reversely deduced, that is, the distortion characteristic of the fisheye camera is based on, the pre-distortion of the mark test chart is performed, in the testing process of the fisheye camera, the test imaging pattern comprises the standard test block, so that the effect of improving the accuracy of the SFR test result of the fisheye camera is achieved.
Referring to fig. 7, based on the foregoing embodiment, in another embodiment, the step S40 includes:
step S41, drawing a target test block in the test chart to be drawn according to the coordinate position of the target point;
step S42, performing gray scale processing on the test chart to be drawn of the drawn target test block;
and step S43, taking the test chart to be drawn after the gray scale processing as a test chart of the fisheye camera.
It is understood that the edge of the test block can be regarded as a line segment consisting of an infinite number of points, and therefore, in the present embodiment, when a limited number of input parameters are input, the coordinate positions of a limited number of target points can be derived. Further, discrete points on the edge can be formed according to the coordinate positions of the limited number of target points. Thereby fitting a corresponding edge line. Therefore, the more the number of coordinate positions of the acquired target point is, the more accurate the fitted edge line is.
In this embodiment, a target test block may be drawn in the test chart to be drawn according to the coordinate position of the target point, that is, an edge line of the target test block may be drawn in the test chart to be drawn according to the coordinate position of the target point, so that the edge line encloses the target test block in the test chart to be drawn. And performing gray scale processing on the test chart to be drawn of the drawn target test block, and taking the test chart to be drawn after the gray scale processing as a test chart of the fish-eye camera.
The gray scale processing effect is shown in fig. 8, and the test block in the test chart drawn with the test block can be changed into black. Of course, the test block can be changed into a color block of other colors by other processing modes based on the test requirement.
According to the technical scheme, the gray level processing can be performed on the test chart drawn based on the coordinate position of the target point, so that the test result of the SFR test performed based on the test chart is more accurate.
In addition, an embodiment of the present invention further provides a terminal device, where the terminal device includes a memory, a processor, and a test chart drawing program that is stored in the memory and is executable on the processor, and when the test chart drawing program is executed by the processor, the steps of the test chart drawing method according to the above embodiments are implemented.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where a test chart drawing program is stored on the computer-readable storage medium, and when the test chart drawing program is executed by a processor, the steps of the test chart drawing method according to the above embodiments are implemented.
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 system 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 system. 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 system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above and includes several instructions for enabling a terminal device (e.g. PC, etc.) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (6)

1. A method for drawing a test chart is characterized by comprising the following steps:
acquiring an included angle corresponding to a comparison point in a standard test chart, wherein the comparison point comprises at least two points on each side line of a test block of the standard test chart, and the included angle corresponding to the comparison point is an included angle between a connecting line between the comparison point and an original point of a preset coordinate system and a target coordinate axis in a target coordinate system;
acquiring a field view angle of a camera to be tested and a pre-stored testing distance corresponding to the camera to be tested;
determining the coordinate position of a target point corresponding to the test chart according to the included angle, the field angle and the test distance;
fitting a side line of a target test block in the test chart to be drawn according to the coordinate positions of the limited number of the target points;
drawing the target test block according to the fitted sideline;
performing gray scale processing on the test chart to be drawn of the drawn target test block;
and taking the test chart to be drawn after the gray scale processing as a test chart of the fisheye camera.
2. The method for drawing the test chart according to claim 1, wherein the step of determining the coordinate position of the target point in the test chart according to the included angle, the field angle and the test distance comprises:
determining the imaging height of the target point according to the field angle and the test distance;
and determining the coordinate position of the target point according to the imaging height and the included angle.
3. The method for drawing the test chart according to claim 1, wherein the step of obtaining the field angle of the camera to be tested and the test distance of the camera to be tested comprises:
acquiring the coordinate position of the comparison point;
determining the imaging height of the comparison point according to the coordinate position of the comparison point and the included angle;
determining the field view angle of the camera to be detected according to the imaging height of the contrast point;
and acquiring the pre-stored test distance.
4. The method for drawing a test chart according to claim 1, wherein the step of obtaining the included angle corresponding to the control point in the standard test chart further comprises:
and respectively establishing the preset coordinate system by taking the central points of the standard test chart and the test chart to be drawn as coordinate original points so as to enable the coordinates in the standard test chart and the test chart to be drawn to correspond one to one.
5. A terminal device, characterized in that the terminal device comprises: a memory, a processor, and a test chart drawing program stored on the memory and executable on the processor, the test chart drawing program, when executed by the processor, implementing the steps of the test chart drawing method according to any one of claims 1 to 4.
6. A computer-readable storage medium, on which a test chart drawing program is stored, the test chart drawing program, when executed by a processor, implementing the steps of the test chart drawing method according to any one of claims 1 to 4.
CN202010608596.9A 2020-06-29 2020-06-29 Test chart drawing method, terminal device and storage medium Active CN111795805B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010608596.9A CN111795805B (en) 2020-06-29 2020-06-29 Test chart drawing method, terminal device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010608596.9A CN111795805B (en) 2020-06-29 2020-06-29 Test chart drawing method, terminal device and storage medium

Publications (2)

Publication Number Publication Date
CN111795805A CN111795805A (en) 2020-10-20
CN111795805B true CN111795805B (en) 2022-06-21

Family

ID=72809574

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010608596.9A Active CN111795805B (en) 2020-06-29 2020-06-29 Test chart drawing method, terminal device and storage medium

Country Status (1)

Country Link
CN (1) CN111795805B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112304577B (en) * 2020-11-06 2022-04-22 歌尔光学科技有限公司 Light curtain size testing method, light curtain size testing equipment and storage medium
CN112985778B (en) * 2021-03-01 2022-06-21 歌尔科技有限公司 Test chart positioning method, terminal and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106162157B (en) * 2015-03-24 2018-06-26 惠州市德赛西威汽车电子股份有限公司 The test method of the spatial frequency response of fish-eye camera
WO2019049331A1 (en) * 2017-09-08 2019-03-14 株式会社ソニー・インタラクティブエンタテインメント Calibration device, calibration system, and calibration method
CN109003311B (en) * 2018-08-22 2022-03-18 上海庄生晓梦信息科技有限公司 Calibration method of fisheye lens
CN109191534A (en) * 2018-09-06 2019-01-11 信利光电股份有限公司 A kind of visual field test method, device, equipment and the storage medium of flake mould group
CN109451302A (en) * 2018-12-07 2019-03-08 昆山丘钛微电子科技有限公司 A kind of camera module test method, device, electronic equipment and medium
CN111031311B (en) * 2020-01-14 2021-07-16 深圳安智杰科技有限公司 Imaging quality detection method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN111795805A (en) 2020-10-20

Similar Documents

Publication Publication Date Title
US10366476B2 (en) Perspective correction for curved display screens
CN108111828B (en) Projection equipment correction method and device and projection equipment
CN111795805B (en) Test chart drawing method, terminal device and storage medium
CN111047615B (en) Image-based straight line detection method and device and electronic equipment
CN109784250B (en) Positioning method and device of automatic guide trolley
CN111093067B (en) Projection apparatus, lens distortion correction method, distortion correction device, and storage medium
CN108074237B (en) Image definition detection method and device, storage medium and electronic equipment
CN110736610B (en) Method and device for measuring optical center deviation, storage medium and depth camera
CN112862895B (en) Fisheye camera calibration method, device and system
CN112270719A (en) Camera calibration method, device and system
KR101583423B1 (en) Method for calibrating distortion of image in camera
US8275191B2 (en) Image processing apparatus and method for generating coordination calibration points
CN109313811B (en) Automatic correction method, device and system based on vibration displacement of vision system
CN111932571B (en) Image boundary identification method and device and computer readable storage medium
CN110415196B (en) Image correction method, device, electronic equipment and readable storage medium
US8855401B2 (en) Methods and systems involving measuring complex dimensions of silicon devices
CN116012242A (en) Camera distortion correction effect evaluation method, device, medium and equipment
CN112927276B (en) Image registration method, device, electronic equipment and storage medium
CN115760653A (en) Image correction method, device, equipment and readable storage medium
WO2018198916A1 (en) Image processing device, image processing method and storage medium
CN112991202B (en) Optical center position calibration method, terminal device and computer readable storage medium
CN111739090B (en) Method and device for determining position of field of view and computer readable storage medium
CN111428707B (en) Method and device for identifying pattern identification code, storage medium and electronic equipment
CN113850100A (en) Method and device for correcting two-dimensional code
CN112907462A (en) Distortion correction method and system for ultra-wide-angle camera device and shooting device comprising distortion correction system

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