CN116567200A - Method and device for adjusting test view field, test equipment and computer medium - Google Patents

Method and device for adjusting test view field, test equipment and computer medium Download PDF

Info

Publication number
CN116567200A
CN116567200A CN202310505031.1A CN202310505031A CN116567200A CN 116567200 A CN116567200 A CN 116567200A CN 202310505031 A CN202310505031 A CN 202310505031A CN 116567200 A CN116567200 A CN 116567200A
Authority
CN
China
Prior art keywords
test
coordinate
view
field
collimator
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310505031.1A
Other languages
Chinese (zh)
Inventor
李才
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Inc
Original Assignee
Goertek Inc
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 Inc filed Critical Goertek Inc
Priority to CN202310505031.1A priority Critical patent/CN116567200A/en
Publication of CN116567200A publication Critical patent/CN116567200A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/56Cameras or camera modules comprising electronic image sensors; Control thereof provided with illuminating means

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

The application discloses a test view field adjusting method, a device, test equipment and a computer medium, relates to the technical field of image processing, and comprises the following steps: acquiring a preset test view field, and determining a first space coordinate corresponding to a central collimator contained in the test view field; determining second space coordinates corresponding to each other collimator except the central collimator in the test view field, and determining first plane coordinates corresponding to each other collimator based on each second space coordinate; acquiring a preset camera parameter table, obtaining a linear fitting function based on the camera parameter table, and converting each first plane coordinate into a target demand coordinate corresponding to the sensor through the linear fitting function; and adjusting the position of the test view field based on the target demand coordinate and the first space coordinate so as to enable the test view field to be positioned at the demand position corresponding to the sensor. By adopting the method and the device, the technical effect that the test equipment can quickly and accurately adjust the position of the test view field can be achieved.

Description

Method and device for adjusting test view field, test equipment and computer medium
Technical Field
The present disclosure relates to the field of image processing technologies, and in particular, to a method and apparatus for adjusting a test field of view, a test device, and a computer readable storage medium.
Background
With the continuous development of cameras, panoramic cameras comprising large wide-angle lenses become shooting choices for more and more users, and in the process of panoramic camera production, technicians mainly detect a shooting module configured in the panoramic camera through test equipment configured with a light source plate, however, because the test equipment configured with the light source plate has the characteristic of excessively large volume, and when the large wide-angle lens in the panoramic camera exceeds 150 degrees, the technicians cannot detect the shooting module through the test equipment configured with the light source plate, so that more and more technicians choose to detect the shooting module through the test equipment configured with a collimator.
However, when the camera module is detected by the test device equipped with the collimator, a technician often needs to spend more time adjusting the test field of view corresponding to the collimator, and meanwhile, the large wide-angle lens causes a certain degree of distortion of the image during imaging, so that the position of the test field of view is more difficult to adjust.
Disclosure of Invention
The main purpose of the application is to provide a method and a device for adjusting a test view field, test equipment and a computer readable storage medium, and aims to enable the test equipment to quickly and accurately adjust the position of the test view field.
In order to achieve the above object, the present application provides a method for adjusting a test field of view, which is applied to a test device to detect a camera module configured with a sensor, and includes the following steps:
acquiring a preset test view field, and determining a first space coordinate corresponding to a central collimator contained in the test view field;
determining second space coordinates corresponding to each other collimator except the central collimator in the test view field, and determining first plane coordinates corresponding to each other collimator based on each second space coordinate;
acquiring a preset camera parameter table, obtaining a linear fitting function based on the camera parameter table, and converting each first plane coordinate into a target demand coordinate corresponding to the sensor through the linear fitting function;
and adjusting the position of the test view field based on the target demand coordinate and the first space coordinate so that the test view field is positioned at the demand position corresponding to the sensor.
Further, the step of determining the first space coordinates corresponding to the central collimator included in the test field of view includes:
determining a test distance and an effective diameter corresponding to a central collimator included in the test view field, and determining a first included angle value corresponding to the central collimator, wherein the first included angle value is an included angle value between a central point of the collimator and a horizontal direction;
and determining a first space coordinate corresponding to the central collimator based on the test distance, the effective diameter and the first included angle value corresponding to the central collimator, wherein the first space coordinate is the space coordinate of the central collimator relative to the central point of the sensor.
Further, the step of determining the second spatial coordinates corresponding to each of the other parallel light pipes except the central parallel light pipe in the test field of view includes:
determining the first included angle value and the second included angle value which are respectively corresponding to other parallel light pipes except the central parallel light pipe in the test view field, wherein the second included angle value is the included angle value of the central point of the other parallel light pipes and the central point of the central parallel light pipe in the vertical direction;
And determining second space coordinates corresponding to the other parallel light pipes based on the first included angle value, the second included angle value, the test distance and the effective diameter corresponding to the other parallel light pipes, wherein the second space coordinates are space coordinates of the other parallel light pipes relative to the central point of the sensor.
Further, the step of determining the first plane coordinates corresponding to each of the other collimator based on each of the second spatial coordinates includes:
determining a third included angle value corresponding to each other collimator, wherein the third included angle value is an included angle value of the central point of the other collimator and the central point of the central collimator in the horizontal direction;
and determining the first plane coordinates corresponding to the other parallel light pipes based on the second space coordinates corresponding to the other parallel light pipes and the third included angle value.
Further, the step of obtaining a linear fitting function based on the camera parameter table includes:
determining the image height value and the view angle value of each lens contained in the camera parameter table;
And performing linear fitting on each lens image height value and each view field angle value to obtain a linear fitting function.
Further, the step of converting each first plane coordinate into a target demand coordinate corresponding to the sensor through the linear fitting function includes:
determining a first plane abscissa calculation formula and a first plane ordinate calculation formula corresponding to each first plane coordinate;
determining a second plane ordinate calculation formula and a second plane ordinate calculation formula based on the linear fitting function, the first plane abscissa calculation formula and the first plane ordinate calculation formula;
and converting each first plane coordinate into a target demand coordinate corresponding to the sensor according to the second plane abscissa calculation formula and the second plane ordinate calculation formula.
Further, the step of adjusting the position of the test field of view based on the target demand coordinate and the first space coordinate to make the test field of view be at the demand position corresponding to the sensor includes:
determining an angle difference between the target demand coordinate and the first spatial coordinate;
and adjusting the position of the test view field based on the angle difference value so that the test view field is positioned at a required position corresponding to the sensor.
In addition, in order to achieve the above-mentioned purpose, the present application still provides an adjusting device of test visual field, adjusting device of test visual field is applied to test equipment and detects the camera module that is configured with the sensor, and the device includes:
the first coordinate calculation module is used for acquiring a preset test view field and determining a first space coordinate corresponding to a central collimator contained in the test view field;
the second coordinate calculation module is used for determining second space coordinates corresponding to each other collimator except the central collimator in the test view field, and determining first plane coordinates corresponding to each other collimator based on each second space coordinate;
the plane coordinate conversion module is used for acquiring a preset camera parameter table, obtaining a linear fitting function based on the camera parameter table, and converting each first plane coordinate into a target demand coordinate corresponding to the sensor through the linear fitting function;
and the test view field adjusting module is used for adjusting the position of the test view field based on the target demand coordinate and the first space coordinate so that the test view field is positioned at the demand position corresponding to the sensor.
In addition, to achieve the above object, the present application further provides a test apparatus including: the system comprises a memory, a processor and a test field adjusting program stored in the memory and capable of running on the processor, wherein the test field adjusting program realizes the steps of the test field adjusting method when being executed by the processor.
In addition, in order to achieve the above object, the present application further provides a computer readable storage medium having stored thereon a program for adjusting a test field of view, which when executed by a processor, implements the steps of the method for adjusting a test field of view as described above.
The method, the device, the test equipment and the computer readable storage medium for adjusting the test view field are applied to the test equipment to detect the camera module provided with the sensor, and a preset test view field is obtained and a first space coordinate corresponding to a central collimator contained in the test view field is determined; determining second space coordinates corresponding to each other collimator except the central collimator in the test view field, and determining first plane coordinates corresponding to each other collimator based on each second space coordinate; acquiring a preset camera parameter table, obtaining a linear fitting function based on the camera parameter table, and converting each first plane coordinate into a target demand coordinate corresponding to the sensor through the linear fitting function; and adjusting the position of the test view field based on the target demand coordinate and the first space coordinate so that the test view field is positioned at the demand position corresponding to the sensor.
In this embodiment, when the test device is running, firstly, a test field of view preset by a technician and including a plurality of parallel light pipes is acquired, the test field of view is fixed at a target position corresponding to a sensor included in the camera module, meanwhile, the test device determines a first space coordinate of a central parallel light pipe included in the test field of view relative to the sensor, then, the test device determines second space coordinates of each of the parallel light pipes except for the central parallel light pipe in the test field of view relative to the sensor, and determines a first plane coordinate of each of the other parallel light pipes relative to the central parallel light pipe based on each second space coordinate, then, the test device reads a storage device to acquire a camera parameter table preset by the technician, and obtains a linear fitting function based on the camera parameter table, the test device converts each first plane coordinate into a target requirement coordinate corresponding to the sensor according to the linear fitting function, and finally, the test device adjusts the position of the test field of view based on the target requirement coordinate and the first space coordinate, so that the test field of view is at a required position corresponding to the sensor.
Therefore, the position of the test field is adjusted by determining the second space coordinates corresponding to each other collimator except the central collimator in the test field and the first plane coordinates corresponding to each second space coordinate, and performing linear fitting on each first plane coordinate to obtain the target demand coordinates corresponding to the sensor, so that the technical effect that the test equipment can quickly and accurately adjust the position of the test field is achieved.
Drawings
FIG. 1 is a schematic diagram of a test device of a hardware operating environment according to an embodiment of the present application;
FIG. 2 is a flow chart of a first embodiment of a method for adjusting a test field of view according to the present application;
FIG. 3 is a schematic view of a test field of view according to an embodiment of a method for adjusting a test field of view of the present application;
FIG. 4 is a schematic diagram of a calculation principle related to an embodiment of a method for adjusting a test field of view according to the present application;
FIG. 5 is a schematic view of a planar test field of view according to an embodiment of a method for adjusting a test field of view of the present application;
FIG. 6 is a diagram illustrating a table of camera parameters according to an embodiment of a method for adjusting a test field of view of the present application;
fig. 7 is a schematic diagram of functional modules involved in an embodiment of a method for adjusting a test field of view of the present application.
The realization, functional characteristics and advantages of the present application will be further described with reference to the embodiments, referring to the attached drawings.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a test device of a hardware running environment according to an embodiment of the present application.
It should be noted that fig. 1 may be a schematic structural diagram of a hardware running environment of the test apparatus. The test equipment of the embodiment of the invention can be equipment for executing the test view field adjusting method of the invention, and the test equipment can be a mobile terminal, a data storage control terminal, a PC or a portable computer and other terminals.
As shown in fig. 1, the test apparatus may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a high-speed random access Memory (Random Access Memory, RAM) Memory or a stable nonvolatile Memory (NVM), such as a disk Memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the configuration shown in fig. 1 is not limiting of the test apparatus and may include more or fewer components than shown, or certain components may be combined, or a different arrangement of components.
As shown in fig. 1, an operating system, a data storage module, a network communication module, a user interface module, and a test field adjustment program may be included in the memory 1005 as one type of storage medium.
In the test device shown in fig. 1, the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the test apparatus of the present application may be provided in the test apparatus, and the test apparatus calls the adjustment program of the test field of view stored in the memory 1005 through the processor 1001 and performs the following operations:
acquiring a preset test view field, and determining a first space coordinate corresponding to a central collimator contained in the test view field;
determining second space coordinates corresponding to each other collimator except the central collimator in the test view field, and determining first plane coordinates corresponding to each other collimator based on each second space coordinate;
acquiring a preset camera parameter table, obtaining a linear fitting function based on the camera parameter table, and converting each first plane coordinate into a target demand coordinate corresponding to the sensor through the linear fitting function;
and adjusting the position of the test view field based on the target demand coordinate and the first space coordinate so that the test view field is positioned at the demand position corresponding to the sensor.
Further, the processor 1001 invokes an adjustment program of the test field of view stored in the memory 1005, and also performs the following operations:
determining a test distance and an effective diameter corresponding to a central collimator included in the test view field, and determining a first included angle value corresponding to the central collimator, wherein the first included angle value is an included angle value between a central point of the collimator and a horizontal direction;
and determining a first space coordinate corresponding to the central collimator based on the test distance, the effective diameter and the first included angle value corresponding to the central collimator, wherein the first space coordinate is the space coordinate of the central collimator relative to the central point of the sensor.
Further, the processor 1001 invokes an adjustment program of the test field of view stored in the memory 1005, and also performs the following operations:
determining the first included angle value and the second included angle value which are respectively corresponding to other parallel light pipes except the central parallel light pipe in the test view field, wherein the second included angle value is the included angle value of the central point of the other parallel light pipes and the central point of the central parallel light pipe in the vertical direction;
And determining second space coordinates corresponding to the other parallel light pipes based on the first included angle value, the second included angle value, the test distance and the effective diameter corresponding to the other parallel light pipes, wherein the second space coordinates are space coordinates of the other parallel light pipes relative to the central point of the sensor.
Further, the processor 1001 invokes an adjustment program of the test field of view stored in the memory 1005, and also performs the following operations:
determining a third included angle value corresponding to each other collimator, wherein the third included angle value is an included angle value of the central point of the other collimator and the central point of the central collimator in the horizontal direction;
and determining the first plane coordinates corresponding to the other parallel light pipes based on the second space coordinates corresponding to the other parallel light pipes and the third included angle value.
Further, the processor 1001 invokes an adjustment program of the test field of view stored in the memory 1005, and also performs the following operations:
determining the image height value and the view angle value of each lens contained in the camera parameter table;
and performing linear fitting on each lens image height value and each view field angle value to obtain a linear fitting function.
Further, the processor 1001 invokes an adjustment program of the test field of view stored in the memory 1005, and also performs the following operations:
determining a first plane abscissa calculation formula and a first plane ordinate calculation formula corresponding to each first plane coordinate;
determining a second plane ordinate calculation formula and a second plane ordinate calculation formula based on the linear fitting function, the first plane abscissa calculation formula and the first plane ordinate calculation formula;
and converting each first plane coordinate into a target demand coordinate corresponding to the sensor according to the second plane abscissa calculation formula and the second plane ordinate calculation formula.
Further, the processor 1001 invokes an adjustment program of the test field of view stored in the memory 1005, and also performs the following operations:
determining an angle difference between the target demand coordinate and the first spatial coordinate;
and adjusting the position of the test view field based on the angle difference value so that the test view field is positioned at a required position corresponding to the sensor.
Based on the above-described test apparatus, various embodiments of the test field adjustment method of the present invention are provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a method for adjusting a test field of view according to the present invention.
It should be understood that while a logical sequence is shown in the flow chart, in some cases the method of adjustment of the test field of view of the present invention may of course perform the steps shown or described in a different order than that which is shown.
In this embodiment, the method for adjusting the test field of view, which is applied to test equipment for detecting the camera module provided with the sensor, may include the following steps:
step S10: acquiring a preset test view field, and determining a first space coordinate corresponding to a central collimator contained in the test view field;
in this embodiment, when the test device is running, first, a test field of view preset by a technician and including a plurality of collimator tubes is acquired, the test field of view is fixed at a target position corresponding to a sensor included in the camera module, and at the same time, the test device determines a first spatial coordinate of a central collimator tube located at the center of the test field of view relative to the sensor.
For example, referring to fig. 3, fig. 3 is a schematic view of a test field related to an embodiment of a method for adjusting a test field of view of the present application, when a test device is running, firstly, a test field of view (as shown in fig. 3) preset by a technician and including a plurality of parallel light pipes is obtained, meanwhile, the test device determines a required position corresponding to a sensor included in an image capturing module, so as to deploy the test field of view at the required position, the test device further uses the sensor as an origin to construct a spatial coordinate system, and sets spatial coordinates corresponding to the sensor as (0, 0), and the test device further determines a first spatial coordinate (x) of a central parallel light pipe at the center of the test field of view relative to (0, 0) 1 ,y 1 ,z 1 )。
Further, in a possible embodiment, the step of determining the first spatial coordinate corresponding to the central collimator included in the test field in the step S10 may specifically include:
step S101: determining a test distance and an effective diameter corresponding to a central collimator included in the test view field, and determining a first included angle value corresponding to the central collimator, wherein the first included angle value is an included angle value between a central point of the collimator and a horizontal direction;
step S102: determining a first space coordinate corresponding to the central collimator based on a test distance, an effective diameter and a first included angle value corresponding to the central collimator, wherein the first space coordinate is a space coordinate of the central collimator relative to a central point of the sensor;
for example, referring to fig. 4, fig. 4 is a schematic diagram illustrating a calculation principle involved in an embodiment of a method for adjusting a test field of view of the present application, as shown in fig. 4, a test device first determines a central collimator at a center of a test field of view based on a spatial coordinate (0, 0) corresponding to a sensor and a required position at a test field of view, and a test distance L between the sensor, and at the same time, the test device detects the central collimator to determine an effective diameter D corresponding to the central collimator, and at the same time, the test device determines a first angle value θ between a center point and a horizontal direction of the central collimator, and then, the test device determines a first spatial coordinate (x) of the central collimator with respect to the spatial coordinate (0, 0) corresponding to the sensor based on the effective diameter D corresponding to the central collimator, the test distance L, and the first angle value θ 1 ,y 1 ,z 1 ) The method comprises the following steps:
step S20: determining second space coordinates corresponding to each other collimator except the central collimator in the test view field, and determining first plane coordinates corresponding to each other collimator based on each second space coordinate;
in this embodiment, the test apparatus determines the second spatial coordinates of each of the other collimator other than the central collimator with respect to the sensor in the test field of view, and calculates the first plane coordinates of each of the other collimator with respect to the central collimator based on each of the second spatial coordinates.
Exemplary, for example, the test apparatus determines the first spatial coordinates (x 1 ,y 1 ,z 1 ) Thereafter, a second spatial coordinate (x 2 ,y 2 ,z 2 ) The test apparatus is further based on the central collimator, based on the acquired second spatial coordinates (x 2 ,y 2 ,z 2 ) Determining a first plane coordinate (x 3 ,y 3 )。
Further, in a possible embodiment, the step of determining the second spatial coordinates corresponding to each of the other parallel light pipes except for the central parallel light pipe in the test field in the step S20 may specifically include:
Step S201: determining the first included angle value and the second included angle value which are respectively corresponding to other parallel light pipes except the central parallel light pipe in the test view field, wherein the second included angle value is the included angle value of the central point of the other parallel light pipes and the central point of the central parallel light pipe in the vertical direction;
step S202: determining second space coordinates corresponding to the other parallel light pipes based on the first included angle value, the second included angle value, the test distance and the effective diameter corresponding to the other parallel light pipes, wherein the second space coordinates are space coordinates of the other parallel light pipes relative to a center point of the sensor;
for example, referring to FIG. 4, the test apparatus first determines each of the others within the target test field of view except for the central collimatorThe first angle value theta corresponding to each collimator, and the test equipment detects each other collimator, so as to respectively determine the angle phi between each other collimator and the central collimator in the vertical direction, determine the test distance L and the effective execution D of each other collimator relative to the sensor, and then determine the second space coordinates (x 2 ,y 2 ,z 2 ) The method comprises the following steps:
further, in a possible embodiment, the step of determining the first plane coordinates corresponding to each of the other collimator based on each of the second spatial coordinates in the step S20 may specifically include:
step S203: determining a third included angle value corresponding to each other collimator, wherein the third included angle value is an included angle value of the central point of the other collimator and the central point of the central collimator in the horizontal direction;
step S204: determining a first plane coordinate corresponding to each other collimator based on the second space coordinate and the third included angle value corresponding to each other collimator;
for example, refer to fig. 4 and fig. 5, where fig. 5 is a schematic view of a planar test field related to an embodiment of a method for adjusting a test field of the present application, and as shown in fig. 4, the test apparatus first determines a third angle value between each of the other parallel light pipes and the central parallel light in a horizontal directionMeanwhile, the testing equipment determines second space coordinates corresponding to each other collimator, and determines a second space abscissa calculation formula corresponding to each second space coordinate as follows:
Meanwhile, the test equipment determines that the second space ordinate calculation formulas corresponding to the second space coordinates are as follows:
then, the testing equipment is based on a second space abscissa calculation formula, a second space ordinate calculation formula and a third included angle value which are respectively corresponding to other parallel light pipesThe first plane abscissa calculation formula corresponding to each other collimator is determined as follows:
and, the first plane ordinate calculation formula is:
the test apparatus further calculates a first plane coordinate (x) of each collimator with respect to the center collimator as shown in fig. 5 based on the first plane abscissa calculation formula and the first plane ordinate calculation formula corresponding to each other collimator 3 ,y 3 )。
Step S30: acquiring a preset camera parameter table, obtaining a linear fitting function based on the camera parameter table, and converting each first plane coordinate into a target demand coordinate corresponding to the sensor through the linear fitting function;
in this embodiment, the test device reads the storage device to obtain a camera parameter table preset by a technician, determines each camera parameter included in the camera parameter table, further performs linear fitting on each camera parameter to obtain a linear fitting function, and converts each first plane coordinate corresponding to each other collimator into a target demand coordinate corresponding to the sensor through the linear fitting function.
For example, the test device first reads the internal memory device to obtain a camera parameter table preset by a technician and including each camera parameter, and determines each camera parameter included in the camera table parameters, and then, the test device performs linear fitting on each camera parameter by the least square method to obtain a linear fitting function, and uses the linear fitting function to obtain a first plane coordinate (x 3 ,y 3 ) Is converted into a target demand coordinate (x 4 ,y 4 )。
Further, in a possible embodiment, the step of obtaining the linear fitting function based on the camera parameter table in the step S30 may specifically include:
step S301: determining the image height value and the view angle value of each lens contained in the camera parameter table;
step S302: performing linear fitting on each lens image height value and each view field angle value to obtain a linear fitting function;
for example, referring to fig. 6, fig. 6 is a schematic diagram of a camera parameter table according to an embodiment of a method for adjusting a test field of view of the present application, because when an image capturing module captures an image through a wide-angle lens, the generated image is greatly distorted, and thus, when each first plane coordinate is converted into a target demand coordinate corresponding to a sensor, the target demand coordinate cannot be obtained through the relationship between similar triangles.
Therefore, the test apparatus first reads the storage device to obtain a camera parameter table including a plurality of image height values and a plurality of field angle values as shown in fig. 6, and determines the respective corresponding image height ih values and field angle values of the image capturing module under a plurality of field of view based on the camera parameter tableThe test device then determines the value of the image height ih and the angle of view +.>The relation between the two is:
meanwhile, the testing equipment determines a calculation formula corresponding to the field angle based on a first plane abscissa calculation formula and a first plane ordinate calculation formula corresponding to each other collimator respectively as follows:
the testing device further converts each first plane coordinate into a target demand coordinate corresponding to the sensor based on the linear fitting function.
Further, in a possible embodiment, the step of converting each of the first plane coordinates into the target demand coordinate corresponding to the sensor in the step S30 by using the linear fitting function may specifically include:
step S303: determining a first plane abscissa calculation formula and a first plane ordinate calculation formula corresponding to each first plane coordinate;
step S304: determining a second plane ordinate calculation formula and a second plane ordinate calculation formula based on the linear fitting function, the first plane abscissa calculation formula and the first plane ordinate calculation formula;
Step S305: converting each first plane coordinate into a target demand coordinate corresponding to a sensor according to the second plane abscissa calculation formula and the second plane ordinate calculation formula;
for example, based on the characteristics of the lens in the image pickup device, the angle of the lens in the normal direction does not change, so that the target demand coordinates corresponding to the sensor and the plane coordinate points corresponding to the other parallel light pipes included in the test field of view are in one-to-one correspondence, and thus the test apparatus first determines the first plane coordinates (x 3 ,y 3 ) The corresponding first plane abscissa calculation formula is:
and determining the first plane coordinates (x 3 ,y 3 ) The corresponding first plane ordinate calculation formula is:
then, the test equipment determines a second plane abscissa calculation formula based on the obtained linear fitting function, the first plane abscissa calculation formula and the first plane abscissa calculation formula as follows:
meanwhile, the test equipment determines a second plane ordinate calculation formula based on the linear fitting function, the first plane abscissa calculation formula and the first plane abscissa calculation formula as follows:
finally, the test equipment calculates the first plane coordinates (x) according to the second plane abscissa calculation formula and the second plane ordinate calculation formula 3 ,y 3 ) Is converted into a target demand coordinate (x 4 ,y 4 );
Thus, the present application is implemented by comparing the image height ih value and the angle of view contained in the camera parameter tableThe linear fitting function is obtained by linear fitting, and the mode that each first plane coordinate is converted into the target demand coordinate corresponding to the sensor through the linear fitting function is achieved, so that the technical problem that the image is distorted when the sensor acquires the image through the wide-angle lens is solved, and the testing equipment can accurately adjust the position of the testing view field.
Step S40: adjusting the position of the test view field based on the target demand coordinate and the first space coordinate so that the test view field is positioned at a demand position corresponding to the sensor;
for example, the testing device adjusts the position of the testing view field based on the target demand coordinate and the first space coordinate corresponding to the central sensor, detects whether the target demand coordinate and the first space coordinate coincide in the process of adjusting the position, and determines that the testing view field is at the demand position corresponding to the sensor when the testing device detects that the target demand coordinate and the first space coordinate coincide.
Further, in a possible embodiment, the step S40 may specifically include:
Step S401: determining an angle difference between the target demand coordinate and the first spatial coordinate;
step S402: adjusting the position of the test view field based on the angle difference value so that the test view field is positioned at a required position corresponding to the sensor;
for example, the test equipment may determine the target demand coordinates (x 4 ,y 4 ) Thereafter, the target demand coordinates (x 4 ,y 4 ) First space coordinates (x) 1 ,y 1 ,z 1 ) The angle difference value between the two images, and the testing equipment further adjusts the position of the testing visual field based on the angle difference value so that the testing visual field is positioned at the position corresponding to the sensorThe location of the demand.
In this embodiment, when the test device is running, firstly, a test view field preset by a technician and containing a plurality of parallel light pipes is acquired, the test view field is fixed at a target position corresponding to a sensor contained in a camera module, meanwhile, the test device determines a first space coordinate of a central parallel light pipe positioned in the center of the test view field relative to the sensor, then, the test device determines a second space coordinate of each other parallel light pipe except for the central parallel light pipe in the test view field relative to the sensor, and based on each second space coordinate, a first plane coordinate of each other parallel light pipe relative to the central parallel light pipe is obtained through calculation, then, the test device reads a storage device to acquire a camera parameter table preset by the technician, and determines each camera parameter contained in the camera table parameter, the test device further carries out linear fitting on each camera parameter to obtain a linear fitting function, and converts each first plane coordinate corresponding to each other parallel light pipe into a target demand coordinate corresponding to the sensor through the linear fitting function, finally, the test device adjusts the position of the test view field based on the target demand coordinate and the first space coordinate corresponding to the central sensor, and detects whether the target demand coordinate and the first space coordinate coincide with the first space coordinate of the first parallel light pipe when the target demand coordinate and the first space coordinate coincide with the first sensor demand test device.
Therefore, the position of the test field is adjusted by determining the second space coordinates corresponding to each other collimator except the central collimator in the test field and the first plane coordinates corresponding to each second space coordinate, and performing linear fitting on each first plane coordinate to obtain the target demand coordinates corresponding to the sensor, so that the technical effect that the test equipment can quickly and accurately adjust the position of the test field is achieved.
Further, to achieve the above objective, the present application further provides a device for adjusting a test field of view, where the device for adjusting a test field of view is applied to test equipment to detect a camera module configured with a sensor, please refer to fig. 7, fig. 7 is a schematic diagram of a functional module involved in an embodiment of a method for adjusting a test field of view of the present application, as shown in fig. 7, and the device includes:
the first coordinate calculation module 10 is configured to obtain a preset test field of view, and determine a first spatial coordinate corresponding to a central collimator included in the test field of view;
a second coordinate calculation module 20, configured to determine second spatial coordinates corresponding to each of the other parallel light pipes except for the central parallel light pipe in the test field, and determine first plane coordinates corresponding to each of the other parallel light pipes based on each of the second spatial coordinates;
The plane coordinate conversion module 30 is configured to obtain a preset camera parameter table, obtain a linear fitting function based on the camera parameter table, and convert each first plane coordinate into a target demand coordinate corresponding to the sensor through the linear fitting function;
and the test view field adjusting module 40 is configured to adjust a position of the test view field based on the target requirement coordinate and the first space coordinate, so that the test view field is located at a requirement position corresponding to the sensor.
Further, the first coordinate calculation module 10 includes:
the first parameter extraction unit is used for determining a test distance and an effective diameter corresponding to a central collimator contained in the test view field and determining a first included angle value corresponding to the central collimator, wherein the first included angle value is an included angle value between a central point of the collimator and a horizontal direction;
and the first parameter calculation unit is used for determining a first space coordinate corresponding to the central collimator based on the test distance, the effective diameter and the first included angle value corresponding to the central collimator, wherein the first space coordinate is the space coordinate of the central collimator relative to the central point of the sensor.
Further, the second coordinate calculation module 20 includes:
the second parameter extraction unit is used for determining the first included angle value and the second included angle value which are respectively corresponding to other parallel light pipes except the central parallel light pipe in the test view field, wherein the second included angle value is the included angle value between the central point of the other parallel light pipes and the central point of the central parallel light pipe in the vertical direction;
and the second parameter calculation unit is used for determining second space coordinates corresponding to each other collimator based on the first included angle value, the second included angle value, the test distance and the effective diameter corresponding to each other collimator, wherein the second space coordinates are space coordinates of the other collimator relative to the central point of the sensor.
Further, the second coordinate calculating module 20 further includes:
the third parameter calculation unit is used for determining a third included angle value corresponding to each other collimator, wherein the third included angle value is an included angle value of the central point of the other collimator and the central point of the central collimator in the horizontal direction;
And the space coordinate conversion unit is used for determining the first plane coordinates corresponding to the other parallel light pipes based on the second space coordinates corresponding to the other parallel light pipes and the third included angle value.
Further, the planar coordinate conversion module 30 includes:
a camera parameter extraction unit, configured to determine each lens image height value and each view field angle value contained in the camera parameter table;
and the camera parameter fitting unit is used for carrying out linear fitting on each lens image height value and each view field angle value to obtain a linear fitting function.
Further, the planar coordinate conversion module 30 further includes:
an initial formula extraction unit, configured to determine a first plane abscissa calculation formula and a first plane ordinate calculation formula corresponding to each of the first plane coordinates;
an initial formula conversion unit, configured to determine a second plane ordinate calculation formula and a second plane ordinate calculation formula based on the linear fitting function, the first plane abscissa calculation formula, and the first plane ordinate calculation formula;
and the plane coordinate conversion unit is used for converting each first plane coordinate into a target demand coordinate corresponding to the sensor according to the second plane abscissa calculation formula and the second plane ordinate calculation formula.
Further, the test field adjustment module 40 includes:
an angle difference value calculation unit, configured to determine an angle difference value between the target demand coordinate and the first space coordinate;
and the view field position adjusting unit is used for adjusting the position of the test view field based on the angle difference value so as to enable the test view field to be positioned at the required position corresponding to the sensor.
In addition, the application also provides a test device, which is provided with a test view field adjusting program capable of running on a processor, and the test device realizes the steps of the test view field adjusting method according to any one of the embodiments when executing the test view field adjusting program.
The specific embodiments of the test device in the present application are substantially the same as the embodiments of the method for adjusting the test field, and are not described herein.
In addition, the application further provides a computer readable storage medium, and the computer readable storage medium stores a test field adjusting program, and the test field adjusting program realizes the steps of the test field adjusting method according to any one of the embodiments.
The specific embodiments of the computer readable storage medium are basically the same as the embodiments of the method for adjusting the test field, and are not described herein.
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 one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a test device (which may be a device for performing the method of adjusting the test field of view of the present invention, which may be specifically a mobile terminal, a data storage control terminal, a PC or a portable computer, etc. terminal) to perform the method described in the embodiments of the present application.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the claims, and all equivalent structures or equivalent processes using the descriptions and drawings of the present application, or direct or indirect application in other related technical fields are included in the scope of the claims of the present application.

Claims (10)

1. The method for adjusting the test view field is characterized by being applied to test equipment for detecting a camera module provided with a sensor, and comprises the following steps of:
acquiring a preset test view field, and determining a first space coordinate corresponding to a central collimator contained in the test view field;
determining second space coordinates corresponding to each other collimator except the central collimator in the test view field, and determining first plane coordinates corresponding to each other collimator based on each second space coordinate;
acquiring a preset camera parameter table, obtaining a linear fitting function based on the camera parameter table, and converting each first plane coordinate into a target demand coordinate corresponding to the sensor through the linear fitting function;
And adjusting the position of the test view field based on the target demand coordinate and the first space coordinate so that the test view field is positioned at the demand position corresponding to the sensor.
2. The method of adjusting a test field of view according to claim 1, wherein the step of determining a first spatial coordinate corresponding to a central collimator included in the test field of view comprises:
determining a test distance and an effective diameter corresponding to a central collimator included in the test view field, and determining a first included angle value corresponding to the central collimator, wherein the first included angle value is an included angle value between a central point of the collimator and a horizontal direction;
and determining a first space coordinate corresponding to the central collimator based on the test distance, the effective diameter and the first included angle value corresponding to the central collimator, wherein the first space coordinate is the space coordinate of the central collimator relative to the central point of the sensor.
3. The method of adjusting a test field of view according to claim 2, wherein the step of determining respective second spatial coordinates of each of the other collimator tubes other than the central collimator tube within the test field of view comprises:
Determining the first included angle value and the second included angle value which are respectively corresponding to other parallel light pipes except the central parallel light pipe in the test view field, wherein the second included angle value is the included angle value of the central point of the other parallel light pipes and the central point of the central parallel light pipe in the vertical direction;
and determining second space coordinates corresponding to the other parallel light pipes based on the first included angle value, the second included angle value, the test distance and the effective diameter corresponding to the other parallel light pipes, wherein the second space coordinates are space coordinates of the other parallel light pipes relative to the central point of the sensor.
4. The method of adjusting a test field of view according to claim 3, wherein the step of determining the first plane coordinates of each of the other collimator based on each of the second spatial coordinates comprises:
determining a third included angle value corresponding to each other collimator, wherein the third included angle value is an included angle value of the central point of the other collimator and the central point of the central collimator in the horizontal direction;
And determining the first plane coordinates corresponding to the other parallel light pipes based on the second space coordinates corresponding to the other parallel light pipes and the third included angle value.
5. The method of adjusting a test field of view according to claim 1, wherein the step of deriving a linear fitting function based on the camera parameter table comprises:
determining the image height value and the view angle value of each lens contained in the camera parameter table;
and performing linear fitting on each lens image height value and each view field angle value to obtain a linear fitting function.
6. The method of claim 1, wherein the step of converting each of the first plane coordinates into a target demand coordinate corresponding to the sensor by the linear fitting function comprises:
determining a first plane abscissa calculation formula and a first plane ordinate calculation formula corresponding to each first plane coordinate;
determining a second plane ordinate calculation formula and a second plane ordinate calculation formula based on the linear fitting function, the first plane abscissa calculation formula and the first plane ordinate calculation formula;
And converting each first plane coordinate into a target demand coordinate corresponding to the sensor according to the second plane abscissa calculation formula and the second plane ordinate calculation formula.
7. The method of adjusting a test field of view according to claim 1, wherein the step of adjusting the position of the test field of view based on the target demand coordinate and the first spatial coordinate to cause the test field of view to be at the demand position corresponding to the sensor comprises:
determining an angle difference between the target demand coordinate and the first spatial coordinate;
and adjusting the position of the test view field based on the angle difference value so that the test view field is positioned at a required position corresponding to the sensor.
8. An adjusting device of a test field of view, wherein the adjusting device of the test field of view is applied to test equipment to detect a camera module provided with a sensor, the device comprises:
the first coordinate calculation module is used for acquiring a preset test view field and determining a first space coordinate corresponding to a central collimator contained in the test view field;
the second coordinate calculation module is used for determining second space coordinates corresponding to each other collimator except the central collimator in the test view field, and determining first plane coordinates corresponding to each other collimator based on each second space coordinate;
The plane coordinate conversion module is used for acquiring a preset camera parameter table, obtaining a linear fitting function based on the camera parameter table, and converting each first plane coordinate into a target demand coordinate corresponding to the sensor through the linear fitting function;
and the test view field adjusting module is used for adjusting the position of the test view field based on the target demand coordinate and the first space coordinate so that the test view field is positioned at the demand position corresponding to the sensor.
9. A test apparatus, the test apparatus comprising: memory, a processor and a program for adjusting a test field of view stored on the memory and executable on the processor, which program for adjusting a test field of view when executed by the processor implements the steps of the method for adjusting a test field of view according to any of claims 1 to 7.
10. A computer-readable storage medium, on which a program for adjusting a test field of view is stored, which program for adjusting a test field of view, when being executed by a processor, carries out the steps of the method for adjusting a test field of view according to any one of claims 1 to 7.
CN202310505031.1A 2023-04-28 2023-04-28 Method and device for adjusting test view field, test equipment and computer medium Pending CN116567200A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310505031.1A CN116567200A (en) 2023-04-28 2023-04-28 Method and device for adjusting test view field, test equipment and computer medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310505031.1A CN116567200A (en) 2023-04-28 2023-04-28 Method and device for adjusting test view field, test equipment and computer medium

