CN117495864A - Imaging direction computing system and diopter estimating system based on image processing - Google Patents
Imaging direction computing system and diopter estimating system based on image processing Download PDFInfo
- Publication number
- CN117495864A CN117495864A CN202410004274.1A CN202410004274A CN117495864A CN 117495864 A CN117495864 A CN 117495864A CN 202410004274 A CN202410004274 A CN 202410004274A CN 117495864 A CN117495864 A CN 117495864A
- Authority
- CN
- China
- Prior art keywords
- light
- boundary
- image
- pupil
- right boundary
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000012545 processing Methods 0.000 title claims abstract description 34
- 238000003384 imaging method Methods 0.000 title abstract 2
- 210000001747 pupil Anatomy 0.000 claims abstract description 57
- 238000004364 calculation method Methods 0.000 claims abstract description 27
- 238000003708 edge detection Methods 0.000 claims abstract description 13
- 230000011218 segmentation Effects 0.000 claims abstract description 8
- 230000001131 transforming effect Effects 0.000 claims abstract description 3
- 238000001514 detection method Methods 0.000 claims description 11
- 230000000877 morphologic effect Effects 0.000 claims description 8
- 230000009466 transformation Effects 0.000 claims description 8
- 238000007781 pre-processing Methods 0.000 claims description 4
- 238000013527 convolutional neural network Methods 0.000 claims description 3
- 238000000034 method Methods 0.000 abstract description 15
- 230000008569 process Effects 0.000 abstract description 9
- 238000010191 image analysis Methods 0.000 abstract description 3
- 238000013507 mapping Methods 0.000 abstract 4
- 208000014733 refractive error Diseases 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 230000006735 deficit Effects 0.000 description 1
- 208000030533 eye disease Diseases 0.000 description 1
- 230000001815 facial effect Effects 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 238000005286 illumination Methods 0.000 description 1
- 210000001525 retina Anatomy 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B3/00—Apparatus for testing the eyes; Instruments for examining the eyes
- A61B3/10—Objective types, i.e. instruments for examining the eyes independent of the patients' perceptions or reactions
- A61B3/103—Objective types, i.e. instruments for examining the eyes independent of the patients' perceptions or reactions for determining refraction, e.g. refractometers, skiascopes
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B3/00—Apparatus for testing the eyes; Instruments for examining the eyes
- A61B3/10—Objective types, i.e. instruments for examining the eyes independent of the patients' perceptions or reactions
- A61B3/14—Arrangements specially adapted for eye photography
- A61B3/145—Arrangements specially adapted for eye photography by video means
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
- G06T3/4053—Scaling of whole images or parts thereof, e.g. expanding or contracting based on super-resolution, i.e. the output image resolution being higher than the sensor resolution
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
- G06T7/0012—Biomedical image inspection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/11—Region-based segmentation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/13—Edge detection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/136—Segmentation; Edge detection involving thresholding
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/155—Segmentation; Edge detection involving morphological operators
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10016—Video; Image sequence
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30004—Biomedical image processing
- G06T2207/30041—Eye; Retina; Ophthalmic
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Surgery (AREA)
- Biomedical Technology (AREA)
- Animal Behavior & Ethology (AREA)
- Heart & Thoracic Surgery (AREA)
- Public Health (AREA)
- Veterinary Medicine (AREA)
- Biophysics (AREA)
- Ophthalmology & Optometry (AREA)
- Molecular Biology (AREA)
- Quality & Reliability (AREA)
- Radiology & Medical Imaging (AREA)
- Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
- Multimedia (AREA)
- Image Processing (AREA)
Abstract
Description
技术领域Technical field
本发明涉及医学图像分析技术领域,特别是涉及基于图像处理的影动方向计算系统及屈光度估计系统。The present invention relates to the technical field of medical image analysis, and in particular to an image motion direction calculation system and a diopter estimation system based on image processing.
背景技术Background technique
本部分的陈述仅仅是提到了与本发明相关的背景技术,并不必然构成现有技术。The statements in this section merely mention the background technology related to the present invention and do not necessarily constitute prior art.
屈光不正是最常见的眼部障碍,也是可矫正视力损害背后的关键原因。屈光不正可通过多种方法进行诊断,包括主观验光、客观验光等。检影验光是传统的客观验光方法之一,它通过对患者眼底影像中的影动方向和明亮度进行分析,配合不同的透镜,判断患者的屈光不正。检影验光的优点在于其结果客观可靠,不需要被检者主观配合,具有很强的适用性。然而,检影验光的方法也存在一些问题,它通常需要较长的时间和专业人员的介入,限制了其在大规模视力筛查中的使用。Refractive errors are the most common eye disorder and a key cause behind correctable vision impairment. Refractive errors can be diagnosed through a variety of methods, including subjective refraction, objective refraction, etc. Retinoscopy is one of the traditional objective refraction methods. It analyzes the direction and brightness of the patient's fundus image and uses different lenses to determine the patient's refractive error. The advantage of retinoscopy is that its results are objective and reliable, do not require the subject's subjective cooperation, and have strong applicability. However, the retinoscopy method also has some problems. It usually requires a long time and professional intervention, which limits its use in large-scale vision screening.
发明内容Contents of the invention
为了解决现有技术的不足,本发明提供了基于图像处理的影动方向计算系统及屈光度估计系统;根据检影验光视频,利用图像处理技术,并通过数学建模以及相应算法,计算得到影动方向以及屈光不正。这一技术的主要优点在于提高了屈光不正计算的准确性,减少了主观因素的干扰,并且加速了验光过程。In order to solve the shortcomings of the existing technology, the present invention provides an image motion direction calculation system and a diopter estimation system based on image processing; based on the retinoscopy video, image processing technology is used, and through mathematical modeling and corresponding algorithms, the image motion is calculated direction and refractive error. The main advantages of this technology are to improve the accuracy of refractive error calculation, reduce the interference of subjective factors, and speed up the refraction process.
一方面,提供了屈光度估计系统,包括:第一获取模块,其被配置为:采集患者眼部区域的验光视频;映光速度计算模块,其被配置为:对验光视频中的每一帧图像分割出瞳孔区域图像;对分割得到的瞳孔区域图像进行超分辨率处理,得到超分辨率瞳孔区域图像;对超分辨率瞳孔区域图像进行阈值分割,分割出映光区域;对映光区域进行形态学处理并进行边缘检测,得到映光边缘轮廓,进而得到映光边缘轮廓的左边界横坐标和右边界横坐标;对左右边界横坐标进行变换,得到变换后的左右边界横坐标;对验光视频中的所有帧图像,均得到变换后的左右边界横坐标;对变换后的左右边界横坐标序列分别进行线性拟合,得到左右边界的移动速度;将左右边界的移动速度的平均值作为映光速度;屈光度计算模块,其被配置为:基于映光速度和屈光度拟合公式,计算得到屈光度。On the one hand, a diopter estimation system is provided, including: a first acquisition module, which is configured to: collect a refraction video of the patient's eye area; a light reflection speed calculation module, which is configured to: calculate each frame of the image in the refraction video Segment the pupil area image; perform super-resolution processing on the segmented pupil area image to obtain a super-resolution pupil area image; perform threshold segmentation on the super-resolution pupil area image to segment the light-reflecting area; perform morphology on the light-reflecting area Learn to process and perform edge detection to obtain the light-reflecting edge contour, and then obtain the left and right boundary abscissas of the light-reflecting edge contour; transform the left and right boundary abscissas to obtain the transformed left and right boundary abscissas; for the optometry video For all frame images in , the transformed left and right boundary abscissas are obtained; linear fitting is performed on the transformed left and right boundary abscissa sequences to obtain the moving speed of the left and right boundaries; the average value of the moving speed of the left and right boundaries is used as the reflection Speed; the diopter calculation module is configured to calculate the diopter based on the reflected light speed and the diopter fitting formula.
另一方面,提供了基于图像处理的影动方向计算系统,包括:第二获取模块,其被配置为:采集患者眼部区域的验光视频;映光移动方向计算模块,其被配置为:对验光视频中的每一帧图像分割出瞳孔区域图像;对分割得到的瞳孔区域图像进行超分辨率处理,得到超分辨率瞳孔区域图像;对超分辨率瞳孔区域图像进行阈值分割,分割出映光区域;对映光区域进行形态学处理并进行边缘检测,得到映光边缘轮廓,进而得到映光边缘轮廓的左边界横坐标和右边界横坐标;对左右边界横坐标进行变换,得到变换后的左右边界横坐标;对验光视频中的所有帧图像,均得到变换后的左右边界横坐标;对变换后的左右边界横坐标序列分别进行线性拟合,得到左右边界的移动速度;将左右边界的移动速度的平均值作为映光速度;根据映光速度计算出映光移动方向;光带移动方向计算模块,其被配置为:计算出光带移动方向;影动方向计算模块,其被配置为:根据映光移动方向和光带移动方向,计算出影动方向。On the other hand, an image processing-based shadow movement direction calculation system is provided, including: a second acquisition module configured to: collect the optometry video of the patient's eye area; and a light movement direction calculation module configured to: Each frame of the image in the optometry video is segmented into a pupil area image; the segmented pupil area image is subjected to super-resolution processing to obtain a super-resolution pupil area image; a threshold segmentation is performed on the super-resolution pupil area image to segment the reflected light area; perform morphological processing on the light-reflecting area and perform edge detection to obtain the light-reflecting edge contour, and then obtain the left and right boundary abscissas of the light-reflecting edge contour; transform the left and right boundary abscissas to obtain the transformed The left and right boundary abscissas; for all frame images in the optometry video, the transformed left and right boundary abscissas are obtained; linear fitting is performed on the transformed left and right boundary abscissa sequences to obtain the moving speed of the left and right boundaries; the left and right boundaries are The average moving speed is used as the reflected light speed; the reflected light moving direction is calculated according to the reflected light speed; the light belt moving direction calculation module is configured to: calculate the light belt moving direction; the shadow moving direction calculation module is configured as: Based on the moving direction of the reflected light and the moving direction of the light strip, the moving direction of the shadow is calculated.
上述技术方案具有如下优点或有益效果:本发明根据验光视频,采用图像处理的方式,计算得到影动方向以及屈光度,提高了屈光不正计算的准确性,减少了主观因素的干扰,并且加速了验光过程,有助于实现验光过程的自动化、智能化。发明属于医学图像分析技术领域,具体涉及一种基于图像处理的影动方向及屈光不正估计方法。其中,该方法包括获取验光视频,提取映光边界并计算映光相关参数,提取光带边界并计算光带相关参数,计算影动方向及屈光度。本发明可以实现对影动方向及屈光度的准确识别、计算,减少了主观因素的干扰,并且加速了验光过程,有助于实现验光过程的自动化、智能化。The above technical solution has the following advantages or beneficial effects: the present invention uses image processing to calculate the moving direction and diopter based on the optometry video, improves the accuracy of refractive error calculation, reduces the interference of subjective factors, and accelerates The optometry process helps to realize the automation and intelligence of the optometry process. The invention belongs to the technical field of medical image analysis, and specifically relates to a method for estimating the direction of motion and refractive error based on image processing. Among them, the method includes obtaining the optometry video, extracting the boundary of the reflection and calculating the parameters related to the reflection, extracting the boundary of the light band and calculating the parameters related to the light band, and calculating the moving direction and diopter. The invention can realize accurate identification and calculation of the moving direction and diopter, reduces the interference of subjective factors, accelerates the optometry process, and helps to realize the automation and intelligence of the optometry process.
附图说明Description of drawings
构成本发明的一部分的说明书附图用来提供对本发明的进一步理解,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。The description and drawings that constitute a part of the present invention are used to provide a further understanding of the present invention. The illustrative embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention.
图1为实施例一的屈光度估计系统的功能模块图;Figure 1 is a functional module diagram of the diopter estimation system of Embodiment 1;
图2为实施例一的基于图像处理的影动方向计算系统功能模块图。Figure 2 is a functional module diagram of the motion direction calculation system based on image processing in Embodiment 1.
具体实施方式Detailed ways
应该指出,以下详细说明都是示例性的,旨在对本发明提供进一步的说明。除非另有指明,本文使用的所有技术和科学术语具有与本发明所属技术领域的普通技术人员通常理解的相同含义。It should be noted that the following detailed description is exemplary and is intended to provide further explanation of the present invention. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
实施例一Embodiment 1
如图1所示,屈光度估计系统,包括:第一获取模块,其被配置为:采集患者眼部区域的验光视频;映光速度计算模块,其被配置为:对验光视频中的每一帧图像分割出瞳孔区域图像;对分割得到的瞳孔区域图像进行超分辨率处理,得到超分辨率瞳孔区域图像;对超分辨率瞳孔区域图像进行阈值分割,分割出映光区域;对映光区域进行形态学处理并进行边缘检测,得到映光边缘轮廓,进而得到映光边缘轮廓的左边界横坐标和右边界横坐标;对左右边界横坐标进行变换,得到变换后的左右边界横坐标;对验光视频中的所有帧图像,均得到变换后的左右边界横坐标;对变换后的左右边界横坐标序列分别进行线性拟合,得到左右边界的移动速度;将左右边界的移动速度的平均值作为映光速度;屈光度计算模块,其被配置为:基于映光速度和屈光度拟合公式,计算得到屈光度。As shown in Figure 1, the diopter estimation system includes: a first acquisition module, which is configured to: collect the refraction video of the patient's eye area; a light reflection speed calculation module, which is configured to: calculate each frame in the refraction video The image is segmented to obtain the pupil area image; the segmented pupil area image is subjected to super-resolution processing to obtain a super-resolution pupil area image; the super-resolution pupil area image is thresholded to segment the light-reflecting area; the light-reflecting area is processed Morphological processing and edge detection are performed to obtain the light-reflecting edge contour, and then the left and right boundary abscissas of the light-reflecting edge contour are obtained; the left and right boundary abscissas are transformed to obtain the transformed left and right boundary abscissas; for optometry For all frame images in the video, the transformed left and right boundary abscissas are obtained; linear fitting is performed on the transformed left and right boundary abscissa sequences to obtain the moving speed of the left and right boundaries; the average value of the moving speed of the left and right boundaries is used as the map. The speed of light; the diopter calculation module is configured to calculate the diopter based on the reflected light speed and the diopter fitting formula.
进一步地,所述采集患者眼部区域的验光视频,是用图像采集设备采集的,检影镜光带,在患者眼部区域左右匀速扫描的验光视频;并且在图像采集的过程中,患者佩戴有白色背景板的基准眼镜框,眼镜框上有两个矩形的开口,可以将眼部区域露出来。白色背景板可以设置在没有镜片的眼镜框上,方便患者佩戴,但是不局限于这种形式,白色背景板也可以贴在患者的面部,白色背景板设有矩形开口,矩形开口能够拍摄到患者的眼部区域。Further, the optometry video of the patient's eye area is collected using an image acquisition device, and the retinoscope light belt scans the optometry video at a constant speed around the patient's eye area; and during the image collection process, the patient wears A standard spectacle frame with a white background plate and two rectangular openings to expose the eye area. The white background plate can be set on the glasses frame without lenses to facilitate the patient to wear it, but it is not limited to this form. The white background plate can also be attached to the patient's face. The white background plate is equipped with a rectangular opening, and the rectangular opening can capture the patient. eye area.
图像采集时,摄像头的镜头是紧贴着检影镜的观察孔,通过检影镜的观察孔获取图像的,摄像头所拍到的图像也就是验光师在检影验光时所看到的图像,摄像头相当于验光师的眼睛。When collecting images, the lens of the camera is close to the observation hole of the retinoscope, and the image is obtained through the observation hole of the retinoscope. The image captured by the camera is the image seen by the optometrist during retinoscopy. The camera is the equivalent of the optometrist’s eyes.
进一步地,所述对验光视频中的每一帧图像分割出瞳孔区域图像,包括:对验光视频中的每一帧图像进行预处理;对预处理后的图像进行基准检测,得到眼部矩形区域;在矩形区域内,检测出瞳孔,得到瞳孔的最小外接矩形区域;将瞳孔的最小外接矩形区域分割出来,得到瞳孔区域图像。Further, the segmenting the pupil area image from each frame of the image in the optometry video includes: preprocessing each frame of the image in the optometry video; performing benchmark detection on the preprocessed image to obtain the eye rectangular area ; In the rectangular area, detect the pupil and obtain the minimum circumscribed rectangular area of the pupil; segment the minimum circumscribed rectangular area of the pupil to obtain the pupil area image.
进一步地,所述对验光视频中的每一帧图像进行预处理,具体包括:对每一帧图像进行灰度化处理,将灰度化处理后的图像进行滤波处理、亮度调节和伽马矫正,得到预处理后的图像。Further, the preprocessing of each frame of the image in the optometry video specifically includes: performing grayscale processing on each frame of the image, and performing filtering, brightness adjustment, and gamma correction on the grayscaled image. , get the preprocessed image.
进一步地,所述对预处理后的图像进行基准检测,得到眼部矩形区域,基准检测包括:将眼部矩形区域的中心点作为基准点F1。Further, the preprocessed image is subjected to benchmark detection to obtain the eye rectangular area. The benchmark detection includes: taking the center point of the eye rectangular area as the reference point F 1 .
应理解地,摄像头相对患者是左右移动的,所以在拍摄到的图像中,同一个物体的位置也在变化。基准检测是在图像里找一个世界坐标系中位置固定的参考点,该参考点在世界坐标系中是固定不动的,而在图像坐标系中是移动的。将将眼部矩形区域的中心点作为参考点,也就是基准点。It should be understood that the camera moves left and right relative to the patient, so in the captured images, the position of the same object also changes. Benchmark detection is to find a reference point in the image that is fixed in the world coordinate system. This reference point is fixed in the world coordinate system, but moves in the image coordinate system. The center point of the rectangular area of the eye will be used as the reference point, which is the base point.
进一步地,所述在矩形区域内,检测出瞳孔,得到瞳孔的最小外接矩形区域,采用圆形检测方式或训练后的卷积神经网络识别出瞳孔,并得到瞳孔的最小外接矩形区域,记录瞳孔的最小外接矩形区域距离坐标原点最近的端点坐标F2。Further, in the rectangular area, the pupil is detected, and the minimum circumscribed rectangular area of the pupil is obtained. The circular detection method or the trained convolutional neural network is used to identify the pupil, and the minimum circumscribed rectangular area of the pupil is obtained, and the pupil is recorded. The minimum circumscribed rectangular area is the closest endpoint coordinate F 2 to the coordinate origin.
进一步地,所述对分割得到的瞳孔区域图像进行超分辨率处理,得到超分辨率瞳孔区域图像,是将分割得到的瞳孔区域图像,输入到超分辨率网络SRCNN(Super-Resolution Convolutional Neural Network)中,进行四倍超分辨率处理,得到超分辨率瞳孔区域图像。Further, the step of performing super-resolution processing on the segmented pupil area image to obtain the super-resolution pupil area image is to input the segmented pupil area image into the super-resolution network SRCNN (Super-Resolution Convolutional Neural Network). , perform four times super-resolution processing to obtain a super-resolution pupil area image.
进一步地,所述对超分辨率瞳孔区域图像进行阈值分割,分割出映光区域,具体包括:设定阈值,将超分辨率瞳孔区域图像中像素值高于设定阈值的点分割出来,将低于设定阈值的点舍弃,得到映光区域。Further, performing threshold segmentation on the super-resolution pupil area image to segment the light-reflecting area specifically includes: setting a threshold, segmenting points with pixel values higher than the set threshold in the super-resolution pupil area image, and dividing the Points lower than the set threshold are discarded to obtain the light reflection area.
进一步地,所述对映光区域进行形态学处理并进行边缘检测,得到映光边缘轮廓,进而得到映光边缘轮廓的左边界横坐标和右边界横坐标,包括:对映光区域进行形态学处理,消除不连续的部分以及突出的部分,并进行边缘检测,然后得到映光边缘轮廓,取轮廓中横坐标最小的点作为映光边缘轮廓的左边界横坐标,取轮廓中横坐标最大的点作为映光边缘轮廓的右边界;记录映光边缘轮廓的左边界横坐标,映光边缘轮廓的右边界横坐标。Further, performing morphological processing on the light-reflecting area and performing edge detection to obtain the light-reflecting edge contour, and then obtaining the left and right boundary abscissas of the light-reflecting edge contour, includes: performing morphology on the light-reflecting area Process, eliminate discontinuous parts and protruding parts, and perform edge detection, and then obtain the light-reflecting edge contour. Take the point with the smallest abscissa in the outline as the left boundary abscissa of the light-reflecting edge contour, and take the point with the largest abscissa in the outline. The point serves as the right boundary of the light-reflecting edge contour; records the abscissa of the left boundary of the light-reflecting edge contour. , the right boundary abscissa of the light-reflecting edge contour .
映光即为在检影镜的带状光束照射下,人眼视网膜的反射光。The reflected light is the reflected light from the retina of the human eye under the illumination of the strip beam of the retinoscope.
进一步地,所述对左右边界横坐标进行变换,得到变换后的左右边界横坐标,包括:将映光边界横坐标、/>进行变换处理,得到变换后的映光边界横坐标/>、/>,变换公式如下:/>;/>。Further, the transformation of the left and right boundary abscissas to obtain the transformed left and right boundary abscissas includes: transforming the light-reflecting boundary abscissas into ,/> Perform transformation processing to obtain the transformed abscissa of the light-reflecting boundary/> ,/> , the transformation formula is as follows:/> ;/> .
进一步地,所述对验光视频中的所有帧图像,均得到变换后的左右边界横坐标,包括:逐帧记录变换后的映光边界横坐标L2、R2,得到变换后的映光左边界坐标序列S1以及变换后的映光右边界坐标序列S2。Further, for all frame images in the optometry video, the transformed left and right boundary abscissas are obtained, including: recording the transformed abscissas L 2 and R 2 of the reflected light boundary frame by frame, and obtaining the transformed left and right boundary coordinates The boundary coordinate sequence S 1 and the transformed light-reflecting right boundary coordinate sequence S 2 .
进一步地,所述对变换后的左右边界横坐标序列分别进行线性拟合,得到左右边界的移动速度;将左右边界的移动速度的平均值作为映光速度,具体包括:将变换后的映光左边界坐标序列S1做分段线性拟合,得到两段直线斜率,将接近零的斜率去除,将未被去除的直线斜率作为左边界的移动速度Vrl;同理,得到右边界的移动速度Vrr;然后将计算得到的左边界移动速度Vrl以及右边界移动速度Vrr取平均值,作为映光速度Vr。Further, linear fitting is performed on the transformed left and right boundary abscissa sequences respectively to obtain the moving speed of the left and right boundaries; the average of the moving speeds of the left and right boundaries is used as the light reflection speed, which specifically includes: converting the transformed light reflection Perform piecewise linear fitting on the left boundary coordinate sequence S1 to obtain two straight line slopes. Remove the slope that is close to zero and use the unremoved straight line slope as the moving speed V rl of the left boundary; similarly, obtain the moving speed of the right boundary. V rr ; then average the calculated left boundary moving speed V rl and right boundary moving speed V rr as the reflected light speed V r .
进一步地,所述基于映光速度和屈光度拟合公式,计算得到屈光度,包括:将映光速度输入屈光度拟合公式,计算得到屈光度/>,拟合公式形式如下,其中/>、/>、/>为拟合参数:/>。Further, the diopter is calculated based on the fitting formula of reflected light speed and diopter, including: converting the reflected light speed to Enter the diopter fitting formula to calculate the diopter/> , the fitting formula form is as follows, where/> ,/> ,/> is the fitting parameter:/> .
采集一组不同屈光度患者的验光视频,然后由眼科医师标注屈光度数据,并结合实施例一计算得到的映光速度,拟合得到拟合参数。A group of refraction videos of patients with different refraction are collected, and then the ophthalmologist annotates the refraction data, and combines it with the light reflection speed calculated in Example 1 to obtain the fitting parameters.
实施例二Embodiment 2
如图2所示,基于图像处理的影动方向计算系统,包括:第二获取模块,其被配置为:采集患者眼部区域的验光视频;映光移动方向计算模块,其被配置为:对验光视频中的每一帧图像分割出瞳孔区域图像;对分割得到的瞳孔区域图像进行超分辨率处理,得到超分辨率瞳孔区域图像;对超分辨率瞳孔区域图像进行阈值分割,分割出映光区域;对映光区域进行形态学处理并进行边缘检测,得到映光边缘轮廓,进而得到映光边缘轮廓的左边界横坐标和右边界横坐标;对左右边界横坐标进行变换,得到变换后的左右边界横坐标;对验光视频中的所有帧图像,均得到变换后的左右边界横坐标;对变换后的左右边界横坐标序列分别进行线性拟合,得到左右边界的移动速度;将左右边界的移动速度的平均值作为映光速度;根据映光速度计算出映光移动方向;光带移动方向计算模块,其被配置为:计算出光带移动方向;影动方向计算模块,其被配置为:根据映光移动方向和光带移动方向,计算出影动方向。As shown in Figure 2, the image processing-based shadow movement direction calculation system includes: a second acquisition module, which is configured to: collect the optometry video of the patient's eye area; and a light movement direction calculation module, which is configured to: Each frame of the image in the optometry video is segmented into a pupil area image; the segmented pupil area image is subjected to super-resolution processing to obtain a super-resolution pupil area image; a threshold segmentation is performed on the super-resolution pupil area image to segment the reflected light area; perform morphological processing on the light-reflecting area and perform edge detection to obtain the light-reflecting edge contour, and then obtain the left and right boundary abscissas of the light-reflecting edge contour; transform the left and right boundary abscissas to obtain the transformed The left and right boundary abscissas; for all frame images in the optometry video, the transformed left and right boundary abscissas are obtained; linear fitting is performed on the transformed left and right boundary abscissa sequences to obtain the moving speed of the left and right boundaries; the left and right boundaries are The average moving speed is used as the reflected light speed; the reflected light moving direction is calculated according to the reflected light speed; the light belt moving direction calculation module is configured to: calculate the light belt moving direction; the shadow moving direction calculation module is configured as: Based on the moving direction of the reflected light and the moving direction of the light strip, the moving direction of the shadow is calculated.
进一步地,所述根据映光速度计算出映光移动方向,包括:根据映光速度Vr的正负,得到映光的移动方向,如果映光速度Vr的数值为正,则映光的移动方向为向右移动;如果映光速度Vr的数值为负,则映光的移动方向为向左移动。Further, calculating the moving direction of the reflected light based on the reflected light speed includes: obtaining the moving direction of the reflected light based on the positive or negative value of the reflected light speed V r . If the value of the reflected light speed V r is positive, then the reflected light speed V r is positive. The moving direction is to the right; if the value of the reflected light speed V r is negative, the moving direction of the reflected light is to the left.
该左右方向与录制验光视频时的摄像头视角中的左右方向一致。验光时,验光师需要和患者正对面坐着,验光师左手边的方向即为左,验光师右手边的方向即为右,该系统中摄像头的视角和验光师的视角是一致的。The left-right direction is consistent with the left-right direction in the camera's perspective when recording the optometry video. During optometry, the optometrist needs to sit directly opposite the patient. The direction to the optometrist's left hand side is left, and the direction to the optometrist's right hand side is right. The perspective of the camera in this system is consistent with that of the optometrist.
进一步地,所述计算出光带移动方向,包括:获取验光视频,对验光视频的每一帧图像进行预处理;将预处理后的图像进行基准检测,得到矩形区域,并将矩形区域的中心点作为基准点F1;在矩形区域的上方设定区域进行阈值分割以及边缘检测,然后进行直线检测,并对检测到的直线进行筛选,找到光带的左右边界,记录下光带左边界的横坐标L3以及光带右边界的横坐标R3;分别对光带左边界的横坐标L3以及光带右边界的横坐标R3进行坐标变换,得到变换后的光带左边界横坐标L4以及变换后的光带右边界横坐标R4;对验光视频的每一帧图像,均得到变换后的光带左边界横坐标L4以及变换后的光带右边界横坐标R4,得到光带左边界坐标序列S3以及光带右边界坐标序列S4;将左边界坐标序列S3做分段线性拟合,得到两段直线斜率,将接近零的斜率去除,将未被去除的斜率作为左边界的移动速度Vbl;同理得到右边界的移动速度Vbr;然后将计算得到的左边界移动速度Vbl以及右边界移动速度Vbr取平均值,作为光带的移动速度Vb;根据光带移动速度的符号,得到光带的移动方向。Further, the calculation of the moving direction of the light belt includes: obtaining the optometry video, preprocessing each frame of the optometry video; performing benchmark detection on the preprocessed image to obtain a rectangular area, and setting the center point of the rectangular area As the reference point F 1 ; set the area above the rectangular area to perform threshold segmentation and edge detection, then perform straight line detection, screen the detected straight lines, find the left and right boundaries of the light strip, and record the horizontal direction of the left boundary of the light strip. coordinate L 3 and the abscissa R 3 of the right boundary of the light strip; perform coordinate transformation on the abscissa L 3 of the left boundary of the light strip and the abscissa R 3 of the right boundary of the light strip respectively to obtain the transformed abscissa L of the left boundary of the light strip 4 and the transformed abscissa R 4 of the right boundary of the light band; for each frame of the optometry video, the transformed abscissa L 4 of the left boundary of the light band and the transformed abscissa R 4 of the right boundary of the light band are obtained, and we get The left boundary coordinate sequence S 3 of the light belt and the right boundary coordinate sequence S 4 of the light belt; perform piecewise linear fitting of the left boundary coordinate sequence S 3 to obtain the slopes of two straight lines, remove the slope that is close to zero, and remove the slope that has not been removed The slope is used as the moving speed V bl of the left boundary; similarly, the moving speed V br of the right boundary is obtained; then the calculated moving speed V bl of the left boundary and the moving speed V br of the right boundary are averaged as the moving speed V of the light strip b ; According to the sign of the moving speed of the light belt, the moving direction of the light belt is obtained.
如果光带速度Vb的数值为正,则光带的移动方向为向右移动;如果光带速度Vb的数值为负,则光带的移动方向为向左移动。If the value of the light belt speed V b is positive, the moving direction of the light belt is to the right; if the value of the light belt speed V b is negative, the moving direction of the light belt is to the left.
判断该左右方向的视角和判断映光左右方向的视角是一致的。The angle of view for judging the left and right direction is the same as the angle of view for judging the left and right direction of the reflected light.
进一步地,所述对检测到的直线进行筛选,找到光带的左右边界,记录下光带左边界的横坐标L3以及光带右边界的横坐标R3,具体包括:设定阈值,根据直线斜率选择图像中竖直方向的直线,并去除长度小于设定阈值的直线;然后在筛选后的直线中,根据线段中心点的横坐标找到最左侧和最右侧的直线,作为光带的左右边界;将中心点横坐标最小的线段作为光带的左边界,并将该直线中心点的横坐标作为光带左边界横坐标L3;将中心点横坐标最大的直线作为光带的右边界,并将该直线中心点的横坐标作为光带右边界横坐标R3。Further, the detected straight lines are screened to find the left and right boundaries of the light band, and the abscissa L 3 of the left boundary of the light band and the abscissa R 3 of the right boundary of the light band are recorded, specifically including: setting a threshold, according to Line slope selects vertical straight lines in the image and removes straight lines whose length is less than the set threshold; then among the filtered straight lines, find the leftmost and rightmost straight lines based on the abscissa of the line segment center point as light strips The left and right boundaries of boundary, and take the abscissa coordinate of the center point of the straight line as the abscissa R3 of the right boundary of the light strip.
应理解地,由于患者带上了基准眼睛框,眼睛周围的面部区域被基准眼睛框的白色背景板遮挡,所以检影镜发出的带状光束有一部分被投影到眼睛周围的白色背景板上,另外一部分被投影到了人眼区域,白色背景板上所呈现出的检影镜带状光束的投影就是光带。It should be understood that since the patient wears the reference eye frame and the facial area around the eyes is blocked by the white background plate of the reference eye frame, part of the strip beam emitted by the retinoscope is projected onto the white background plate around the eyes. The other part is projected to the human eye area, and the projection of the retinoscope strip beam shown on the white background board is the light strip.
进一步地,所述对光带左边界的横坐标L3以及光带右边界的横坐标R3进行坐标变换,变换公式如下:;/>。Further, the coordinate transformation is performed on the abscissa L 3 of the left boundary of the light strip and the abscissa R 3 of the right boundary of the light strip. The transformation formula is as follows: ;/> .
进一步地,所述根据映光移动方向和光带移动方向,计算出影动方向,包括:将计算得到的映光的移动方向以及光带的移动方向进行比较,如果方向一致,影动方向为顺动,如果方向不一致,影动方向为逆动。Further, calculating the shadow moving direction based on the moving direction of the reflected light and the moving direction of the light strip includes: comparing the calculated moving direction of the reflected light and the moving direction of the light strip. If the directions are consistent, the shadow moving direction is smooth. If the direction is inconsistent, the moving direction is reverse.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410004274.1A CN117495864B (en) | 2024-01-03 | 2024-01-03 | Imaging direction computing system and diopter estimating system based on image processing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410004274.1A CN117495864B (en) | 2024-01-03 | 2024-01-03 | Imaging direction computing system and diopter estimating system based on image processing |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117495864A true CN117495864A (en) | 2024-02-02 |
CN117495864B CN117495864B (en) | 2024-04-09 |
Family
ID=89667633
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410004274.1A Active CN117495864B (en) | 2024-01-03 | 2024-01-03 | Imaging direction computing system and diopter estimating system based on image processing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117495864B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070171366A1 (en) * | 2006-01-20 | 2007-07-26 | Clarity Medical Systems | Sequential wavefront sensor |
CN101964111A (en) * | 2010-09-27 | 2011-02-02 | 山东大学 | Method for improving sight tracking accuracy based on super-resolution |
CN108703738A (en) * | 2017-04-28 | 2018-10-26 | 分界线(天津)网络技术有限公司 | A kind of measuring system and method for hyperopic refractive degree |
CN109684915A (en) * | 2018-11-12 | 2019-04-26 | 温州医科大学 | Pupil tracking image processing method |
CN111067479A (en) * | 2019-12-31 | 2020-04-28 | 西安电子科技大学 | Fundus imaging device and fundus imaging method |
CN115499588A (en) * | 2022-09-15 | 2022-12-20 | 江苏至真健康科技有限公司 | Exposure time control method and system of portable mydriasis-free fundus camera |
-
2024
- 2024-01-03 CN CN202410004274.1A patent/CN117495864B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070171366A1 (en) * | 2006-01-20 | 2007-07-26 | Clarity Medical Systems | Sequential wavefront sensor |
CN101964111A (en) * | 2010-09-27 | 2011-02-02 | 山东大学 | Method for improving sight tracking accuracy based on super-resolution |
CN108703738A (en) * | 2017-04-28 | 2018-10-26 | 分界线(天津)网络技术有限公司 | A kind of measuring system and method for hyperopic refractive degree |
CN109684915A (en) * | 2018-11-12 | 2019-04-26 | 温州医科大学 | Pupil tracking image processing method |
CN111067479A (en) * | 2019-12-31 | 2020-04-28 | 西安电子科技大学 | Fundus imaging device and fundus imaging method |
CN115499588A (en) * | 2022-09-15 | 2022-12-20 | 江苏至真健康科技有限公司 | Exposure time control method and system of portable mydriasis-free fundus camera |
Non-Patent Citations (3)
Title |
---|
LYNDON JONES: "TFOS Lifestyle: Impact of contact lenses on the ocular surface", 《THE OCULAR SURFACE》, 31 July 2023 (2023-07-31) * |
吴帅贤: "面向检影验光中散光的图像采集设备和处理算法研究", 《中国优秀硕士学位论文全文数据库》, 15 January 2023 (2023-01-15), pages 32 - 63 * |
马佳霖: "车联网应用的成功案例—武汉城市自由流", 《中国优秀硕士学位论文全文数据库》, 15 February 2016 (2016-02-15) * |
Also Published As
Publication number | Publication date |
---|---|
CN117495864B (en) | 2024-04-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Gagnon et al. | Procedure to detect anatomical structures in optical fundus images | |
JP4583527B2 (en) | How to determine eye position | |
CN101271517A (en) | Face area detection device, method and computer readable recording medium | |
CN111933275A (en) | Depression evaluation system based on eye movement and facial expression | |
CN110428421A (en) | Macula lutea image region segmentation method and apparatus | |
CN111738241B (en) | Pupil detection method and device based on double cameras | |
CN109840484B (en) | Pupil detection method based on edge filtering, ellipse evaluation and pupil verification | |
CN112837805A (en) | Extraction method of eyelid topological morphological features based on deep learning | |
JP2023503781A (en) | Ocular fundus image recognition method, device and equipment | |
CN110096978A (en) | The method of eccentricity cycles image procossing based on machine vision | |
JP2003271932A (en) | Gaze direction detection device | |
Kunka et al. | Non-intrusive infrared-free eye tracking method | |
CN112712521B (en) | Automatic positioning method of fundus optic disk based on global gradient search and storage medium thereof | |
CN110598635A (en) | Method and system for face detection and pupil positioning in continuous video frames | |
CN103955941B (en) | A kind of specularmicroscope and the method for analysis | |
JP2004192552A (en) | Eye opening/closing determining apparatus | |
CN117495864B (en) | Imaging direction computing system and diopter estimating system based on image processing | |
TW202302028A (en) | Ophthalmology inspection device and pupil tracking method | |
WO2024037579A1 (en) | Palpebral fissure height measurement method and apparatus, and storage medium | |
JP4996943B2 (en) | Facial feature point detection apparatus, facial feature point detection method, and program | |
WO2024037581A1 (en) | Quantitative evaluation method for conjunctival congestion, apparatus, and storage medium | |
CN114283176B (en) | Pupil track generation method based on human eye video | |
CN114638879A (en) | A medical pupil size measuring system | |
CN111652805B (en) | An image preprocessing method for fundus image stitching | |
US20220330814A1 (en) | Method for evaluating the stability of a tear film |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |