Image sensor test position calibration method, device, equipment and storage medium
By capturing the image sensor's test chart image at multiple preset positions, calculating and moving it to the calibration position, the image sensor test position calibration problem is solved, high-precision automatic calibration is achieved, and subsequent testing is convenient.
Patent Information
- Application Number
- CN202211042074.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-29
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2042-08-29
AI Technical Summary
It is difficult to achieve high-precision image sensor test position calibration with existing technologies, which affects the accuracy of subsequent tests.
By acquiring test chart images captured by the image sensor at multiple preset positions, the calibration position information is calculated, and the image sensor or test chart is controlled to move to the calibration position, and the calibration position is calculated using the preset distance and the coordinates of the center point of the chart.
Automatic calibration of the image sensor test position with high calibration accuracy is achieved, which facilitates subsequent image sensor testing.
Smart Images

Figure CN115396665B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing technology, and in particular to a test position calibration method, device, equipment and computer-readable storage medium for an image sensor. Background Art
[0002] With the continuous advancement of AR (Augmented Reality) and VR (Virtual Reality) technologies, the number and types of image sensors (such as cameras) in head-mounted display devices such as AR and VR devices are increasing. Examples include 6Dof cameras, RGB cameras, eyetracking cameras, and facetracking cameras. The requirements for the test accuracy of these image sensors are also becoming increasingly stringent. The key technology to achieve test accuracy is the calibration technology of the image sensor test position. The image sensor test position needs to be calibrated for the test distance and direction.
[0003] Therefore, how to solve the problem of difficult calibration of the existing image sensor test position and achieve automatic calibration of the image sensor test position with high calibration accuracy, thereby facilitating subsequent image sensor testing, is an issue that urgently needs to be solved. Summary of the Invention
[0004] The object of the present invention is to provide a method, apparatus, device and computer-readable storage medium for calibrating a test position of an image sensor, so as to achieve automatic calibration of the test position of the image sensor with high calibration accuracy, thereby facilitating subsequent image sensor testing.
[0005] To solve the above technical problems, the present invention provides a test position calibration method for an image sensor, comprising:
[0006] Acquire images of the test chart captured by the image sensor at various preset positions; wherein the preset positions include an initial position of the image sensor or the test chart, a first moved position translated from the initial position along a first moving axis by a first preset distance, and a second moved position translated from the initial position along a second moving axis by a second preset distance, wherein the first moving axis is perpendicular to the second moving axis;
[0007] Calculating calibration position information of the image sensor based on the first preset distance, the second preset distance, and the test chart image; wherein the calibration position information includes first distance information of the image sensor or the test chart translated along the first movement axis and second distance information of the image sensor or the test chart translated along the second movement axis;
[0008] The image sensor or the test chart is controlled to move to a position corresponding to the calibration position information, so that the image sensor is calibrated to a test position.
[0009] Optionally, calculating the calibration position information of the image sensor according to the test chart image includes:
[0010] The calibration position information is calculated according to the first preset distance, the second preset distance, and the coordinates of the center point of the chart in each of the test chart images.
[0011] Optionally, calculating the calibration position information according to the first preset distance, the second preset distance, and the coordinates of the center point of the chart in each of the test chart images includes:
[0012] pass Calculating the first distance information; wherein the first distance information is distance information of the image sensor translated from the initial position along the first movement axis, A is the first preset distance, (x0, y0) are the coordinates of the center point of the optical axis of the image sensor in the captured image, (x1, y1) are the coordinates of the center point of the test chart image at the initial position, (x2, y2) are the coordinates of the center point of the test chart image at the first movement position, and (x3, y3) are the coordinates of the center point of the test chart image at the second movement position;
[0013] pass Calculate the second distance information; wherein the second distance information is the distance information of the image sensor translated from the initial position along the second movement axis, and B is the second preset distance.
[0014] Optionally, before calculating the calibration position information according to the first preset distance, the second preset distance, and the coordinates of the center point of the chart in each of the test chart images, the method further includes:
[0015] The image sensor is calibrated to obtain the coordinates of the optical axis center point of the image sensor in the captured image.
[0016] Optionally, controlling the image sensor or the test chart to move to a position corresponding to the calibration position information includes:
[0017] The image sensor is controlled to translate the first distance information along the first movement axis from the initial position, and to translate the second distance information along the second movement axis.
[0018] Optionally, acquiring the test chart image captured by the image sensor at each preset position includes:
[0019] Controlling the image sensor to capture the test chart image at the initial position;
[0020] After controlling the image sensor to translate along the first moving axis by the first preset distance, controlling the image sensor to capture an image of the test chart at the first moving position;
[0021] After controlling the image sensor to return to the initial position and translate along the second movement axis by the second preset distance, controlling the image sensor to capture an image of the test chart at the second movement position.
[0022] Optionally, before acquiring the test chart image captured by the image sensor at each preset position, the method further includes:
[0023] Acquire a chart calibration image captured by the image sensor; wherein the chart calibration image includes a test chart area, and the test chart area includes a cross laser image projected by a cross laser;
[0024] Adjusting the position of the test chart on the measurement and design equipment based on the cross laser image and the laser calibration line on the test chart area so that the laser calibration line on the test chart coincides with the cross laser projected by the cross laser; wherein the laser calibration line includes a horizontal calibration line and a vertical calibration line;
[0025] The distance between the test chart on the measuring device and the image sensor is adjusted according to the distance information collected by the laser rangefinder.
[0026] The present invention also provides a test position calibration device for an image sensor, comprising:
[0027] an acquisition module, configured to acquire test chart images captured by the image sensor at various preset positions; wherein the preset positions include an initial position of the image sensor or the test chart, a first moved position translated from the initial position along a first moving axis by a first preset distance, and a second moved position translated from the initial position along a second moving axis by a second preset distance, wherein the first moving axis is perpendicular to the second moving axis;
[0028] a calculation module, configured to calculate calibration position information of the image sensor based on the first preset distance, the second preset distance, and the test chart image; wherein the calibration position information includes first distance information of the image sensor or the test chart translated along the first movement axis and second distance information of the image sensor or the test chart translated along the second movement axis;
[0029] The calibration module is used to control the image sensor or the test chart to move to a position corresponding to the calibration position information, so that the image sensor is calibrated to a test position.
[0030] The present invention also provides a test position calibration device for an image sensor, comprising:
[0031] Memory for storing computer programs;
[0032] The processor is configured to implement the steps of the test position calibration method for the image sensor as described above when executing the computer program.
[0033] In addition, the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the test position calibration method for an image sensor as described above are implemented.
[0034] A test position calibration method for an image sensor provided by the present invention includes: acquiring test chart images captured by the image sensor at various preset positions; wherein the preset positions include an initial position of the image sensor or the test chart, a first movement position after being translated from the initial position along a first movement axis by a first preset distance, and a second movement position after being translated from the initial position along a second movement axis by a second preset distance, wherein the first movement axis is perpendicular to the second movement axis; calculating calibration position information of the image sensor based on the first preset distance, the second preset distance, and the test chart image; wherein the calibration position information includes information about a first distance the image sensor or the test chart is translated along the first movement axis and information about a second distance the image sensor is translated along the second movement axis; and controlling the image sensor or the test chart to move to a position corresponding to the calibration position information so that the image sensor is calibrated to the test position;
[0035] As can be seen, the present invention calculates the calibration position information of the image sensor based on the first preset distance, the second preset distance, and the test chart image. It can then use the initial position of the image sensor or the test chart and the test chart image captured after movement along the first and second movement axes to calculate the calibration position information required for the image sensor to be calibrated to the test position. By controlling the image sensor or the test chart to move to the position corresponding to the calibration position information to calibrate to the image sensor's test position, automatic calibration of the image sensor's test position with high calibration accuracy is achieved, thereby facilitating subsequent image sensor testing. Furthermore, the present invention also provides an image sensor test position calibration device, apparatus, and computer-readable storage medium, all of which also have the aforementioned beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are merely embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0037] Figure 1 A flowchart of a test position calibration method for an image sensor provided by an embodiment of the present invention;
[0038] Figure 2 A schematic diagram of a configuration for preliminary calibration of another test position calibration method for an image sensor provided by an embodiment of the present invention;
[0039] Figure 3 A schematic diagram of the principle of preliminary calibration of another test position calibration method of an image sensor provided by an embodiment of the present invention;
[0040] Figure 4 A structural block diagram of a test position calibration device for an image sensor provided by an embodiment of the present invention;
[0041] Figure 5 A schematic structural diagram of a test position calibration device for an image sensor provided by an embodiment of the present invention;
[0042] Figure 6 This is a schematic diagram of the specific structure of a test position calibration device for an image sensor provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0043] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.
[0044] Please refer to Figure 1 , Figure 1 This is a flow chart of a test position calibration method for an image sensor provided by an embodiment of the present invention. The method may include:
[0045] Step 101: Acquire test chart images captured by an image sensor at various preset positions; wherein the preset positions include an initial position of the image sensor or the test chart, a first moving position translated from the initial position along a first moving axis by a first preset distance, and a second moving position translated from the initial position along a second moving axis by a second preset distance, wherein the first moving axis is perpendicular to the second moving axis.
[0046] It is understood that the test chart image in this step can be an image obtained by an image sensor mounted on the fixed base of the test equipment at each preset position photographing the test chart on the test equipment, that is, the position change of the image sensor can change accordingly with the position change of the fixed base. The specific content of the test chart image in this embodiment, that is, the specific position setting of each preset position, can be set by the designer according to practical scenarios and user needs. For example, the preset position can include the initial position of the image sensor or the test chart, such as using Figure 2 The positions of the laser rangefinder and cross laser shown after preliminary calibration of the fixed base of the image sensor and / or the test chart; the preset positions may also include a first moving position after the image sensor or the test chart is translated along the first moving axis for a first preset distance from the initial position and a second moving position after the image sensor or the test chart is translated along the second moving axis for a second preset distance from the initial position.
[0047] Specifically, the specific settings of the above-mentioned first preset distance and the second preset distance can be set by the designer according to practical scenarios and user needs. For example, the position accuracy of the image sensor is determined by the resolution of the image sensor and the test distance. The value ranges of the first preset distance and the second preset distance can be set accordingly according to the position accuracy of the image sensor. For example, when the position accuracy requirement is 0.1mm, the first preset distance and the second preset distance can be values between 0.1-1mm respectively; when the position accuracy requirement is 1mm, the first preset distance and the second preset distance can be values between 1-10mm respectively. This embodiment does not impose any restrictions on this.
[0048] Correspondingly, the specific method for the processor to obtain the test chart image captured by the image sensor at each preset position in this step can be set by the designer according to practical scenarios and user needs. For example, the processor can directly receive the test chart image sent by the image sensor or other device. The processor can also control the image sensor to capture the test chart image corresponding to each preset position and then receive the test chart image sent by the image sensor; for example, the processor can control the image sensor to capture the test chart image at the initial position; control the image sensor or the test chart to translate along the first moving axis for a first preset distance, and then control the image sensor to capture the test chart image at the first moving position; control the image sensor or the test chart to return to the initial position and translate along the second moving axis for a second preset distance, and then control the image sensor to capture the test chart image at the second moving position. That is to say, the processor can control the image sensor to capture images of the test chart at each preset position by controlling the movement of the image sensor or the test chart on the test device; for example, the processor can control the image sensor to capture images of the test chart with the image sensor adjusted to each preset position by controlling the movement of the fixed base on which the image sensor is installed on the test device; the processor can also control the image sensor to capture images of the test chart with the test chart adjusted to each preset position by controlling the movement of the test chart on the test device.
[0049] It should be noted that, in this embodiment, the optical axis direction of the image sensor can be perpendicular to the test chart on the measuring and setting equipment, that is, when the image sensor captures the test chart image at each preset position of the image sensor or the test chart, the optical axis direction of the image sensor can be perpendicular to the test chart on the measuring and setting equipment. Accordingly, in this embodiment, before the image sensor captures the test chart image at each preset position, the position of the image sensor and / or the test chart can be preliminarily calibrated, such as preliminarily calibrating the position of the fixed base of the measuring and setting equipment and / or the test chart, so that the optical axis direction of the image sensor installed on the fixed base is perpendicular to the test chart. Figure 2 and Figure 3 As shown, a cross laser and a laser rangefinder can be used for preliminary calibration; for example, the direction of the cross laser can coincide with the optical axis of the image sensor being tested, and the direction of the laser rangefinder can be parallel to the optical axis of the image sensor. The tester can first adjust the angle of the test chart so that the test chart is perpendicular to the cross laser, and then adjust the position of the test chart so that the upper, lower, left, and right center lines of the test chart coincide with the cross laser lines. Figure 3 Adjust the position of the cross laser line of the solid line to the position of the cross laser line of the dotted line; adjust the distance of the test chart so that the distance measured by the laser rangefinder is the distance required for the test, so as to complete the preliminary calibration of the image sensor test position.
[0050] Correspondingly, this step may also include obtaining a chart calibration image captured by the image sensor; wherein the chart calibration image includes a test chart area, and the test chart area includes a cross laser image projected by a cross laser; according to the cross laser image and the laser calibration line on the test chart area, adjusting the position of the test chart on the surveying and designing equipment so that the laser calibration line on the test chart coincides with the cross laser projected by the cross laser; wherein the laser calibration line includes a horizontal calibration line (such as the horizontal center line of the chart) and a vertical calibration line (such as the vertical center line of the chart); according to the distance information collected by the acquired laser rangefinder, adjusting the distance between the test chart on the surveying and designing equipment and the image sensor; that is, the processor can use the cross laser and laser rangefinder set on the surveying and designing equipment and whose direction is parallel to the optical axis direction of the image sensor to adjust the position of the test chart and / or the image sensor to achieve automatic preliminary calibration; accordingly, the processor can use the position of the image sensor after the preliminary calibration is completed as the initial position.
[0051] Step 102: Calculate calibration position information of the image sensor based on the first preset distance, the second preset distance, and the test chart image; wherein the calibration position information includes first distance information of the image sensor or the test chart translated along the first movement axis and second distance information of the image sensor or the test chart translated along the second movement axis.
[0052] It is understandable that in this step, the processor can use the test chart images captured at each preset position, the first preset distance, and the second preset distance to calculate the movement information (i.e., calibration position information) of the fixed base or test chart that needs to be moved to calibrate the image sensor to the test position.
[0053] Specifically, the specific method for the processor to calculate the calibration position information of the image sensor based on the first preset distance, the second preset distance and the test chart image in this step can be set by the designer according to the practical scenario and user needs. For example, the processor can calculate the calibration position information based on the first preset distance, the second preset distance and the coordinates of a preset point on the chart in each test chart image (such as the center point of the chart). For example, the coordinates of the center point of the optical axis of the image sensor in the captured image are (x0, y0); the image sensor is used to photograph the test chart at the initial position, and the coordinates of the center point of the chart in the captured test chart image are calculated to be (x1, y1); after translating the fixed base of the image sensor or the test chart A by a first preset distance of mm along the first moving axis, the image sensor is used to photograph the test chart, and the coordinates of the center point of the chart in the captured test chart image are calculated to be (x2, y2); after moving back to the initial position, the image sensor is used to translate the fixed base or the test chart B by a second moving axis of mm (i.e., a second preset distance), and the image sensor is used to photograph the test chart, and the coordinates of the center point of the chart in the captured test chart image are calculated to be (x3, y3); the following linear equation in two variables is established:
[0054]
[0055] The solution is:
[0056]
[0057]
[0058] Accordingly, after the fixed base or the test chart is translated from the initial position along the first moving axis by x and along the second moving axis by y, the position of the image sensor may be the test position after the image sensor is calibrated.
[0059] For example, in this step the processor can Calculate the first distance information in the calibration position information; by Calculate the second distance information in the calibration position information; wherein the first distance information is the distance information of the fixed base translated from the initial position along the first moving axis, the second distance information is the distance information of the fixed base translated from the initial position along the second moving axis, A is the first preset distance, B is the second preset distance, (x0, y0) is the coordinate of the center point of the optical axis of the image sensor in the captured image, (x1, y1) is the coordinate of the center point of the chart in the test chart image at the initial position, (x2, y2) is the coordinate of the center point of the chart in the test chart image at the first moving position, and (x3, y3) is the coordinate of the center point of the chart in the test chart image at the second moving position. The second distance information is the distance information of the fixed base translated from the initial position along the second moving axis.
[0060] Correspondingly, this step may also include calibrating the image sensor to obtain the coordinates of the optical axis center point of the image sensor in the captured image, that is, (x0, y0).
[0061] Step 103: Control the image sensor or the test chart to move to a position corresponding to the calibration position information, so that the image sensor is calibrated to the test position.
[0062] Specifically, in this step, the processor controls the image sensor or the test chart to move to a position corresponding to the calibration position information, calibrating the image sensor to the test position and completing the calibration of the image sensor's test position. This allows the coordinates of the center point of the calibrated test chart in the captured test chart image to be the coordinates of the optical axis center point in the image, i.e., (x0, y0). For example, the processor can control the fixed base of the image sensor to translate the first distance information (such as the aforementioned x) along the first movable axis from the initial position, and translate the second distance information (such as the aforementioned y) along the second movable axis; alternatively, the processor can control the test chart to translate the first distance information (such as the aforementioned x) along the first movable axis from the initial position, and translate the second distance information (such as the aforementioned y) along the second movable axis.
[0063] Correspondingly, this step may also include obtaining a verification image captured by the image sensor; determining whether the coordinates of the center point of the chart in the verification image are the coordinates of the center point of the optical axis; if so, determining that the test position calibration is successful; if not, returning to step 101 to calibrate the test position again.
[0064] It can be understood that this embodiment is demonstrated by taking the calibration of the test position of an image sensor installed on any fixed base on the test device as an example. The calibration of the test positions of other image sensors installed on other fixed bases on the test device can be implemented in the same or similar manner as the method provided in this embodiment, and this embodiment does not impose any restrictions on this.
[0065] Correspondingly, the specific type of image sensor tested in this embodiment can be set by the designer. For example, the image sensor can be a separately customized standard image sensor, or the image sensor in the head-mounted display device (such as an AR device) can be directly used. This embodiment also does not impose any restrictions on this.
[0066] In this embodiment, the embodiment of the present invention calculates the calibration position information of the image sensor based on the first preset distance, the second preset distance and the test chart image. The calibration position information required for the image sensor to be calibrated to the test position can be calculated using the initial position of the image sensor or the test chart and the test chart image captured after movement along the first moving axis and the second moving axis. By controlling the image sensor or the test chart to move to the position corresponding to the calibration position information, so as to calibrate to the test position of the image sensor, automatic calibration of the image sensor test position with high calibration accuracy is achieved, thereby facilitating subsequent image sensor testing.
[0067] Corresponding to the above method embodiment, an embodiment of the present invention further provides a test position calibration device for an image sensor. The test position calibration device for an image sensor described below and the test position calibration method for an image sensor described above can refer to each other.
[0068] Please refer to Figure 4 , Figure 4 This is a structural block diagram of a test position calibration device for an image sensor provided by an embodiment of the present invention. The device may include:
[0069] An acquisition module 10 is configured to acquire test chart images captured by the image sensor at various preset positions; wherein the preset positions include an initial position of the image sensor or the test chart, a first position translated from the initial position along a first movement axis by a first preset distance, and a second position translated from the initial position along a second movement axis by a second preset distance, wherein the first movement axis is perpendicular to the second movement axis.
[0070] A calculation module 20 is configured to calculate calibration position information of the image sensor based on the first preset distance, the second preset distance, and the test chart image; wherein the calibration position information includes first distance information of the image sensor or the test chart translated along the first movement axis and second distance information of the image sensor or the test chart translated along the second movement axis;
[0071] The calibration module 30 is used to control the image sensor or the test chart to move to a position corresponding to the calibration position information, so that the image sensor is calibrated to the test position.
[0072] Optionally, the calculation module 20 may be specifically configured to calculate the calibration position information according to the first preset distance, the second preset distance, and the coordinates of the center point of the chart in each test chart image.
[0073] Optionally, the calculation module 20 may include:
[0074] The first calculation submodule is used to Calculate first distance information; wherein the first distance information is distance information of the image sensor translated from an initial position along a first movement axis, A is a first preset distance, (x0, y0) are the coordinates of the center point of the optical axis of the image sensor in the captured image, (x1, y1) are the coordinates of the center point of the test chart image at the initial position, (x2, y2) are the coordinates of the center point of the test chart image at the first movement position, and (x3, y3) are the coordinates of the center point of the test chart image at the second movement position;
[0075] The second calculation submodule is used to Calculate second distance information; wherein the second distance information is distance information of the image sensor translated from the initial position along the second movement axis, and B is a second preset distance.
[0076] Optionally, the device may further include:
[0077] The calibration module is used to calibrate the image sensor to obtain the coordinates of the optical axis center point of the image sensor in the captured image.
[0078] Optionally, the calibration module 30 may be specifically configured to control the image sensor to translate the first distance information along a first movement axis from an initial position, and to translate the second distance information along a second movement axis.
[0079] Optionally, the acquisition module 10 may include:
[0080] A first control submodule, configured to control the image sensor to capture an image of a test chart at an initial position;
[0081] A second control submodule is configured to control the image sensor to translate along the first moving axis for a first preset distance, and then control the image sensor to capture an image of the test chart at the first moving position;
[0082] The third control submodule is used to control the image sensor to return to the initial position and translate along the second movement axis for a second preset distance, and then control the image sensor to capture the image of the test chart at the second movement position.
[0083] Optionally, the device may further include:
[0084] The initial calibration acquisition module is used to acquire a chart calibration image captured by the image sensor; wherein the chart calibration image includes a test chart area, and the test chart area includes a cross laser image projected by a cross laser;
[0085] a primary calibration control module, configured to adjust the position of the test chart on the measurement and design equipment based on the cross laser image and the laser calibration line on the test chart area, so that the laser calibration line on the test chart coincides with the cross laser projected by the cross laser; wherein the laser calibration line includes a horizontal calibration line and a vertical calibration line;
[0086] The initial calibration distance module is used to adjust the distance between the test chart and the image sensor on the measurement equipment according to the distance information collected by the laser rangefinder.
[0087] In this embodiment, the embodiment of the present invention calculates the calibration position information of the image sensor based on the first preset distance, the second preset distance and the test chart image through the calculation module 20. The calibration position information required for the image sensor to be calibrated to the test position can be calculated by using the initial position of the image sensor or the test chart and the test chart image captured after moving along the first moving axis and the second moving axis; the calibration module 30 controls the image sensor or the test chart to move to the position corresponding to the calibration position information to calibrate to the test position of the image sensor, thereby realizing automatic calibration of the image sensor test position with high calibration accuracy, thereby facilitating subsequent image sensor testing.
[0088] Corresponding to the above method embodiment, an embodiment of the present invention further provides a test position calibration device for an image sensor. The test position calibration device for an image sensor described below and the test position calibration method for an image sensor described above can refer to each other.
[0089] Please refer to Figure 5 , Figure 5 This is a schematic diagram of the structure of a test position calibration device for an image sensor provided by an embodiment of the present invention. The test position calibration device may include:
[0090] Memory D1, for storing computer programs;
[0091] The processor D2 is configured to implement the steps of the test position calibration method for the image sensor provided by the above method embodiment when executing the computer program.
[0092] For details, please refer to Figure 6 , Figure 6 This is a schematic diagram of the specific structure of a test position calibration device for an image sensor provided in an embodiment of the present invention. The test position calibration device 310 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 322 (for example, one or more processors) and a memory 332, and one or more storage media 330 (for example, one or more mass storage devices) for storing application programs 342 or data 344. Among them, the memory 332 and the storage medium 330 can be temporary storage or permanent storage. The program stored in the storage medium 330 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the data processing device. Furthermore, the central processing unit 322 can be configured to communicate with the storage medium 330 to execute a series of instruction operations in the storage medium 330 on the test position calibration device 310.
[0093] The test site calibration device 310 may further include one or more power supplies 326, one or more wired or wireless network interfaces 350, one or more input and output interfaces 358, and / or one or more operating systems 341, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.
[0094] The test position calibration device 310 may be specifically a server or a computer terminal, such as a computer terminal (ie, a host computer) connected to a test device for an image sensor on a head-mounted display device.
[0095] The steps in the test position calibration method for an image sensor described above can be implemented by the structure of a test position calibration device for an image sensor.
[0096] Corresponding to the above method embodiment, an embodiment of the present invention further provides a computer-readable storage medium. The computer-readable storage medium described below and the test position calibration method of an image sensor described above can refer to each other.
[0097] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of calibrating a test position of an image sensor provided in the above method embodiment.
[0098] The computer-readable storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, which may store program codes.
[0099] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. References to the common and similar parts between the various embodiments are sufficient. The devices, apparatuses, and computer-readable storage media disclosed in the embodiments are described briefly because they correspond to the methods disclosed in the embodiments. For relevant details, refer to the description of the methods.
[0100] The above is a detailed introduction to the test position calibration method, device, equipment and computer-readable storage medium of an image sensor provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.
Claims
1. A test position calibration method for an image sensor, characterized in that: include: Acquire images of the test chart captured by the image sensor at various preset positions; wherein the preset positions include an initial position of the image sensor or the test chart, a first moved position translated from the initial position along a first moving axis by a first preset distance, and a second moved position translated from the initial position along a second moving axis by a second preset distance, wherein the first moving axis is perpendicular to the second moving axis; Calculating calibration position information of the image sensor based on the first preset distance, the second preset distance, and the test chart image; wherein the calibration position information includes first distance information of the image sensor or the test chart translated along the first movement axis and second distance information of the image sensor or the test chart translated along the second movement axis; Controlling the image sensor or the test chart to move to a position corresponding to the calibration position information, so that the image sensor is calibrated to a test position; The calculating the calibration position information of the image sensor according to the first preset distance, the second preset distance, and the test chart image includes: Calculating the calibration position information according to the first preset distance, the second preset distance, and the coordinates of the center point of the chart in each of the test chart images; The calculating the calibration position information according to the first preset distance, the second preset distance, and the coordinates of the center point of the chart in each of the test chart images includes: pass , calculate the first distance information; wherein, the first distance information is the distance information of the image sensor translated from the initial position along the first moving axis, A is the first preset distance, is the coordinate of the center point of the optical axis of the image sensor in the captured image, is the coordinate of the center point of the test chart image at the initial position, is the coordinate of the center point of the test chart in the test chart image at the first moving position, is the coordinates of the center point of the test chart in the test chart image at the second moving position; pass , calculate the second distance information; wherein, the second distance information is the distance information of the image sensor translated from the initial position along the second movement axis, and B is the second preset distance.
2. The test position calibration method of the image sensor according to claim 1, characterized in that: Before calculating the calibration position information according to the first preset distance, the second preset distance, and the coordinates of the center point of the chart in each of the test chart images, the method further includes: The image sensor is calibrated to obtain the coordinates of the optical axis center point of the image sensor in the captured image.
3. The test position calibration method of the image sensor according to claim 1, characterized in that: The controlling the image sensor or the test chart to move to a position corresponding to the calibration position information includes: The image sensor is controlled to translate the first distance information along the first movement axis from the initial position, and to translate the second distance information along the second movement axis.
4. The test position calibration method of the image sensor according to claim 1, characterized in that: The step of acquiring the test chart image captured by the image sensor at each preset position includes: Controlling the image sensor to capture the test chart image at the initial position; After controlling the image sensor to translate along the first moving axis by the first preset distance, controlling the image sensor to capture an image of the test chart at the first moving position; After controlling the image sensor to return to the initial position and translate along the second movement axis by the second preset distance, controlling the image sensor to capture an image of the test chart at the second movement position.
5. The test position calibration method of an image sensor according to any one of claims 1 to 4, characterized in that: Before acquiring the test chart images captured by the image sensor at each preset position, the method further includes: Acquire a chart calibration image captured by the image sensor; wherein the chart calibration image includes a test chart area, and the test chart area includes a cross laser image projected by a cross laser; Adjusting the position of the test chart on the measurement and design equipment based on the cross laser image and the laser calibration line on the test chart area so that the laser calibration line on the test chart coincides with the cross laser projected by the cross laser; wherein the laser calibration line includes a horizontal calibration line and a vertical calibration line; The distance between the test chart on the measuring device and the image sensor is adjusted according to the distance information collected by the laser rangefinder.
6. A test position calibration device for an image sensor, characterized in that: include: an acquisition module, configured to acquire test chart images captured by the image sensor at various preset positions; wherein the preset positions include an initial position of the image sensor or the test chart, a first moved position translated from the initial position along a first moving axis by a first preset distance, and a second moved position translated from the initial position along a second moving axis by a second preset distance, wherein the first moving axis is perpendicular to the second moving axis; a calculation module, configured to calculate calibration position information of the image sensor based on the first preset distance, the second preset distance, and the test chart image; wherein the calibration position information includes first distance information of the image sensor or the test chart translated along the first movement axis and second distance information of the image sensor or the test chart translated along the second movement axis; A calibration module, configured to control the image sensor or the test chart to move to a position corresponding to the calibration position information, so that the image sensor is calibrated to a test position; The calculation module is specifically configured to calculate calibration position information based on the first preset distance, the second preset distance, and the coordinates of the center point of each test chart image; The computing module includes: The first calculation submodule is used to , calculate the first distance information; wherein the first distance information is the distance information of the image sensor translated from the initial position along the first moving axis, A is the first preset distance, is the coordinate of the center point of the optical axis of the image sensor in the captured image, is the coordinate of the center point of the test chart image at the initial position, is the coordinate of the center point of the test chart in the image of the first moving position, is the coordinate of the center point of the test chart in the test chart image at the second moving position; The second calculation submodule is used to , calculate the second distance information; wherein the second distance information is the distance information of the image sensor translated from the initial position along the second movement axis, and B is the second preset distance.
7. A test position calibration device for an image sensor, characterized in that: include: memory for storing computer programs; A processor is configured to implement the steps of the test position calibration method for an image sensor according to any one of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the test position calibration method for an image sensor according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Multi-camera static imaging resolution testing method and device for intelligent terminal
CN111327892A
Method and system for detecting camera
CN113115031A