Method and device for measuring entrance pupil position of lens
By detecting the corresponding data of the focus parameters and focus distance of the camera, accurately measuring the pupil entry position of the lens of the near-eye display device, solving the problem of inaccurate detection caused by measurement errors in the prior art, and matching the position of the lens and the pupil exit is achieved to ensure that The integrity of the imaging picture.
Patent Information
- Application Number
- CN202411200495.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-08-29
AI Technical Summary
In the detection of near-eye display equipment, it is difficult for the prior art to accurately measure the incoming pupil position of the lens, resulting in inaccurate detection results and inability to match the outgoing pupil position, resulting in the missing image shooting.
By detecting the camera, obtaining the corresponding data of the pre-calibrated focus parameters and the focus distance, adjusting the lens to capture an aperture stop screen that meets the setting clarity, determining the distance between the lens's pupil position and the camera, and using the fitting function curve to deduce The entrance and exit pupil position achieves efficient and accurate measurement.
The detection camera is aligned with the pupil entry position of the lens to be tested, and the clear aperture diaphragm image is captured, and the pupil entry position of the lens is accurately measured, ensuring the detection accuracy and imaging quality of the NED device.
Smart Images

Figure CN119087676A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of photoelectric detection, and in particular to a method and device for measuring the entrance pupil position of a lens. Background Art
[0002] In the detection of near eye display (NED), it is often necessary to match the entrance pupil position of the camera lens of the NED device with the exit pupil position of the NED, otherwise it is easy to cause the missing of the captured NED imaging picture.
[0003] Reference Figure 1 From the imaging principle of the entrance pupil position and exit pupil position of the lens shown, it can be seen that the entrance pupil position of the lens does not fall on the mirror surface, but is a virtual image position with a distance from the mirror surface. Therefore, it is impossible to directly perform physical measurement on the lens to obtain the entrance pupil position of the shooting lens. In the prior art, the entrance pupil position of the shooting lens is often given based on the design simulation, and there is an error caused by the simulation design process compared with the actual entrance pupil position of the lens. For NED devices with high detection accuracy requirements, it is easy to cause the detection results of the NED device to fail to accurately reflect its true level. Therefore, it is necessary to propose a method that can quickly determine the entrance pupil position of the shooting lens used in NED near-eye display, so as to achieve matching it with the exit pupil position of the NED in NED detection. Summary of the invention
[0004] The present application provides a method, device, equipment and computer-readable storage medium for measuring the entrance pupil position of a lens, which can solve the related technical problems existing in the above-mentioned prior art.
[0005] In a first aspect, an embodiment of the present application provides a method for measuring the entrance pupil position of a lens, which adopts the following technical solution:
[0006] A method for measuring the entrance pupil position of a lens, characterized in that the method comprises:
[0007] Obtaining corresponding data between the focus parameters and the focus distance pre-calibrated at the set definition of the detection camera;
[0008] Acquire a first focusing parameter used when the detection camera captures an image of the aperture stop of the lens to be tested that meets the set clarity;
[0009] Determine the distance between the entrance pupil position of the lens to be tested and the detection camera according to the corresponding data and the first focusing parameter;
[0010] The entrance pupil position of the lens to be tested is determined according to the distance between the entrance pupil position of the lens to be tested and the detection camera.
[0011] In combination with the first aspect, in one implementation, the corresponding data includes a first function curve obtained by fitting according to a correspondence relationship between multiple groups of focusing parameters and focusing distances;
[0012] In the step of determining the distance between the entrance pupil position of the lens to be tested and the detection camera according to the corresponding data and the first focusing parameter,
[0013] According to the first function curve, a distance corresponding to the first focusing parameter is determined as the distance between the entrance pupil position of the lens to be tested and the detection camera.
[0014] In combination with the first aspect, in one implementation, the corresponding data includes a plurality of sets of corresponding focusing parameters and focusing distances;
[0015] In the step of determining the distance between the entrance pupil position of the lens to be tested and the detection camera according to the corresponding data and the first focusing parameter,
[0016] According to the first focusing parameter, determining multiple groups of focusing parameters and focusing distances involved in analysis from the corresponding data;
[0017] According to the plurality of groups of focusing parameters and focusing distances involved in the analysis, a second function curve for analyzing the first focusing parameter is obtained by fitting;
[0018] According to the second function curve, a distance corresponding to the first focusing parameter is determined as the distance between the entrance pupil position of the lens to be tested and the detection camera.
[0019] In combination with the first aspect, in one implementation, according to the first focusing parameter, from the corresponding data, a plurality of groups of focusing parameters and focusing distances involved in the analysis are determined:
[0020] According to the distance between the detection camera and the lens to be tested, a plurality of groups of focusing parameters and focusing distances involved in the analysis on both sides of the first focusing parameter are determined.
[0021] In combination with the first aspect, in one embodiment, before obtaining the first focusing parameter used when the detection camera captures the aperture stop image of the lens to be tested that meets the set clarity, the following steps are included:
[0022] Obtaining the clarity of the aperture diaphragm of the lens to be tested imaged in the detection camera;
[0023] Determining whether the clarity of the aperture diaphragm of the lens to be tested meets the set clarity;
[0024] If not, adjusting the focus parameters of the detection camera until the clarity of the aperture diaphragm of the lens to be tested meets the set clarity;
[0025] If so, it is determined that the current focusing parameter of the detection camera is the first focusing parameter.
[0026] In combination with the first aspect, in one implementation, after determining the entrance pupil position of the lens to be tested according to the distance between the entrance pupil position of the lens to be tested and the detection camera, the following steps are included:
[0027] Obtaining a size detection picture of a size calibration object captured by the detection camera according to the distance between the entrance pupil position of the lens to be tested and the detection camera;
[0028] The size of the aperture stop is determined according to the size detection image and the aperture stop image that meets the set clarity and is captured by the detection camera.
[0029] In combination with the first aspect, in one implementation, in determining the size of the aperture stop according to the size detection picture and the aperture stop picture that meets the set clarity and is captured by the detection camera,
[0030] Determining the size of the size detection screen according to the number of unit features on the size calibration object displayed in the size detection screen;
[0031] The size of the aperture stop is determined according to the pixel ratio of the aperture stop in the aperture stop picture and the size of the size detection picture.
[0032] In a second aspect, an embodiment of the present application provides a device for measuring the entrance pupil position of a lens, which adopts the following technical solution:
[0033] A device for measuring the entrance pupil position of a lens, the device comprising:
[0034] A calibration data acquisition module, which is configured to acquire corresponding data between the focus parameter and the focus distance pre-calibrated at a set definition of the detection camera;
[0035] A focusing parameter acquisition module, configured to acquire a first focusing parameter used when the detection camera captures an aperture stop image of the lens to be tested that meets the set clarity;
[0036] An entrance pupil position detection module is configured to determine the distance between the entrance pupil position of the lens to be tested and the detection camera according to the corresponding data and the first focusing parameter; and determine the entrance pupil position of the lens to be tested according to the distance between the entrance pupil position of the lens to be tested and the detection camera.
[0037] In conjunction with the second aspect, in one implementation, the device further includes:
[0038] A focusing parameter adjustment module is configured to obtain the clarity of the aperture diaphragm of the lens to be tested imaged in the detection camera; determine whether the clarity of the aperture diaphragm of the lens to be tested meets the set clarity; if not, adjust the focusing parameters of the detection camera until the clarity of the aperture diaphragm of the lens to be tested meets the set clarity; if yes, determine that the current focusing parameters of the detection camera are the first focusing parameters.
[0039] In conjunction with the second aspect, in one implementation, the device further includes:
[0040] A size detection module is configured to obtain a size detection image of the size calibration object captured by the detection camera according to the distance between the entrance pupil position of the lens to be tested and the detection camera; and determine the size of the aperture stop according to the size detection image and the aperture stop image captured by the detection camera that meets the set clarity.
[0041] In a third aspect, an embodiment of the present application provides a device for measuring the entrance pupil position of a lens, which adopts the following technical solution:
[0042] A device for measuring the entrance pupil position of a lens, the device comprising a processor, a memory, and a lens entrance pupil position measurement program stored in the memory and executable by the processor, wherein when the lens entrance pupil position measurement program is executed by the processor, the steps of the lens entrance pupil position measurement method as described above are implemented.
[0043] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which adopts the following technical solution:
[0044] A computer-readable storage medium stores a lens entrance pupil position measurement program, wherein when the lens entrance pupil position measurement program is executed by a processor, the steps of the lens entrance pupil position measurement method as described above are implemented.
[0045] The beneficial effects brought by the technical solution provided in the embodiments of the present application include:
[0046] By using the principle that the detection camera can capture a sufficiently clear aperture stop image after the focus position of the detection camera is aligned with the entrance pupil position of the lens to be tested, the focus distance when the detection camera captures a clear aperture stop image is used to determine the distance between the detection camera and the entrance pupil position of the lens to be tested. Since the focus distance of the detection camera can be further analyzed based on the focus parameters under the set clarity, the focus parameters of the detection camera when capturing a clear aperture stop image can be used to deduce the entrance pupil position of the lens to be tested. Finally, the detection camera with the corresponding data between the focus parameters and the focus distance pre-calibrated can be used to efficiently and accurately measure the entrance pupil position of the lens to be tested.
[0047] On the other hand, after determining the entrance pupil position of the lens to be tested, the present application further uses the detection lens to shoot a size calibration object at the distance between the entrance pupil position of the lens to be tested and the detection camera, and determines the size of the image captured by the detection lens at this distance, and then uses the size of the image captured at this distance and the pixel ratio of the aperture stop in the aperture stop image captured by it to further convert the size of the aperture stop. Finally, after mastering the size of the aperture stop and the entrance pupil position of the lens to be tested, it can be more accurately determined whether it can be used for the detection of NED devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 It is a schematic diagram of the imaging principle of the entrance pupil position and exit pupil position of the lens in the background technology;
[0049] Figure 2 A schematic diagram of a flow chart of an embodiment of a method for measuring the entrance pupil position of a lens of the present application;
[0050] Figure 3 A schematic diagram of a first function curve obtained by fitting in the method for measuring the entrance pupil position of a lens of the present application;
[0051] Figure 4 It is a schematic diagram of a second function curve fitted in the method for measuring the entrance pupil position of the lens of the present application;
[0052] Figure 5 This is a schematic diagram of functional modules of an embodiment of a device for measuring the entrance pupil position of a lens of the present application;
[0053] Figure 6 This is a schematic diagram of the hardware structure of a device for measuring the lens entrance pupil position involved in an embodiment of the present application. DETAILED DESCRIPTION
[0054] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0055] In the detection of near eye display (NED), it is often necessary to match the position of the lens entrance pupil with the NED exit pupil, otherwise it is easy to cause the missing of the captured NED imaging picture.
[0056] In the prior art, the entrance pupil position of the lens is often given based on design simulation, and there is an error caused by the simulation design process compared with the actual entrance pupil position of the lens. For NED devices with high detection accuracy requirements, it is easy to cause the detection results of the NED device to not accurately reflect its true level. Therefore, a method for quickly determining the entrance pupil position of the lens used in NED near-eye display needs to be proposed.
[0057] Based on the above problems, the present application provides a method and device for measuring the entrance pupil position of a lens. The main point of the invention is that, by aligning the focus position of a detection camera with the entrance pupil position of the lens to be tested, the detection camera can capture a sufficiently clear aperture stop image. This principle is used to achieve the focus distance when the detection camera captures a clear aperture stop image to determine the distance between the detection camera and the entrance pupil position of the lens to be tested. Since the focus distance of the detection camera can be further analyzed according to the focus parameters under the set clarity, the focus parameters of the detection camera when capturing a clear aperture stop image can be used to deduce the entrance pupil position of the lens to be tested. Finally, the detection camera with the corresponding data between the focus parameters and the focus distance pre-calibrated can be used to efficiently and accurately measure the entrance pupil position of the lens to be tested.
[0058] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0059] In a first aspect, an embodiment of the present application provides a method for measuring the entrance pupil position of a lens.
[0060] In one embodiment, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the method for measuring the entrance pupil position of the lens of the present application. Figure 1 As shown in the figure, the measurement method of the lens entrance pupil position includes:
[0061] S100, obtaining corresponding data between the focus parameter and the focus distance pre-calibrated at a set definition of the detection camera;
[0062] Specifically, by giving a fixed definition requirement, that is, setting the definition, using the detection camera to shoot the target object at different distances in accordance with the set definition, the focus parameter at this time can be matched with the distance between the target object, and repeating this step at different positions can obtain the corresponding data between the focus parameter and the focus distance of the detection camera at the set definition. This process is completed in advance, and the corresponding data can be directly used in the measurement method provided in this application.
[0063] S200, obtaining a first focusing parameter used when the detection camera captures an image of the aperture stop of the lens to be tested that meets the set clarity;
[0064] Specifically, by first determining the distance between the detection camera and the lens to be tested, the detection camera is adjusted based on the distance to obtain an aperture diaphragm image of the lens to be tested that meets the set clarity, and then the focusing parameter of the detection camera can be read as the first focusing parameter.
[0065] S300, determining the distance between the entrance pupil position of the lens to be tested and the detection camera according to the corresponding data and the first focusing parameter;
[0066] Specifically, the focus distance corresponding to the first focus parameter is found according to the corresponding data, and the focus distance is the distance between the entrance pupil position of the lens to be tested and the detection camera.
[0067] S400: Determine the entrance pupil position of the lens to be tested according to the distance between the entrance pupil position of the lens to be tested and the detection camera.
[0068] In this embodiment, by using the principle that the detection camera can capture a sufficiently clear aperture stop image after the focus position of the detection camera is aligned with the entrance pupil position of the lens to be tested, the focus distance when the detection camera captures a clear aperture stop image is used to determine the distance between the detection camera and the entrance pupil position of the lens to be tested. Since the focus distance of the detection camera can be further analyzed according to the focus parameters under the set clarity, the entrance pupil position of the lens to be tested can be derived by using the focus parameters when the detection camera captures a clear aperture stop image. Finally, the detection camera with the corresponding data between the focus parameters and the focus distance pre-calibrated can be used to efficiently and accurately measure the entrance pupil position of the lens to be tested.
[0069] Further, in one embodiment, the corresponding data includes a first function curve obtained by fitting according to a corresponding relationship between multiple groups of focusing parameters and focusing distances;
[0070] In step S300, in determining the distance between the entrance pupil position of the lens to be tested and the detection camera according to the corresponding data and the first focusing parameter, the distance corresponding to the first focusing parameter is determined specifically according to the first function curve as the distance between the entrance pupil position of the lens to be tested and the detection camera.
[0071] Reference Figure 3 In this embodiment, the corresponding data is specifically a first function curve obtained by first fitting according to the correspondence between multiple groups of focusing parameters and focusing distances, so that the focusing distance y1 can be estimated for the uncalibrated first focusing parameter x1 by using the first function curve, without the need to collect and correspond the focusing parameter data for all possible focusing distances involved in the pre-calibration process.
[0072] Further, in one embodiment, the corresponding data includes a plurality of sets of corresponding focus parameters and focus distances;
[0073] S300, determining the distance between the entrance pupil position of the lens to be tested and the detection camera according to the corresponding data and the first focusing parameter, comprises the following steps:
[0074] S310, determining multiple groups of focusing parameters and focusing distances involved in analysis from the corresponding data according to the first focusing parameter;
[0075] S320, fitting a second function curve for analyzing the first focusing parameter according to the multiple groups of focusing parameters and focusing distances involved in the analysis;
[0076] S330: Determine, according to the second function curve, a distance corresponding to the first focusing parameter as a distance between an entrance pupil position of the lens to be tested and the detection camera.
[0077] Reference Figure 4 In this embodiment, after determining the first focusing parameter x1, the first focusing parameter x1 is used to determine the corresponding data of some focusing parameters and focusing distances with better analysis effects in the corresponding data, for example, some focusing parameters that are relatively close to the first focusing parameter, and the corresponding data of these focusing parameters and focusing distances are fitted to obtain a second function curve, and finally the focusing distance y2 corresponding to the first focusing parameter is determined by the second function curve. Compared with the determination method using the first function curve, the accuracy of the focusing distance determined by this embodiment will be higher.
[0078] Further, in one embodiment, in step S310, according to the first focusing parameter, a plurality of groups of focusing parameters and focusing distances involved in the analysis are determined from the corresponding data.
[0079] According to the distance between the detection camera and the lens to be tested, a plurality of groups of focusing parameters and focusing distances involved in the analysis on both sides of the first focusing parameter are determined.
[0080] Specifically, when the distance between the detection camera and the lens to be tested is relatively larger, the error between the focusing parameter and the focal distance will also be relatively larger. Therefore, for the detection situation where the distance between the detection camera and the lens to be tested is relatively large, in order to ensure its measurement accuracy, it is necessary to use relatively more corresponding data of the focusing parameters and the focal distance on both sides of the first focusing parameter to fit the function curve, especially the corresponding data of the focusing parameters and the focal distance corresponding to the side where the focal distance is reduced, so as to maximize the accuracy of analyzing the focal distance corresponding to the first focusing parameter using the function curve; on the contrary, for the detection situation where the distance between the detection camera and the lens to be tested is small, due to its higher measurement accuracy, it is necessary to use relatively less corresponding data of the focusing parameters and the focal distance on both sides of the first focusing parameter to fit the function curve, especially the corresponding data of the focusing parameters and the focal distance corresponding to the side where the focal distance is increased, so as to avoid being affected by the error of the corresponding data on this side.
[0081] Furthermore, in some embodiments, before the step S200 of obtaining the first focusing parameter used when the detection camera captures the image of the aperture stop of the lens to be tested that meets the set clarity, the following steps are included:
[0082] S110, obtaining the clarity of the aperture diaphragm of the lens to be tested imaged in the detection camera;
[0083] S120, determining whether the clarity of the aperture diaphragm of the lens to be tested meets the set clarity;
[0084] S130, if not, adjusting the focus parameters of the detection camera until the clarity of the aperture diaphragm of the lens to be tested meets the set clarity;
[0085] S140: If the conditions are met, determine that the current focus parameter of the detection camera is the first focus parameter.
[0086] With such an arrangement, the test method provided in the present application can automatically adjust the focusing parameters of the test camera according to the clarity of the aperture diaphragm of the lens to be tested currently imaged by the test camera until it can obtain an image of the aperture diaphragm of the lens to be tested that meets the set clarity, thereby reducing the problem of repeated adjustment and repeated shooting caused by the difficulty in controlling the change in clarity during manual adjustment.
[0087] Further, in some embodiments, after the step S400, determining the entrance pupil position of the lens to be tested according to the distance between the entrance pupil position of the lens to be tested and the detection camera, the following steps are included:
[0088] S500, obtaining a size detection picture of a size calibration object captured by the detection camera according to the distance between the entrance pupil position of the lens to be tested and the detection camera;
[0089] S600: Determine the size of the aperture stop according to the size detection image and the aperture stop image that meets the set clarity and is captured by the detection camera.
[0090] Specifically, during the inspection of NED devices, in addition to ensuring that the entrance pupil position of the shooting camera (i.e., the lens to be tested in this case) matches the exit pupil position of the NED, in order to analyze the display status of the display screen on the NED device, the shooting camera is also required to be able to fully capture the display screen on the NED device. Therefore, it is necessary to inspect the size of the aperture diaphragm of the shooting camera, i.e., the lens to be tested, to ensure that it can fully capture the display screen of the NED device.
[0091] Based on the above requirements, the measurement solution provided by the present application, in step S500, by placing a size calibration object at the entrance pupil position of the detection camera and obtaining the size detection picture taken by the detection camera at the size calibration position, realizes the actual size corresponding to the size detection picture taken by the detection camera at the focus distance. Then, since the aperture diaphragm picture of the lens to be tested taken at the focus distance has been obtained in the previous step, the size of the aperture diaphragm can be determined according to the pixel area ratio of the aperture diaphragm in the aperture diaphragm picture and the actual size corresponding to the size detection picture. Based on this principle, specifically, in this embodiment, step S600 includes the following steps:
[0092] S610, determining the size of the size detection screen according to the number of unit features on the size calibration object displayed in the size detection screen;
[0093] The size calibration object is an image whose specific size can be analyzed according to the image content, such as a pixel grid calibration plate, on which the image is composed of a number of unit features with unit sizes.
[0094] S620: Determine the size of the aperture stop according to the pixel ratio of the aperture stop in the aperture stop picture and the size of the size detection picture.
[0095] In a second aspect, an embodiment of the present application also provides a device for measuring the entrance pupil position of a lens.
[0096] In one embodiment, referring to Figure 4 , Figure 4 This is a functional module diagram of an embodiment of a device for measuring the entrance pupil position of a lens of the present application. Figure 4 As shown, the measuring device for the lens entrance pupil position includes:
[0097] A calibration data acquisition module, which is configured to acquire corresponding data between the focus parameter and the focus distance pre-calibrated at a set definition of the detection camera;
[0098] A focusing parameter acquisition module, configured to acquire a first focusing parameter used when the detection camera captures an aperture stop image of the lens to be tested that meets the set clarity;
[0099] An entrance pupil position detection module is configured to determine the distance between the entrance pupil position of the lens to be tested and the detection camera according to the corresponding data and the first focusing parameter; and determine the entrance pupil position of the lens to be tested according to the distance between the entrance pupil position of the lens to be tested and the detection camera.
[0100] Furthermore, in one embodiment, the device for measuring the lens entrance pupil position further includes:
[0101] A focusing parameter adjustment module is configured to obtain the clarity of the aperture diaphragm of the lens to be tested imaged in the detection camera; determine whether the clarity of the aperture diaphragm of the lens to be tested meets the set clarity; if not, adjust the focusing parameters of the detection camera until the clarity of the aperture diaphragm of the lens to be tested meets the set clarity; if yes, determine that the current focusing parameters of the detection camera are the first focusing parameters.
[0102] Furthermore, in one embodiment, the device for measuring the lens entrance pupil position further includes:
[0103] A size detection module is configured to obtain a size detection image of the size calibration object captured by the detection camera according to the distance between the entrance pupil position of the lens to be tested and the detection camera; and determine the size of the aperture stop according to the size detection image and the aperture stop image captured by the detection camera that meets the set clarity.
[0104] Among them, the functional implementation of each module in the above-mentioned device for measuring the lens entrance pupil position corresponds to the various steps in the above-mentioned embodiment of the method for measuring the lens entrance pupil position, and their functions and implementation processes will not be repeated here one by one.
[0105] In a third aspect, an embodiment of the present application provides a device for measuring the entrance pupil position of a lens. The device for measuring the entrance pupil position of a lens may be a personal computer (PC), a laptop computer, a server, or other device with a data processing function.
[0106] Reference Figure 5 , Figure 5Schematic diagram of the hardware structure of the device for measuring the lens entrance pupil position involved in the embodiment of the present application. In the embodiment of the present application, the device for measuring the lens entrance pupil position may include a processor, a memory, a communication interface and a communication bus.
[0107] The communication bus may be of any type and is used to interconnect the processor, the memory, and the communication interface.
[0108] The communication interface includes an input / output (I / O) interface, a physical interface, and a logical interface, etc., which are used to interconnect the devices inside the lens entrance pupil position measuring device, and an interface used to interconnect the lens entrance pupil position measuring device with other devices (such as other computing devices or user devices). The physical interface can be an Ethernet interface, an optical fiber interface, an ATM interface, etc.; the user device can be a display, a keyboard, etc.
[0109] The memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical storage, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.
[0110] The processor may be a general-purpose processor, which may call a lens entrance pupil position measurement program stored in a memory and execute the lens entrance pupil position measurement method provided in the embodiment of the present application. For example, the general-purpose processor may be a central processing unit (CPU). The method executed when the lens entrance pupil position measurement program is called may refer to the various embodiments of the lens entrance pupil position measurement method of the present application, which will not be described in detail here.
[0111] Those skilled in the art will understand that Figure 5 The hardware structure shown in the figure does not constitute a limitation on the present application, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0112] In a fourth aspect, an embodiment of the present application also provides a computer-readable storage medium.
[0113] The computer-readable storage medium of the present application stores a lens entrance pupil position measurement program, wherein when the lens entrance pupil position measurement program is executed by a processor, the steps of the lens entrance pupil position measurement method as described above are implemented.
[0114] Among them, the method implemented when the lens entrance pupil position measurement program is executed can refer to the various embodiments of the lens entrance pupil position measurement method of the present application, and will not be repeated here.
[0115] It should be noted that the serial numbers of the above-mentioned embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.
[0116] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. The terms "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit "first", "second" and "third" to different types.
[0117] In the description of the embodiments of the present application, "exemplary", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "for example" or "for example" is intended to present related concepts in a specific way.
[0118] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; the “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.
[0119] In some processes described in the embodiments of the present application, multiple operations or steps that appear in a specific order are included, but it should be understood that these operations or steps may not be executed in the order in which they appear in the embodiments of the present application or in parallel, and the sequence number of the operation is only used to distinguish the different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed in sequence or in parallel, and these operations or steps may be combined.
[0120] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD) as described above, and includes a number of instructions for a terminal device to execute the methods described in each embodiment of the present application.
[0121] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for measuring the entrance pupil position of a lens, characterized in that: The method comprises: Obtaining corresponding data between the focus parameters and the focus distance pre-calibrated at the set definition of the detection camera; Acquire a first focusing parameter used when the detection camera captures an image of the aperture stop of the lens to be tested that meets the set clarity; Determine the distance between the entrance pupil position of the lens to be tested and the detection camera according to the corresponding data and the first focusing parameter; The entrance pupil position of the lens to be tested is determined according to the distance between the entrance pupil position of the lens to be tested and the detection camera.
2. The method for measuring the lens entrance pupil position according to claim 1, characterized in that: The corresponding data includes a first function curve obtained by fitting according to the corresponding relationship between multiple groups of focusing parameters and focusing distances; In the step of determining the distance between the entrance pupil position of the lens to be tested and the detection camera according to the corresponding data and the first focusing parameter, According to the first function curve, a distance corresponding to the first focusing parameter is determined as the distance between the entrance pupil position of the lens to be tested and the detection camera.
3. The method for measuring the lens entrance pupil position according to claim 1, characterized in that: The corresponding data includes multiple sets of corresponding focusing parameters and focusing distances; Determining the distance between the entrance pupil position of the lens to be tested and the detection camera according to the corresponding data and the first focusing parameter comprises the following steps: According to the first focusing parameter, determining multiple groups of focusing parameters and focusing distances involved in analysis from the corresponding data; According to the plurality of groups of focusing parameters and focusing distances involved in the analysis, a second function curve for analyzing the first focusing parameter is obtained by fitting; According to the second function curve, a distance corresponding to the first focusing parameter is determined as the distance between the entrance pupil position of the lens to be tested and the detection camera.
4. The method for measuring the lens entrance pupil position as claimed in claim 3, characterized in that: The step of determining, based on the first focusing parameter, a plurality of groups of focusing parameters and focusing distances involved in the analysis from the corresponding data, According to the distance between the detection camera and the lens to be tested, a plurality of groups of focusing parameters and focusing distances involved in the analysis on both sides of the first focusing parameter are determined.
5. The method for measuring the lens entrance pupil position according to claim 1, characterized in that: Before obtaining the first focusing parameter used when the detection camera captures the aperture stop image of the lens to be tested that meets the set clarity, the following steps are included: Obtaining the clarity of the aperture diaphragm of the lens to be tested imaged in the detection camera; Determining whether the clarity of the aperture diaphragm of the lens to be tested meets the set clarity; If not, adjusting the focus parameters of the detection camera until the clarity of the aperture diaphragm of the lens to be tested meets the set clarity; If so, it is determined that the current focusing parameter of the detection camera is the first focusing parameter.
6. The method for measuring the lens entrance pupil position according to claim 1, characterized in that: After determining the entrance pupil position of the lens to be tested according to the distance between the entrance pupil position of the lens to be tested and the detection camera, the following steps are included: Obtaining a size detection picture of a size calibration object captured by the detection camera according to the distance between the entrance pupil position of the lens to be tested and the detection camera; The size of the aperture stop is determined according to the size detection image and the aperture stop image that meets the set clarity and is captured by the detection camera.
7. The method for measuring the lens entrance pupil position according to claim 1, characterized in that: In the step of determining the size of the aperture stop according to the size detection image and the aperture stop image that meets the set definition and is captured by the detection camera, Determining the size of the size detection screen according to the number of unit features on the size calibration object displayed in the size detection screen; The size of the aperture stop is determined according to the pixel ratio of the aperture stop in the aperture stop picture and the size of the size detection picture.
8. A device for measuring the entrance pupil position of a lens, characterized in that: The device comprises: A calibration data acquisition module, which is configured to acquire corresponding data between the focus parameter and the focus distance pre-calibrated at a set definition of the detection camera; A focusing parameter acquisition module, configured to acquire a first focusing parameter used when the detection camera captures an aperture stop image of the lens to be tested that meets the set clarity; An entrance pupil position detection module is configured to determine the distance between the entrance pupil position of the lens to be tested and the detection camera according to the corresponding data and the first focusing parameter; and determine the entrance pupil position of the lens to be tested according to the distance between the entrance pupil position of the lens to be tested and the detection camera.
9. The device for measuring the lens entrance pupil position according to claim 8, characterized in that: The device also includes: A focusing parameter adjustment module is configured to obtain the clarity of the aperture diaphragm of the lens to be tested imaged in the detection camera; determine whether the clarity of the aperture diaphragm of the lens to be tested meets the set clarity; if not, adjust the focusing parameters of the detection camera until the clarity of the aperture diaphragm of the lens to be tested meets the set clarity; if yes, determine that the current focusing parameters of the detection camera are the first focusing parameters.
10. The device for measuring the lens entrance pupil position according to claim 8, characterized in that: The device also includes: A size detection module is configured to obtain a size detection image of the size calibration object captured by the detection camera according to the distance between the entrance pupil position of the lens to be tested and the detection camera; and determine the size of the aperture stop according to the size detection image and the aperture stop image captured by the detection camera that meets the set clarity.
Citation Information
Patent Citations
Detection method and system of pupil entrance position of industrial camera
CN107607294A
Pupil distance testing method and device
CN109741294A
Lens position adjusting method and device
CN110557547A
AR glasses and related device and method thereof
CN114488534A
Zoom lens calibration method, device, storage medium and system
CN118135027A
Cited By
Calibration method and measurement method of visual angle measurement device
CN122192715A