Publications (1)

Publication Number Publication Date
CN116567200A true CN116567200A (en) 2023-08-08

Family

ID=87495881

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310505031.1A Pending CN116567200A (en) 2023-04-28 2023-04-28 Method and device for adjusting test view field, test equipment and computer medium

Country Status (1)

Country Link
CN (1) CN116567200A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117119173A (en) * 2023-09-22 2023-11-24 惠州市华阳数码特电子有限公司 Camera internal reference verification method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117119173A (en) * 2023-09-22 2023-11-24 惠州市华阳数码特电子有限公司 Camera internal reference verification method
CN117119173B (en) * 2023-09-22 2024-04-30 惠州市华阳数码特电子有限公司 Camera internal reference verification method

Similar Documents

Publication Publication Date Title
KR101833599B1 (en) Device and method for detecting optical-axis offset of lens in apparatus
CN110456602B (en) Projection pattern correction device, method and system of projection system
CN111107333B (en) Brightness correction method, system, equipment and computer readable storage medium
WO2022247418A1 (en) Image correction method and photographing device
US20130222776A1 (en) Image projector, method of image projection, and computer-readable storage medium storing program for causing computer to execute image projection
CN111083458B (en) Brightness correction method, system, equipment and computer readable storage medium
US9338417B2 (en) Image projecting system, master apparatus, image projecting apparatus, and image projecting method
CN111935468B (en) Method and device for detecting deviation of projection center and computer readable storage medium
US11132814B2 (en) Information processing apparatus, information processing method, and storage medium
CN113068019B (en) Dual-optical camera calibration apparatus, method, electronic apparatus, and storage medium
CN114125411B (en) Projection device correction method, projection device correction device, storage medium and projection device
CN116567200A (en) Method and device for adjusting test view field, test equipment and computer medium
CN107742310B (en) Method and device for testing included angle of double cameras and storage device
CN112543321A (en) Position compensation detection and correction method, camera module and manufacturing method thereof
CN113784112A (en) Camera module testing method and device, test chart board and system
TW201931303A (en) Method of providing image and electronic device for supporting the method
JP2010217984A (en) Image detector and image detection method
CN113994662A (en) Information processing apparatus, information processing method, program, projection apparatus, and information processing system
CN112991202B (en) Optical center position calibration method, terminal device and computer readable storage medium
JP7504688B2 (en) Image processing device, image processing method and program
CN112203080B (en) Resolution testing method, device and storage medium
JP2005258953A (en) Fish eye camera and calibration method in the fish eye camera
CN109523481B (en) Method and device for correcting projector image distortion and computer readable storage medium
CN113766139B (en) Focusing device and method
CN112907462B (en) Distortion correction method and system for ultra-wide-angle camera device and shooting device comprising distortion correction method and 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