Pupil localization method, system, medium, product and system based on OCT
Through the three-frame image positioning method based on OCT, the problem of poor positioning in the existing technology in complex environments is solved, and the pupil positioning with low cost and low complexity is achieved, and efficiency and accuracy are improved.
Patent Information
- Application Number
- CN202411942037.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2044-12-27
AI Technical Summary
The existing pupil positioning methods are ineffective under complex and changing environmental conditions, especially in dark environments, and the prior art requires high-cost pupil cameras and complex positioning algorithms, which are inefficient and have high operating requirements.
Using a three-frame image positioning method based on OCT, the pupil position is calculated and the focus is moved to the pupil to complete the positioning through scanning area calibration, focus movement and image processing.
It realizes accurate positioning of the pupil in a low-light environment, reduces equipment costs, improves positioning efficiency, and does not affect the light transparency of the optical path.
Smart Images

Figure CN119344660B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of pupil localization technology, and in particular to an OCT-based pupil localization method, system, medium, product and system. Background Art
[0002] The statements in this section merely provide background art related to the present invention and do not necessarily constitute prior art.
[0003] OCT (Optical Coherence Tomography) is a non-invasive imaging technology that uses the principle of light interference to obtain high-resolution cross-sectional images of biological tissues. It is now widely used in the field of ophthalmology to diagnose eye diseases such as retinal diseases and glaucoma. When previewing and collecting images, it is often the case that the incident light cannot accurately enter the pupil due to the shaking of the subject, and the fundus image is lost.
[0004] Most of the existing positioning methods use pupil cameras in combination with image recognition algorithms such as deep learning, template matching or feature detection to achieve pupil positioning, or directly use images collected by pupil cameras for manual positioning. Although the above methods achieve pupil positioning, the pupil camera required for the automatic pupil positioning method using image recognition algorithms is expensive and the positioning algorithm is complex, while manual positioning is inefficient and requires high operator proficiency. Under complex and changing environmental conditions, especially under dark environmental conditions, pupil positioning through feature detection will not obtain clear edges and contrast due to image blur or excessive noise, and the pupil positioning effect will be significantly reduced; template matching also requires good contrast to ensure accuracy, and will also have a low success rate due to lack of sufficient information; deep learning will cause the effect to change due to the lack of sufficient low-light environment samples in the training data. In addition, the existing method of achieving positioning through pupil cameras requires a dichroic mirror and a fill light installed on the optical path to obtain pupil information, thereby reducing the light transmittance of the optical path, thereby causing a decrease in image quality. Summary of the invention
[0005] In order to address the deficiencies of the prior art, the present invention provides an OCT-based pupil positioning method, system, medium, product and system, which can help the OCT device locate the pupil and regain fundus images with low cost and without affecting the light path transmittance.
[0006] In order to achieve the above object, the present invention adopts the following technical solution:
[0007] In a first aspect, the present invention provides a pupil positioning method based on OCT.
[0008] A pupil localization method based on OCT includes the following processes:
[0009] Calibrate the scanning area;
[0010] When the fundus image is lost due to micro-movement of the subject, the current first frame image is collected, the focus is moved and the second frame image is collected, and the axial distance between the current focus and the pupil is obtained by processing;
[0011] Then move the focus to the calibration position, collect the third frame image, obtain the pupil position after processing, calculate the horizontal and vertical distances that the current focus needs to move, combine the axial distance between the current focus and the pupil, and move the focus to the pupil position to complete the positioning.
[0012] As a further limitation of the first aspect of the present invention, calibrating the scanning area includes:
[0013] The width of the scanned image formed by the last lens on the optical path of the scanning area is , the scanned image height is , the scanning interval is ;
[0014] The focus is positioned on the pupil of the subject through focusing so that the incident light enters the pupil (a clear and visible image can be observed), and the camera fixed on the outside is adjusted so that the camera can collect all pupil information during use;
[0015] Shift the focus toward the outside of the pupil , the maximum voltage of the scanning galvanometer is , the minimum diameter of the pupil is ,at this time: , , ; The scanning interval takes the maximum value, and , wherein the scanning lens, the first focusing lens and the second focusing lens are arranged in sequence along the optical path, is the maximum distance that the subject needs to move due to micro-motion. is the distance from the focus of the second focusing lens to the second focusing lens, is the distance from the scanning galvanometer to the first focusing lens, The focus position flag determined for the second frame image.
[0016] As a further limitation of the first aspect of the present invention, when the fundus image is lost due to micro-movement of the subject, the first frame of the current image is captured by an external fixed camera, and the focus is moved backward. , the current second frame image is captured by an external fixed camera, and the axial distance between the focus and the pupil in the first frame image is obtained by processing. , ,in, The focus position flag determined for the first frame image. is the maximum vertical coordinate of the scanned image in the first frame of image, is the minimum vertical coordinate of the scanned image on the first frame image, is the maximum vertical coordinate of the scanned image in the second frame image, It is the minimum vertical coordinate value of the scanned image in the second frame image.
[0017] As a further limitation of the first aspect of the present invention, in combination with the axial distance between the focus and the pupil in the first frame image and the distance the focus moves back , move the focus to the front of the pupil At , use a fixed external camera to capture the third frame of image, record the third frame of image The actual distance represented by each pixel in the direction is , remember the third frame image The actual distance represented by each pixel in the direction is ;
[0018] The pupil coordinates at this time are obtained by using the three coordinate points determined by the third frame image. , with the left side of the subject as the horizontal direction The positive direction, with the top being the vertical direction Positive direction: the direction the person is facing is the axial direction The positive direction of the scanned image collected by the third frame is recorded as , then: the focus is The distance to move in the direction is: ; Focus on The distance to move in the direction is: ; Focus on The distance to move in the direction is: .
[0019] As a further limitation of the first aspect of the present invention, it is assumed that The maximum and minimum values of the direction are and , The maximum and minimum values of the direction are and ,but: ; .
[0020] As a further limitation of the first aspect of the present invention, the three coordinate points determined by the third frame image are: , , , then the pupil coordinates :
[0021] ; .
[0022] In a second aspect, the present invention provides an OCT-based pupil positioning system.
[0023] A pupil positioning system based on OCT, comprising:
[0024] The scanning area calibration unit is configured to: calibrate the scanning area;
[0025] The image processing unit is configured to: when the fundus image of the subject is lost due to micro-movement, collect the current first frame image, collect the second frame image after moving the focus, and process to obtain the axial distance between the current focus and the pupil;
[0026] The pupil positioning unit is configured to: subsequently move the focus to the calibrated position, capture the third frame image, obtain the pupil position after processing, calculate the horizontal distance and vertical distance that the current focus needs to move, and move the focus to the pupil position to complete the positioning in combination with the axial distance between the current focus and the pupil.
[0027] In a third aspect, the present invention provides a computer device, comprising: a processor and a computer-readable storage medium;
[0028] a processor adapted to execute a computer program;
[0029] A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by the processor, the pupil positioning method based on OCT as described in the first aspect of the present invention is implemented.
[0030] In a fourth aspect, the present invention provides a computer-readable storage medium storing a computer program, wherein the computer program is suitable for being loaded by a processor and executing the OCT-based pupil positioning method as described in the first aspect of the present invention.
[0031] In a fifth aspect, the present invention provides a computer program product, comprising a computer program, which, when executed by a processor, implements the OCT-based pupil positioning method as described in the first aspect of the present invention.
[0032] Compared with the prior art, the present invention has the following beneficial effects:
[0033] The present invention innovatively proposes a pupil positioning method based on three-frame images, which is calibrated before use to adapt to different people and equipment. When the fundus image of the person to be tested is lost due to micro-movement, the following operations are performed: the galvanometer scanning protocol is switched to the pupil positioning scanning protocol, the image of the current frame is collected by an external fixed camera, the focus is moved by a displacement mechanism to collect the second frame image, the axial distance between the current focus and the pupil is obtained after data processing, and then the focus is moved to the calibration position, the third frame image is collected, the pupil position information is obtained after data processing, and the focus is moved to the pupil by the displacement mechanism to complete the positioning. The present invention can help the OCT device locate the pupil and regain the fundus image, with low cost and without affecting the light path transmittance.
[0034] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0036] Figure 1 A schematic diagram of the pupil positioning method based on OCT provided in Example 1 of the present invention;
[0037] Figure 2 An optical path diagram of a portion of the OCT system used in Example 1 of the present invention;
[0038] Figure 3 A schematic diagram of a scanning area provided in Example 1 of the present invention;
[0039] Figure 4 The focus provided in Embodiment 1 of the present invention moves backward Schematic diagram of the optical path;
[0040] Figure 5 A schematic diagram of a light path where both the first frame image and the second frame image provided in Embodiment 1 of the present invention are outside the pupil;
[0041] Figure 6 A schematic diagram of a light path in which the first frame image is inside the pupil and the second frame image is outside the pupil provided in Example 1 of the present invention;
[0042] Figure 7 A schematic diagram of the optical path of the first frame image and the second frame image provided in Embodiment 1 of the present invention, both of which are inside the pupil;
[0043] Figure 8 A schematic diagram of an OCT-based pupil positioning system provided in Example 2 of the present invention;
[0044] Fig. 9 A schematic diagram of a computer device provided in Embodiment 3 of the present invention;
[0045] Among them, 1. light source; 2. scanning galvanometer; 3. first focusing lens; 4. second focusing lens; 5. human eye. DETAILED DESCRIPTION
[0046] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0047] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0048] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.
[0049] Embodiment 1:
[0050] This implementation proposes a pupil positioning method based on OCT, such as Figure 1 As shown, the following process is included:
[0051] S1: Calibrate the scanning area;
[0052] S2: When the fundus image is lost due to micro-movement of the subject, the first frame of the current image is collected, and the second frame of the image is collected after the focus is moved, and the axial distance between the current focus and the pupil is obtained by processing;
[0053] S3: Then move the focus to the calibration position, collect the third frame image, obtain the pupil position after processing, calculate the horizontal distance and vertical distance that the current focus needs to move, combine the axial distance between the current focus and the pupil, and move the focus to the pupil position to complete the positioning.
[0054] The OCT system used in the above process is Figure 2 As shown, it includes: a light source 1 , a scanning galvanometer 2 , a first focusing lens 3 , a second focusing lens 4 , and a human eye 5 is located behind the second focusing lens 4 .
[0055] In this implementation, before calibrating the scanning area, it is necessary to construct a pupil positioning scanning protocol (i.e., determine the scanning area), such as Figure 3 As shown, the width of the scanned image formed by the last lens (i.e., the second focusing lens 4) on the optical path of the scanning area is , the scanned image height is , the interval is (Unit: μm).
[0056] In S1 of this implementation, the scanning area is calibrated, including the following process:
[0057] Before pupil positioning, calibration is performed. First, the focus is positioned on the pupil of the subject's eye 5 by focusing to ensure that the incident light accurately enters the pupil and a clear and visible image can be observed. The camera fixed on the outside is adjusted to ensure that all pupil information can be collected during use. The focus is translated toward the outside of the pupil by the displacement mechanism. , the projection of the scanning protocol on the eyeball is Gao Wei , the scanning interval is The maximum distance that the subject needs to move due to "micro-movement" is , in order to ensure that at least two scanning lines cover the pupil, the interval of the scanning protocol should be less than half of the pupil diameter. At this time, the projection relationship is obtained:
[0058] (1);
[0059] (2);
[0060] (3);
[0061] in, is the distance from the focus of the second focusing lens 4 to the lens, is the minimum diameter of the pupil.
[0062] To ensure execution speed and reduce travel, As small as possible, that is, take the maximum voltage of each channel of the scanning galvanometer 2, and record the distance from the scanning galvanometer 2 to the first focusing lens 3 as the focal length of the lens , the maximum voltage of scanning galvanometer 2 is ,but:
[0063] (4);
[0064] (5);
[0065] at this time:
[0066] (6);
[0067] In order to increase the scanning rate and reduce the number of scanning lines, the scanning interval should take the maximum value, and:
[0068] (7).
[0069] In S2 of this implementation, specifically, it includes:
[0070] When the operator detects that the fundus image is lost due to "micro-movement" of the subject, the "scanning mode" is switched to the "pupil positioning scanning mode", and the current frame of data is collected by the camera as the first frame of image, and the focus is moved backward by the displacement mechanism. Micrometer, such as Figure 4 As shown, a frame of data is collected and recorded as the second frame image.
[0071] The camera collects the light reflected from the human eye and processes the data. Most of the light entering the pupil is absorbed by the retina and other eye tissues instead of being reflected back, resulting in almost no light reflected back to the camera from the pupil. Therefore, the scan line of the scanned image in the image collected by the camera that scans the pupil is missing because there is no light reflected back to the camera around the pupil. This feature can be used to obtain the coordinates of the edge of the pupil.
[0072] The maximum and minimum values of the first frame image in the vertical direction are and , the focus is , the distance to the pupil is , the maximum and minimum values of the vertical direction of the first frame image are and , the focus is , and because the camera remains stationary when the focus moves, the proportional relationship between the pixel distance and the actual distance of the two frames of images is the same. The relationship between the coordinates of the two frames of images and the axial distance can be obtained through the mapping relationship.
[0073] If the first and second frames are both outside the pupil, such as Figure 5 As shown, we get:
[0074] (8);
[0075] If the first frame is inside the pupil and the second frame is outside the pupil, Figure 6 As shown, we get:
[0076] (9);
[0077] If the first and second frames are both inside the pupil, such as Figure 7 As shown, we get:
[0078] (10);
[0079] The brightness of the left and right edges of the acquired scanned image is judged by the image processing algorithm. If the brightness of the right side of the acquired scanned image is high, which is consistent with the image direction of the pupil positioning scanning protocol, the focus is outside the pupil. If the brightness of the left side of the acquired scanned image is high, the focus is inside the pupil.
[0080] The focus position flag determined by the first frame image is , the focus position flag determined by the second frame image is , if the focus is outside the pupil, it is recorded as -1, and if the focus is inside the pupil, it is 1, and we get:
[0081] (11);
[0082] (12).
[0083] In S3 of this implementation, specifically, it includes:
[0084] Since the focus of the first frame image has been obtained during the mobile focus image acquisition and processing, Distance to pupil , and the distance the focus of the second frame image moves is known , so the current focus to pupil position can be obtained;
[0085] according to and Move the focus to the front of the pupil At the previously marked position, the current image is captured and recorded as the third frame image. The actual distance represented by each pixel in the direction is ,image The actual distance represented by each pixel in the direction is , The maximum and minimum values of the direction are , , The maximum and minimum values of the direction are and , from the projection relationship we can get:
[0086] (13);
[0087] (14);
[0088] Since the interval of the pupil scanning protocol is less than half of the pupil diameter, the coordinates of the three points of the third frame image can be determined after data processing, which are: , and , then the pupil coordinates :
[0089] (15);
[0090] (16);
[0091] The left side of the subject is the positive horizontal direction, the top is the positive vertical direction, and the direction the subject is facing is the positive axial direction. The center coordinates of the scanned image acquired by the third frame are recorded as .
[0092] Focus on The distance to move in the direction is:
[0093] (17);
[0094] Focus on The distance to move in the direction is:
[0095] (18);
[0096] Focus on The distance to move in the direction is:
[0097] (19);
[0098] The pupil positioning is completed by moving the focus to the pupil through the displacement mechanism.
[0099] Embodiment 2:
[0100] like Figure 8 As shown, this implementation provides an OCT-based pupil positioning system, including:
[0101] The scanning area calibration unit is configured to: calibrate the scanning area;
[0102] The image processing unit is configured to: when the fundus image of the subject is lost due to micro-movement, collect the current first frame image, collect the second frame image after moving the focus, and process to obtain the axial distance between the current focus and the pupil;
[0103] The pupil positioning unit is configured to: subsequently move the focus to the calibrated position, capture the third frame image, obtain the pupil position after processing, calculate the horizontal distance and vertical distance that the current focus needs to move, and move the focus to the pupil position to complete the positioning in combination with the axial distance between the current focus and the pupil.
[0104] The detailed process of each unit is described in Example 1 and will not be repeated here.
[0105] It is understandable that the above-mentioned units can be separately or completely combined into one or several other units to constitute, or one (some) of the units can be further divided into multiple smaller units in function to constitute, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above-mentioned units are divided based on logical functions. In practical applications, the functions of one unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit. In other embodiments of the present application, the system may also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units.
[0106] According to another embodiment of the present application, the system described in this embodiment can be constructed, and the method of Example 1 of the present application can be implemented by running a computer program (including program code) capable of executing the steps involved in the corresponding method described in Example 1 on a general-purpose computing device such as a computer, which includes processing elements and storage elements such as a central processing unit (CPU), random access memory (RAM), and read-only memory (ROM). The computer program can be recorded on, for example, a computer-readable recording medium, and loaded into the above-mentioned computing device through the computer-readable recording medium and run therein.
[0107] Embodiment 3:
[0108] like Fig. 9 As shown, this implementation provides an electronic device, which includes a processor 1001, a communication interface 1002, and a computer-readable storage medium 1003. The processor 1001, the communication interface 1002, and the computer-readable storage medium 1003 may be connected via a bus or other means.
[0109] Among them, the communication interface 1002 is used to receive and send data, the computer-readable storage medium 1003 can be stored in the memory of the electronic device, the computer-readable storage medium 1003 is used to store a computer program, the computer program includes program instructions, and the processor 1001 is used to execute the program instructions stored in the computer-readable storage medium 1003.
[0110] The processor 1001 (or CPU (Central Processing Unit)) is the computing core and control core of the electronic device, which is suitable for implementing one or more instructions, and specifically suitable for loading and executing one or more instructions to implement corresponding method processes or corresponding functions.
[0111] The processor 1001 is configured to execute the following process:
[0112] Calibrate the scanning area;
[0113] When the fundus image is lost due to micro-movement of the subject, the current first frame image is collected, the focus is moved and the second frame image is collected, and the axial distance between the current focus and the pupil is obtained by processing;
[0114] Then move the focus to the calibration position, collect the third frame image, obtain the pupil position after processing, calculate the horizontal and vertical distances that the current focus needs to move, combine the axial distance between the current focus and the pupil, and move the focus to the pupil position to complete the positioning.
[0115] The detailed process is described in Example 1 and will not be repeated here.
[0116] Embodiment 4:
[0117] This implementation provides a computer-readable storage medium (Memory), which is a memory device in an electronic device for storing programs and data. It is understandable that the computer-readable storage medium here can include both built-in storage media in the electronic device and, of course, extended storage media supported by the electronic device. The computer-readable storage medium provides a storage space that stores the processing system of the electronic device.
[0118] In addition, the storage space also stores one or more instructions suitable for being loaded and executed by the processor, and these instructions may be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here may be a high-speed RAM memory, or a non-volatile memory, such as at least one disk memory; optionally, it may also be at least one computer-readable storage medium located away from the aforementioned processor.
[0119] In one embodiment, the computer-readable storage medium stores one or more instructions; the processor loads and executes the one or more instructions stored in the computer-readable storage medium to implement the following process:
[0120] Calibrate the scanning area;
[0121] When the fundus image is lost due to micro-movement of the subject, the current first frame image is collected, the focus is moved and the second frame image is collected, and the axial distance between the current focus and the pupil is obtained by processing;
[0122] Then move the focus to the calibration position, collect the third frame image, obtain the pupil position after processing, calculate the horizontal and vertical distances that the current focus needs to move, combine the axial distance between the current focus and the pupil, and move the focus to the pupil position to complete the positioning.
[0123] The detailed process is described in Example 1 and will not be repeated here.
[0124] Embodiment 5:
[0125] The present implementation provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device performs the following process:
[0126] Calibrate the scanning area;
[0127] When the fundus image is lost due to micro-movement of the subject, the current first frame image is collected, the focus is moved and the second frame image is collected, and the axial distance between the current focus and the pupil is obtained by processing;
[0128] Then move the focus to the calibration position, collect the third frame image, obtain the pupil position after processing, calculate the horizontal and vertical distances that the current focus needs to move, combine the axial distance between the current focus and the pupil, and move the focus to the pupil position to complete the positioning.
[0129] The detailed process is described in Example 1 and will not be repeated here.
[0130] A person skilled in the art can appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. A person skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0131] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted through a computer-readable storage medium. The computer instructions can be transmitted from a website site, a computer, a server or a data center to another website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data processing device such as a server, a data center, etc. that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.
[0132] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A pupil positioning method based on OCT, characterized in that: The process includes: Calibrate the scanning area; When the fundus image is lost due to micro-movement of the subject, the current first frame image is collected, the focus is moved and the second frame image is collected, and the axial distance between the current focus and the pupil is obtained by processing; Then, the focus is moved to the calibration position, the third frame of image is collected, the pupil position is obtained after processing, the horizontal distance and vertical distance that the current focus needs to move are calculated, and the focus is moved to the pupil position to complete the positioning in combination with the axial distance between the current focus and the pupil; Calibrate the scanning area, including: The width of the scanned image formed by the last lens on the optical path of the scanning area is , the scanned image height is , the scanning interval is ; The focus is positioned on the pupil of the subject to be tested by focusing so that the incident light enters the pupil, and the camera fixed on the outside is adjusted so that the camera can collect all pupil information during use; Shift the focus toward the outside of the pupil , the maximum voltage of the scanning galvanometer is , the minimum diameter of the pupil is ,at this time: , , , the scanning interval takes the maximum value, and , wherein the scanning lens, the first focusing lens and the second focusing lens are arranged in sequence along the optical path, is the maximum distance that the subject needs to move due to micro-motion. is the distance from the focus of the second focusing lens to the second focusing lens, is the distance from the scanning galvanometer to the first focusing lens, The focus position flag determined for the second frame image.
2. The pupil positioning method based on OCT according to claim 1, characterized in that: When the fundus image is lost due to micro-movement of the subject, the first frame of the current image is captured by an external fixed camera, and the focus is moved backward. , the current second frame image is captured by an external fixed camera, and the axial distance between the focus and the pupil in the first frame image is obtained by processing. , ,in, The focus position flag determined for the first frame image. The focus position flag determined for the second frame image. is the maximum value of the vertical coordinate of the scanned image on the first frame image, is the minimum value of the vertical coordinate of the scanned image on the first frame image, is the maximum value of the vertical coordinate of the scanned image on the second frame image, It is the minimum value of the vertical coordinate of the scanned image in the second frame image.
3. The pupil positioning method based on OCT according to claim 2, characterized in that: Combined with the axial distance between the focus and the pupil in the first frame image and the distance the focus moves back , move the focus to the front of the pupil At , use a fixed external camera to capture the third frame of image, record the third frame of image The actual distance represented by each pixel in the direction is , remember the third frame image The actual distance represented by each pixel in the direction is ; The pupil coordinates at this time are obtained by using the three coordinate points determined by the third frame image. , with the left side of the subject as the horizontal direction The positive direction, with the top being the vertical direction Positive direction: the direction the person is facing is the axial direction The positive direction of the scanned image collected by the third frame is recorded as , then: the focus is The distance to move in the direction is: ; Focus on The distance to move in the direction is: ; Focus on The distance to move in the direction is: .
4. The pupil positioning method based on OCT as claimed in claim 3, characterized in that: assumed The maximum and minimum values of the direction are and , The maximum and minimum values of the direction are and ,but: ; ,in, is the width of the scanned image formed by the last lens on the optical path of the scanned area. It is the height of the scanned image formed by the last lens on the optical path of the scanned area.
5. The pupil positioning method based on OCT as claimed in claim 3, characterized in that: The three coordinate points determined by the third frame image are: , , , then the pupil coordinates : ; 。 6. An OCT-based pupil localization system, based on the OCT-based pupil localization method according to any one of claims 1 to 5, characterized in that: include: The scanning area calibration unit is configured to: calibrate the scanning area; The image processing unit is configured to: when the fundus image of the subject is lost due to micro-movement, collect the current first frame image, collect the second frame image after moving the focus, and process to obtain the axial distance between the current focus and the pupil; The pupil positioning unit is configured to: subsequently move the focus to the calibrated position, capture the third frame image, obtain the pupil position after processing, calculate the horizontal distance and vertical distance that the current focus needs to move, and move the focus to the pupil position to complete the positioning in combination with the axial distance between the current focus and the pupil.
7. A computer device, characterized in that: include: A processor and a computer readable storage medium; a processor adapted to execute a computer program; A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by the processor, the pupil positioning method based on OCT is implemented as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded by a processor and executing the OCT-based pupil positioning method according to any one of claims 1 to 5.
9. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the OCT-based pupil positioning method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Shooting positioning method and system for portable mydriasis-free fundus camera
CN115471552A