CN109008936A - Diopter detection method and device based on reference object - Google Patents
Diopter detection method and device based on reference object Download PDFInfo
- Publication number
- CN109008936A CN109008936A CN201810836096.3A CN201810836096A CN109008936A CN 109008936 A CN109008936 A CN 109008936A CN 201810836096 A CN201810836096 A CN 201810836096A CN 109008936 A CN109008936 A CN 109008936A
- Authority
- CN
- China
- Prior art keywords
- image
- reference object
- diopter
- size
- distance
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 18
- 238000000034 method Methods 0.000 claims abstract description 32
- 230000004044 response Effects 0.000 claims abstract description 4
- 238000012360 testing method Methods 0.000 claims description 25
- 238000012549 training Methods 0.000 claims description 17
- 238000003384 imaging method Methods 0.000 claims description 4
- 210000001508 eye Anatomy 0.000 description 25
- 230000004379 myopia Effects 0.000 description 11
- 208000001491 myopia Diseases 0.000 description 11
- 230000033001 locomotion Effects 0.000 description 4
- 210000001525 retina Anatomy 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 3
- 230000004438 eyesight Effects 0.000 description 3
- 238000010801 machine learning Methods 0.000 description 3
- 210000005252 bulbus oculi Anatomy 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 230000007935 neutral effect Effects 0.000 description 2
- 206010069153 Congenital myopia Diseases 0.000 description 1
- 206010020675 Hypermetropia Diseases 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 238000013528 artificial neural network Methods 0.000 description 1
- 201000009310 astigmatism Diseases 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 230000004364 congenital myopia Effects 0.000 description 1
- 238000013527 convolutional neural network Methods 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000002405 diagnostic procedure Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000036040 emmetropia Effects 0.000 description 1
- 230000008921 facial expression Effects 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 230000004305 hyperopia Effects 0.000 description 1
- 201000006318 hyperopia Diseases 0.000 description 1
- 230000004446 light reflex Effects 0.000 description 1
- 235000020281 long black Nutrition 0.000 description 1
- 230000004423 myopia development Effects 0.000 description 1
- 230000002265 prevention Effects 0.000 description 1
- 230000004436 pseudomyopia Effects 0.000 description 1
- 230000002040 relaxant effect Effects 0.000 description 1
- 230000002207 retinal effect Effects 0.000 description 1
- 238000001356 surgical procedure Methods 0.000 description 1
- 230000004304 visual acuity Effects 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/02—Subjective types, i.e. testing apparatus requiring the active assistance of the patient
- A61B3/028—Subjective types, i.e. testing apparatus requiring the active assistance of the patient for testing visual acuity; for determination of refraction, e.g. phoropters
- A61B3/0285—Phoropters
-
- 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/02—Subjective types, i.e. testing apparatus requiring the active assistance of the patient
- A61B3/028—Subjective types, i.e. testing apparatus requiring the active assistance of the patient for testing visual acuity; for determination of refraction, e.g. phoropters
- A61B3/032—Devices for presenting test symbols or characters, e.g. test chart projectors
Landscapes
- Life Sciences & Earth Sciences (AREA)
- Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Biophysics (AREA)
- Ophthalmology & Optometry (AREA)
- Engineering & Computer Science (AREA)
- Biomedical Technology (AREA)
- Heart & Thoracic Surgery (AREA)
- Physics & Mathematics (AREA)
- Molecular Biology (AREA)
- Surgery (AREA)
- Animal Behavior & Ethology (AREA)
- General Health & Medical Sciences (AREA)
- Public Health (AREA)
- Veterinary Medicine (AREA)
- Image Analysis (AREA)
Abstract
Description
技术领域technical field
本发明涉及医疗数据分析领域,具体涉及一种基于参照物的屈光度检测方法和设备。The invention relates to the field of medical data analysis, in particular to a method and device for detecting diopter based on a reference object.
背景技术Background technique
随着现代经济的发展,教育的进步,各种智能设备的普及,近视的人数逐年增多,而且不断向低龄化发展,所以低成本的,可以普及的近视诊断方法重要性不言而喻,尤其是对于青少年而言。With the development of modern economy, the advancement of education, and the popularization of various smart devices, the number of myopia is increasing year by year, and it is becoming younger. Therefore, the importance of low-cost and universal diagnostic methods for myopia is self-evident, especially It is for teenagers.
通常,在眼科医院和配镜中心,验光师可以利用专业的设备,通过测量屈光度判断人眼球是否近视及近视度数。但是,一般情况下,人们是在发现眼睛出现问题的时候才决定去专业的机构去验光。单针对近视而言。我们知道如果不是先天近视,青少年由于疲劳用眼,经常近距离用眼,会先导致假性近视,进一步发展为真近视。假性近视是可以通过现代医学手段进行恢复的。而近视只能通过佩戴眼镜,或手术治疗。所以如果有方法可以让青少年平时就可以方便的检测是否近视,对于预防青少年近视的意义是巨大的。同时,经常测量屈光度也可以帮助已经近视的人控制近视的发展。Usually, in eye hospitals and optician centers, optometrists can use professional equipment to judge whether a person's eyeball is myopic and the degree of myopia by measuring the diopter. However, under normal circumstances, people decide to go to a professional institution for optometry when they find that there is a problem with their eyes. Only for myopia. We know that if it is not congenital myopia, teenagers who use their eyes frequently due to fatigue and often use their eyes at close range will first lead to false myopia and further develop into true myopia. Pseudomyopia can be restored by modern medical means. Myopia can only be treated with glasses or surgery. Therefore, if there is a way to allow teenagers to easily detect whether they are myopic, it will be of great significance for the prevention of myopia in teenagers. At the same time, frequent measurement of diopter can also help people who are already myopic to control the development of myopia.
现有的屈光度检测方式有三种,即主觉验光、检影验光和电脑验光。准确程度依次递减。在医院或配镜中心,通常用电脑验光初检,主觉验光确定实际的屈光度。下面分别对三种方法进行简要介绍。There are three existing diopter detection methods, namely subjective optometry, retinoscopy optometry and computer optometry. Accuracy in descending order. In hospitals or optician centers, computerized optometry is usually used for preliminary examination, and the actual diopter is determined by subjective optometry. The three methods are briefly introduced below.
主觉验光利用一系列不同屈光度的透镜,在病人的配合下,反复尝试不同屈光度的透镜,使得病人通过透镜恢复正常的视觉敏度。主觉验光需要配合视力表使用,病人需要和视力表保持一定距离,具体数值取决于视力表和计算方法,通常为六米,而且房间的光线要舒适。Subjective optometry uses a series of lenses with different diopters, and with the cooperation of the patient, repeatedly tries lenses with different diopters, so that the patient can restore normal visual acuity through the lens. Subjective optometry needs to be used in conjunction with the eye chart. The patient needs to keep a certain distance from the eye chart. The specific value depends on the eye chart and calculation method, usually six meters, and the light in the room must be comfortable.
检影法是用检影镜将一束光线投射到患者眼屈光系统直达视网膜,再由视网膜的反射光抵达检影镜,穿过检影镜窥孔(简称检影孔),被验光师观察到。这视网膜反射光即“红光反射”,是检影分析的主要依据。患者屈光状态不同,其由红光反射而形成的顺动、逆动也不同。验光师分析这不同的影动,在标准镜片箱中取出相应镜片来消解影动,直到找到中和点。用来找到中和点的标准镜片与患者的屈光状态密切相关。检影法又称视网膜检影法,检影镜又称视网膜镜。The retinoscopy method is to use a retinoscopy mirror to project a beam of light to the patient's eye refractive system to reach the retina, and then the reflected light from the retina reaches the retinoscopy mirror and passes through the retinoscopy mirror peephole (referred to as the retinoscopy hole). observed. This retinal reflected light is the "red light reflex", which is the main basis for retinoscopy analysis. The forward movement and reverse movement formed by the red light reflection are also different according to the different refractive states of the patients. The optometrist analyzes the different motions and removes the corresponding lenses from the standard lens box to eliminate the motions until a neutral point is found. The standard lenses used to find the neutral point are closely related to the patient's refractive status. Retinoscopy is also called retinoscopy, and retinoscopy is also called retinoscopy.
电脑验光属于客观验光法,其原理与视网膜检影法基本相同,采用红外线光源及自动雾视装置达到放松眼球调节的目的,采用光电技术及自动控制技术检查屈光度。Computerized optometry belongs to objective optometry, and its principle is basically the same as that of retinoscopy. Infrared light source and automatic fog vision device are used to achieve the purpose of relaxing eyeball adjustment, and photoelectric technology and automatic control technology are used to check the diopter.
现有的三种方式的共同特征为:需要专门的设备,需要专业人士辅助。由此可见,现有的屈光度检测方式便利性较差。The common feature of the existing three methods is that they need special equipment and the assistance of professionals. It can be seen that the existing diopter detection method is not convenient.
发明内容Contents of the invention
有鉴于此,本发明提供一种基于参照物的屈光度检测方法,包括:In view of this, the present invention provides a method for detecting diopter based on a reference object, including:
在终端屏幕上呈现第一图像;presenting the first image on the terminal screen;
响应外界操作而拍摄第二图像;taking a second image in response to an external operation;
从所述第二图像中识别参照物并确定所述参照物的影像尺寸;identifying a reference object from the second image and determining an image size of the reference object;
根据所述参照物的影像尺寸确定被测者的屈光度。The diopter of the subject is determined according to the image size of the reference object.
优选地,所述影像尺寸是参照物的影像长度。Preferably, the image size is the image length of the reference object.
优选地,利用下式确定被测者的屈光度:Preferably, the diopter of the subject is determined using the following formula:
其中,D为屈光度,h0为拍摄测试图像时所述参照物与摄像装置的距离,所述测试图像中包括所述参照物的影像,l0为所述测试图像中的所述参照物的影像长度,l1为所述第二图像中的所述参照物的影像长度。Wherein, D is the diopter, h0 is the distance between the reference object and the imaging device when shooting the test image, the test image includes the image of the reference object, and l0 is the distance of the reference object in the test image Image length, l 1 is the image length of the reference object in the second image.
优选地,所述影像尺寸是参照物的影像面积。Preferably, the image size is the image area of the reference object.
优选地,利用下式确定被测者的屈光度:Preferably, the diopter of the subject is determined using the following formula:
其中,D为屈光度,h0为拍摄测试图像时所述参照物与摄像装置的距离,所述测试图像中包括所述参照物的影像,S0为所述测试图像中的所述参照物的影像面积,S1为所述第二图像中的所述参照物的影像面积。Wherein, D is the diopter, h0 is the distance between the reference object and the imaging device when shooting the test image, the test image includes the image of the reference object, S0 is the distance of the reference object in the test image Image area, S 1 is the image area of the reference object in the second image.
优选地,所述从所述第二图像中识别参照物并确定所述参照物的影像尺寸,包括:Preferably, the identifying the reference object from the second image and determining the image size of the reference object includes:
将所述第二图像作为机器识别模型的输入数据,以使所述机器识别模型输出所述参照物的影像尺寸,所述机器识别模型是利用多个训练图像和训练标签得到的,其中所述训练图像中具有人像和参照物影像,所述训练标签包括所述参照物影像在训练图像中的位置及尺寸。The second image is used as input data of a machine recognition model, so that the machine recognition model outputs the image size of the reference object, and the machine recognition model is obtained by using a plurality of training images and training labels, wherein the The training image has a portrait and a reference object image, and the training label includes the position and size of the reference object image in the training image.
优选地,所述参照物为具有磁条的卡片。Preferably, the reference object is a card with a magnetic strip.
优选地,所述从所述第二图像中识别参照物并确定所述参照物的影像尺寸,包括:Preferably, the identifying the reference object from the second image and determining the image size of the reference object includes:
将所述第二图像转化为灰度图像;converting the second image to a grayscale image;
根据所述灰度图像的线条确定所述卡片的磁条影像;determining the magnetic stripe image of the card according to the lines of the grayscale image;
确定磁条影像的尺寸。Determines the size of the magnetic stripe image.
优选地,在所述获取第二图像的步骤之前,还包括:Preferably, before the step of acquiring the second image, it also includes:
在终端屏幕上呈现提示信息,以提示被检测者在能够看清所述第一图像的情况下,控制所述终端上的摄像装置向被检测者的面部进行拍摄以得到第二图像;和/或提示被检测者持有所述参照物的姿势;和/或提示调整终端与被检测者间距离的方式。Presenting prompt information on the terminal screen to prompt the subject to control the camera on the terminal to take pictures of the subject's face to obtain a second image when the subject can clearly see the first image; and/ Or prompting the detected person to hold the posture of the reference object; and/or prompting a way to adjust the distance between the terminal and the detected person.
相应地,本发明还提供一种电子设备,包括:至少一个处理器以及与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器执行上述基于参照物的屈光度检测方法。Correspondingly, the present invention also provides an electronic device, including: at least one processor and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, The instructions are executed by the at least one processor, so that the at least one processor executes the above reference-based diopter detection method.
根据本发明提供的基于参照物的屈光度检测方法及设备,通过在终端屏幕上呈现用于检测屈光度的图像,并由用户自身操作终端向自身面部拍摄含有参照物影像的图像,进而通过所拍图像中参照物的影像尺寸来计算用户眼睛的屈光度,该检测过程可以由普通的电子设备来完成,并且不需要专业人员干涉,由用户自己进行操作,具有较强的便利性。According to the diopter detection method and device based on the reference object provided by the present invention, by presenting the image for detecting the diopter on the terminal screen, and the user operates the terminal to capture an image containing the image of the reference object on his own face, and then through the captured image The diopter of the user's eyes can be calculated by the image size of the reference object in the center. This detection process can be completed by ordinary electronic equipment, and does not require the intervention of professionals. It is operated by the user himself, which is very convenient.
附图说明Description of drawings
为了更清楚地说明本发明具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the specific implementation of the present invention or the technical solutions in the prior art, the following will briefly introduce the accompanying drawings that need to be used in the specific implementation or description of the prior art. Obviously, the accompanying drawings in the following description The drawings show some implementations of the present invention, and those skilled in the art can obtain other drawings based on these drawings without any creative work.
图1是本发明实施例提供的基于参照物的屈光度检测方法的流程图;Fig. 1 is a flow chart of a diopter detection method based on a reference object provided by an embodiment of the present invention;
图2是本发明实施例中的第一图像;Fig. 2 is the first image in the embodiment of the present invention;
图3是用户使用本发明提供的基于参照物的屈光度检测方法是的场景示意图;Fig. 3 is a schematic diagram of a scene where a user uses the reference object-based diopter detection method provided by the present invention;
图4本发明实施例中的第二图像。Figure 4 is the second image in an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合附图对本发明的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Apparently, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
此外,下面所描述的本发明不同实施方式中所涉及的技术特征只要彼此之间未构成冲突就可以相互结合。In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as there is no conflict with each other.
本发明实施例提供一种基于参照物的屈光度检测方法,该方法可以由智能手机、平板电脑等具有摄像装置的电子设备来执行,用于用户自测屈光度,如图1所示,该方法包括如下步骤:An embodiment of the present invention provides a method for detecting diopter based on a reference object. This method can be executed by electronic devices with camera devices such as smart phones and tablet computers, and is used for users to self-test the diopter. As shown in Figure 1, the method includes Follow the steps below:
S1,在终端屏幕上呈现第一图像,该图像可以是医学领域所使用的专用于检查屈光度或者散光的图像,图像内容能够易于用户主观分辨眼睛是否聚焦,例如图2所示的图像。本领域技术人员可以理解,第一图像的内容并不限于图2所示内容,实际应用时可以在终端中存储多个类似图像供用户选择使用。S1. Present a first image on the terminal screen. The image may be an image specially used in the medical field for checking diopter or astigmatism. The content of the image can make it easy for the user to subjectively judge whether the eyes are focused, such as the image shown in FIG. 2 . Those skilled in the art can understand that the content of the first image is not limited to the content shown in FIG. 2 , and multiple similar images may be stored in the terminal for selection and use by the user during practical application.
图像的尺寸和分辨率应当根据显示屏幕的参数预先确定,需要使用户在距离较远的位置不能完全看清第一图像的内容,而在近距离能够看清第一图像的内容。S2,响应外界操作而拍摄第二图像,用户在使用本发明提供的方案时应当了解操作方式,即需要用户利用参照物遮住一只眼睛,并通过未遮住的眼睛观察屏幕上呈现的第一图像,同时由远向近处移动身体或者显示装置,使得第一图像渐渐接近眼睛,在用户恰好能够看清第一图像时控制终端朝向自己面部拍摄第二图像。所谓看清是指图片上的图案入射到眼睛恰好能会聚在视网膜上,用户体验到的是在这个距离下,图像中的边缘锐利,而且即使用户靠得更近,边缘的锐利感不会增加,此程度需要由用户进行主观判断,当认定达到此程度时即可拍摄第二图像。The size and resolution of the image should be predetermined according to the parameters of the display screen, so that the user cannot fully see the content of the first image at a long distance, but can clearly see the content of the first image at a short distance. S2, taking a second image in response to an external operation, the user should understand the operation mode when using the solution provided by the present invention, that is, the user needs to cover one eye with a reference object, and observe the first image presented on the screen through the uncovered eye One image, while moving the body or the display device from far to near, so that the first image gradually approaches the eyes, and when the user can see the first image clearly, the user controls the terminal to shoot the second image towards his face. The so-called clear vision means that the pattern on the picture incident on the eyes can just converge on the retina. What the user experiences is that at this distance, the edges in the image are sharp, and even if the user gets closer, the sharpness of the edge will not increase. , this level needs to be judged subjectively by the user, and the second image can be taken when it is determined that this level has been reached.
以此方式操作所拍下的第二图像中应当包括用户面部和参照物的影像。在使用智能手机或者平板电脑等设备执行本方法时,可以在呈现第一图像的同时开启设备的前置摄像头,而屏幕上不显示取景内容;当然也可以划分一个区域来显示取景内容以避免错误地拍摄角度,保证第二图像中包括用户面部和参照物。The second image captured by operating in this manner should include images of the user's face and the reference object. When using a device such as a smart phone or a tablet computer to perform this method, the front camera of the device can be turned on while presenting the first image, and the viewfinder content is not displayed on the screen; of course, an area can also be divided to display the viewfinder content to avoid errors An accurate shooting angle is used to ensure that the second image includes the user's face and the reference object.
摄像装置与用户间的距离应当和显示第一图像的屏幕与用户间的距离相同,优选为摄像装置与屏幕一体设置;通过分体的设备实现本方法时应当确保摄像装置的位置尽量接近显示屏所在的位置。外界操作拍照的方式可以有多种,例如可以是按键拍摄,也可以是通过声音控制、面部表情控制拍照等等。按照正确的使用方法,用户应当在如图3所示的情形下,通过未被参照物遮住的眼睛清楚地观察屏幕31上的第一图像,并通过摄像头32拍摄到如图4所示的图像,图4中具有参照物影像41。The distance between the camera and the user should be the same as the distance between the screen displaying the first image and the user, preferably the camera and the screen are integrated; when implementing this method through separate equipment, it should be ensured that the camera is positioned as close to the display as possible location. There are many ways to operate the external camera to take pictures, for example, it can be a button to shoot, or it can be controlled by voice or facial expression to control the camera and so on. According to the correct method of use, the user should clearly observe the first image on the screen 31 through the eyes not covered by the reference object under the situation shown in FIG. Image, there is a reference object image 41 in FIG. 4 .
S3,从第二图像中识别参照物并确定参照物的影像尺寸,参照物是预先选定的物体,该物体应当具有标准尺寸,例如可以选择钱币、银行通用的卡片等等,本发明可以允许用户使用多种参照物中的一种。影像尺寸这一参数可以有多种情况,针对不同的参照物,所需获取的尺寸类型也不相同,例如可以是参照物影像某一边的长度、整体直径、整体面积等。本实施例使用的参照物是一张具有标准尺寸的卡片(信用卡或者储蓄卡等),并选择使用图4中的参照物影像41的长度AD进行后续计算。S3, identify the reference object from the second image and determine the image size of the reference object, the reference object is a pre-selected object, the object should have a standard size, for example, coins, bank cards, etc. can be selected, the present invention can allow The user uses one of several reference objects. The parameter of image size can have many situations. For different reference objects, the type of size to be obtained is different, for example, it can be the length of a side of the image of the reference object, the overall diameter, the overall area, etc. The reference object used in this embodiment is a standard-sized card (credit card or debit card, etc.), and the length AD of the reference object image 41 in FIG. 4 is selected for subsequent calculation.
S4,根据参照物的影像尺寸确定被测者的屈光度,基于相似三角形的测距原理可知,当用户手持卡片拍摄第二图像时,卡片距摄像头越近,卡片影像在图像中越大;距摄像头越远,卡片在第二图像中越小。具体的,在一定范围内,通过合理的近似,可以用相似三角形原理来表示卡片影像尺寸与卡片距摄像头的距离的关系。也即通过参照物的影像尺寸确定用户眼部与本终端之间的距离。S4. Determine the diopter of the subject according to the image size of the reference object. Based on the distance measurement principle of similar triangles, when the user holds the card to take the second image, the closer the card is to the camera, the larger the card image in the image; The farther away, the smaller the card is in the second image. Specifically, within a certain range, through reasonable approximation, the principle of similar triangles can be used to represent the relationship between the image size of the card and the distance between the card and the camera. That is, the distance between the user's eyes and the terminal is determined by the image size of the reference object.
本领域技术人员可以理解,在医学领域中,眼睛的屈光度为0,表示平行入射的光线恰好可以汇聚到视网膜上,也就意味着可以看清无穷远的物体。对于正常成年人而言,屈光度在正负0.75之间都是正视眼(不近视也不远视,正常视力),对于未成年人而言,不同年龄的正视眼屈光度范围有所不同。Those skilled in the art can understand that in the medical field, the diopter of the eye is 0, which means that parallel incident light rays can just converge on the retina, which means that objects at infinity can be seen clearly. For normal adults, an emmetropic eye with a diopter of plus or minus 0.75 is an emmetropic eye (no myopia or hyperopia, normal vision). For minors, the diopter range of an emmetropic eye varies with age.
屈光度等于人恰好看清物体时,物体距人眼距离的倒数。例如屈光度0.75对应1.33米,表示对于成年人如果看1.33米外的物体非常清晰,则表明是正视眼。如果物体距人眼0.5米才能看清(没有重影),则屈光度为2,如果佩戴近视镜矫正,对应的近视镜度数为200度。The diopter is equal to the reciprocal of the distance between the object and the human eye when the person just sees the object clearly. For example, a diopter of 0.75 corresponds to 1.33 meters, which means that if an adult sees an object 1.33 meters away very clearly, it means emmetropia. If the object is only 0.5 meters away from the human eye to see clearly (without double image), then the diopter is 2. If you wear myopia correction, the corresponding myopia degree is 200 degrees.
通过影像尺寸计算距离进而计算屈光度的方式有多种,例如可以利用参照物的影像尺寸和预先标定的系数计算距离,或者利用参照物的影像尺寸和参照物的实际尺寸计算距离,进而换算成屈光度的值。There are many ways to calculate the distance through the image size and then calculate the diopter. For example, you can use the image size of the reference object and the pre-calibrated coefficient to calculate the distance, or use the image size of the reference object and the actual size of the reference object to calculate the distance, and then convert it into diopter value.
根据本发明实施例提供的基于参照物的屈光度检测方法,通过在终端屏幕上呈现用于检测屈光度的图像,并由用户自身操作终端向自身面部拍摄含有参照物影像的图像,进而通过所拍图像中参照物的影像尺寸来计算用户眼睛的屈光度,该检测过程可以由普通的电子设备来完成,并且不需要专业人员干涉,由用户自己进行操作,具有较强的便利性。According to the diopter detection method based on the reference object provided in the embodiment of the present invention, an image for detecting the diopter is presented on the terminal screen, and the user operates the terminal to capture an image containing the image of the reference object on his own face, and then through the captured image The diopter of the user's eyes can be calculated by the image size of the reference object in the center. This detection process can be completed by ordinary electronic equipment, and does not require the intervention of professionals. It is operated by the user himself, which is very convenient.
为了引导用户正确地操作检测过程,在上述步骤S2之前还可以呈现一些提示信息,例如可以提示拍摄第二图像时机,即提示被检测者在能够看清第一图像的情况下,控制终端上的摄像装置向被检测者的面部进行拍摄以得到第二图像;In order to guide the user to operate the detection process correctly, some prompt information can also be presented before the above step S2, for example, it can prompt the timing of taking the second image, that is, remind the subject to control the terminal on the condition that the first image can be seen clearly. The camera device shoots the face of the detected person to obtain the second image;
还可以提示被检测者持有参照物的姿势,例如手持参照物遮住一只眼睛;It can also prompt the subject to hold the posture of the reference object, such as holding the reference object to cover one eye;
还可以提示调整终端与被检测者间距离的方式,例如提示用户应当由远处向近处移动本终端。A way to adjust the distance between the terminal and the detected person may also be prompted, for example, prompting the user to move the terminal from far to near.
具体可以通过文字说明的方式,或者动画演示的方式,或者二者相结合的方式进行提示。Specifically, prompts can be given in the form of text descriptions, animation demonstrations, or a combination of the two.
展示提示信息可以提高用户的操作效率以及检测的准确性,但并非必须在每次拍摄前均进行提示,例如可以只在首次使用时进行提示,或者应用户需求根据用户选择进行提示,当然也可以作为帮助文本供用户随时查看。The display of prompt information can improve the user's operation efficiency and detection accuracy, but it is not necessary to prompt each time before shooting. For example, it can be prompted only when it is used for the first time, or it can be prompted according to the user's choice according to the user's needs. Of course, it is also possible. As help text for users to view at any time.
对于上述步骤S4,本发明提供两个优选的实施例。在第一个优选实施例中,影像尺寸是参照物的影像长度。在使用本方法之前,需要先标定两个参数。具体地,在使用本方法前,可以由厂商在一个已知距离上拍摄该参照物,然后测定所拍影像中参照物影像的长度,将此拍摄的影像称为测试影像,所标定的参数即为测试影像的拍摄距离h0和测试影像中的参照物的影像长度l0。For the above step S4, the present invention provides two preferred embodiments. In a first preferred embodiment, the image size is the image length of the reference object. Before using this method, two parameters need to be calibrated. Specifically, before using this method, the manufacturer can photograph the reference object at a known distance, then measure the length of the reference object image in the captured image, and call the captured image a test image, and the calibrated parameters are is the shooting distance h 0 of the test image and the image length l 0 of the reference object in the test image.
进一步地,在上述步骤S4中可以利用下式确定被测者的屈光度:Further, in the above step S4, the following formula can be used to determine the diopter of the subject:
其中,D为屈光度,h0为拍摄测试图像时参照物与摄像装置的距离,测试图像中包括参照物的影像,l0为测试图像中的参照物的影像长度,l1为第二图像中的参照物的影像长度。Among them, D is the diopter, h 0 is the distance between the reference object and the camera device when shooting the test image, the test image includes the image of the reference object, l 0 is the image length of the reference object in the test image, and l 1 is the distance between the reference object in the second image The image length of the reference object.
在第二个优选实施例中,影像尺寸是参照物的影像面积,影像面积可以通过机器视觉原理,利用像素点的数量直接从图像中进行识别,也可以通过计算得到。例如对于方形参照物,可以识别影像长度和宽度计算面积;对于圆形参照物可以通过识别直径计算面积。在使用本方法之前,需要先标定两个参数。具体地,在使用本方法前,可以由厂商在一个已知距离上拍摄该参照物,然后测定所拍影像中参照物影像的面积,将此拍摄的影像称为测试影像,所标定的参数即为测试影像的拍摄距离h0和测试影像中的参照物的影像面积S0。In the second preferred embodiment, the image size is the image area of the reference object, and the image area can be directly recognized from the image by using the number of pixels through the principle of machine vision, or can be obtained by calculation. For example, for a square reference object, the area can be calculated by identifying the length and width of the image; for a circular reference object, the area can be calculated by identifying the diameter. Before using this method, two parameters need to be calibrated. Specifically, before using this method, the manufacturer can photograph the reference object at a known distance, then measure the area of the reference object image in the captured image, and call this captured image a test image, and the calibrated parameters are is the shooting distance h 0 of the test image and the image area S 0 of the reference object in the test image.
进一步地,在上述步骤S4中可以利用下式确定被测者的屈光度:Further, in the above step S4, the following formula can be used to determine the diopter of the subject:
其中,D为屈光度,h0为拍摄测试图像时参照物与摄像装置的距离,测试图像中包括参照物的影像,S0为测试图像中的参照物的影像面积,S1为第二图像中的参照物的影像面积。Among them, D is the diopter, h 0 is the distance between the reference object and the camera when shooting the test image, the test image includes the image of the reference object, S 0 is the image area of the reference object in the test image, and S 1 is the image area of the reference object in the second image. The image area of the reference object.
对于上述步骤S3,本发明提供两个优选的实施例。For the above step S3, the present invention provides two preferred embodiments.
在第一个实施例中,可利用机器学习模型来识别影像尺寸。本领域技术人员可以理解,使用机器学习的方式则需要使用大量训练数据来构建模型,本实施例预先构建含有人像及标准参照物的图片数据集,并且记录标准参照物在图片中的位置及大小作为图片的标签。In a first embodiment, a machine learning model can be used to identify the image size. Those skilled in the art can understand that using machine learning requires a large amount of training data to build a model. This embodiment pre-constructs a picture data set containing portraits and standard reference objects, and records the position and size of the standard reference objects in the picture. as a label for the image.
以背后有磁条的信用卡或储蓄卡作为标准参照物为例。图片数据集可以通过给手持卡片遮挡眼睛的人拍照得到,也可以通过计算机生成模拟实际场景的图片。具体的:将不同大小,不同颜色的卡片,以任意的旋转角度,任意的位置放到人像图片上,得到面部贴有卡片的人像图片。在放卡片的同时要记录卡片的大小以及在图片上的位置。Take a credit or debit card with a magnetic stripe on the back as a standard reference. The picture data set can be obtained by taking pictures of people holding cards covering their eyes, or by computer-generated pictures that simulate actual scenes. Specifically: put cards of different sizes and colors on the portrait picture at any rotation angle and any position to obtain a portrait picture with the card on the face. While placing the card, record the size of the card and its position on the picture.
用图片数据集与标签训练搭建的识别模型,使得模型能够识别标准参照物(卡片)在图片中的位置及大小。The recognition model built with image data set and label training enables the model to recognize the position and size of the standard reference object (card) in the image.
识别模型可以用卷积神经网络实现,用大量模拟实际场景的图片数据集和相应的卡片大小以及位置信息训练神经网络,使其能够现实场景中识别卡片的大小以及位置。The recognition model can be implemented with a convolutional neural network. A large number of image datasets simulating actual scenes and the corresponding card size and position information are used to train the neural network so that it can recognize the size and position of the card in the real scene.
在训练得到识别模型后,步骤S3即为:将第二图像作为机器识别模型的输入数据,以使机器识别模型输出参照物的影像尺寸。机器识别模型是利用多个训练图像和训练标签得到的,其中训练图像中具有人像和参照物影像,训练标签包括参照物影像在训练图像中的位置及尺寸。After the recognition model is trained, step S3 is: use the second image as input data of the machine recognition model, so that the machine recognition model outputs the image size of the reference object. The machine recognition model is obtained by using multiple training images and training labels, wherein the training images have portraits and reference object images, and the training labels include the position and size of the reference object images in the training images.
在将本产品提供给用户之前,厂商可以使用多种参照物训练多种模型,并向用户介绍可以允许使用的参照物即可,利用机器学习的方式确定参照物的影像尺寸,可以很大程度提高本方案的灵活性。Before providing this product to users, the manufacturer can use various reference objects to train various models, and just introduce the reference objects that can be used to users. Using machine learning to determine the image size of reference objects can be used to a large extent. Improve the flexibility of the program.
在第二个实施例中,可以使用传统的机器视觉方式来确定影像尺寸,在此情况下对参照物的类型有一定限制,需要选择具有一定特点的参照物,在本实施例中优选为具有磁条的卡片。In the second embodiment, the traditional machine vision method can be used to determine the size of the image. In this case, there are certain restrictions on the type of reference object, and it is necessary to select a reference object with certain characteristics. In this embodiment, it is preferred to have Card with magnetic stripe.
在此情况下,步骤S3包括如下步骤:In this case, step S3 includes the following steps:
S31,将第二图像转化为灰度图像,将彩色图像转为灰度图像的方式有多种,选用现有的色彩转换方式都是可行的;S31, converting the second image into a grayscale image, there are many ways to convert the color image into a grayscale image, and it is all feasible to select an existing color conversion method;
S32,根据灰度图像的线条确定卡片的磁条影像,由于磁条的颜色特点,使得灰度图像中磁条的影像十分明显,呈现为黑色的长条状,根据线条的形状特征即可找到磁条影像的位置;S32. Determine the magnetic stripe image of the card according to the lines of the grayscale image. Due to the color characteristics of the magnetic stripe, the image of the magnetic stripe in the grayscale image is very obvious, appearing as a long black strip, which can be found according to the shape characteristics of the lines. the location of the magnetic stripe image;
S33,确定磁条影像的尺寸,由于磁条贯穿整个卡片,即磁条的长度即为参照物的长度。S33. Determine the size of the magnetic stripe image. Since the magnetic stripe runs through the entire card, the length of the magnetic stripe is the length of the reference object.
使用传统的机器视觉识别方式可以根据实际情况实时计算参照物的影像尺寸,此方案具有较高的准确性。Using the traditional machine vision recognition method, the image size of the reference object can be calculated in real time according to the actual situation. This solution has high accuracy.
本实施例还提供一种电子设备,包括至少一个处理器以及与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器执行上述基于参照物的屈光度检测方法。This embodiment also provides an electronic device, including at least one processor and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions Executed by the at least one processor, so that the at least one processor executes the above reference-based diopter detection method.
显然,上述实施例仅仅是为清楚地说明所作的举例,而并非对实施方式的限定。对于所属领域的普通技术人员来说,在上述说明的基础上还可以做出其它不同形式的变化或变动。这里无需也无法对所有的实施方式予以穷举。而由此所引伸出的显而易见的变化或变动仍处于本发明创造的保护范围之中。Apparently, the above-mentioned embodiments are only examples for clear description, rather than limiting the implementation. For those of ordinary skill in the art, other changes or changes in different forms can be made on the basis of the above description. It is not necessary and impossible to exhaustively list all the implementation manners here. And the obvious changes or changes derived therefrom are still within the scope of protection of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810836096.3A CN109008936A (en) | 2018-07-26 | 2018-07-26 | Diopter detection method and device based on reference object |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810836096.3A CN109008936A (en) | 2018-07-26 | 2018-07-26 | Diopter detection method and device based on reference object |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN109008936A true CN109008936A (en) | 2018-12-18 |
Family
ID=64646701
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810836096.3A Pending CN109008936A (en) | 2018-07-26 | 2018-07-26 | Diopter detection method and device based on reference object |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109008936A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111803022A (en) * | 2020-06-24 | 2020-10-23 | 深圳数联天下智能科技有限公司 | Vision detection method, detection device, terminal equipment and readable storage medium |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2013076327A1 (en) * | 2011-11-25 | 2013-05-30 | Universidad Complutense De Madrid | Heterophoria measurement and training system |
| CN103793719A (en) * | 2014-01-26 | 2014-05-14 | 深圳大学 | Monocular distance-measuring method and system based on human eye positioning |
| CN105764405A (en) * | 2013-06-06 | 2016-07-13 | 6超越6视觉有限公司 | System and method for measuring eye refractive error based on subjective distance measurement |
| CN105962885A (en) * | 2016-04-15 | 2016-09-28 | 优丫优科技股份有限公司 | Method for vision detection through combination of software and hardware |
| CN106950716A (en) * | 2017-05-17 | 2017-07-14 | 珠海随变科技有限公司 | A kind of method and system that ophthalmic len number of degrees measurement is carried out by mobile phone photograph |
| WO2018050778A1 (en) * | 2016-09-15 | 2018-03-22 | Essilor International | Measurement method for the determination of a value of a visual correction need for near vision of an individual |
| CN107890336A (en) * | 2017-12-05 | 2018-04-10 | 中南大学 | Diopter detecting system based on intelligent handheld device |
-
2018
- 2018-07-26 CN CN201810836096.3A patent/CN109008936A/en active Pending
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2013076327A1 (en) * | 2011-11-25 | 2013-05-30 | Universidad Complutense De Madrid | Heterophoria measurement and training system |
| CN105764405A (en) * | 2013-06-06 | 2016-07-13 | 6超越6视觉有限公司 | System and method for measuring eye refractive error based on subjective distance measurement |
| CN103793719A (en) * | 2014-01-26 | 2014-05-14 | 深圳大学 | Monocular distance-measuring method and system based on human eye positioning |
| CN105962885A (en) * | 2016-04-15 | 2016-09-28 | 优丫优科技股份有限公司 | Method for vision detection through combination of software and hardware |
| WO2018050778A1 (en) * | 2016-09-15 | 2018-03-22 | Essilor International | Measurement method for the determination of a value of a visual correction need for near vision of an individual |
| CN106950716A (en) * | 2017-05-17 | 2017-07-14 | 珠海随变科技有限公司 | A kind of method and system that ophthalmic len number of degrees measurement is carried out by mobile phone photograph |
| CN107890336A (en) * | 2017-12-05 | 2018-04-10 | 中南大学 | Diopter detecting system based on intelligent handheld device |
Non-Patent Citations (1)
| Title |
|---|
| 任守乐: "《光的传播》", 30 September 1998, 山东教育出版社 * |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111803022A (en) * | 2020-06-24 | 2020-10-23 | 深圳数联天下智能科技有限公司 | Vision detection method, detection device, terminal equipment and readable storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2025028902A (en) | Digital eye examination method for remote evaluation by a physician | |
| US9149179B2 (en) | System and method for identifying eye conditions | |
| KR101785255B1 (en) | Shape discrimination vision assessment and tracking system | |
| CN112399817B (en) | Measuring eye refraction | |
| US11494897B2 (en) | Application to determine reading/working distance | |
| US20150050628A1 (en) | Autism diagnosis support method and system, and autism diagnosis support device | |
| CN111248851B (en) | Visual function self-testing method | |
| CN106060142A (en) | Mobile phone capable of checking eyesight, and method for checking eyesight by using mobile phone | |
| De Almeida et al. | Computational methodology for automatic detection of strabismus in digital images through Hirschberg test | |
| US12011224B2 (en) | Method for determining refractive power of eye using immersive system and electronic device thereof | |
| BR102019004580A2 (en) | devices with system to reduce the impact of near distance vision on the onset of myopia and / or myopia advancement | |
| KR20230005733A (en) | A method for guiding a visit to a hospital for treatment of active thyroid-associated ophthalmopathy and performing the same | |
| CN114190879B (en) | Visual function detection system for amblyopic children based on virtual reality technology | |
| CN109008937A (en) | Diopter detection method and equipment | |
| CN109008936A (en) | Diopter detection method and device based on reference object | |
| KR102460451B1 (en) | Method for measuring anomalies of refraction using a reflection image of pupil in visible light | |
| CN113721365A (en) | Refractive adjustment method of wearable device, wearable device and medium | |
| WO2025247410A1 (en) | Detection method and system for determining whether a patient suffers from strabismus and/or convergence insufficiency | |
| US12042224B2 (en) | Method and device for determining at least one astigmatic effect of at least one eye | |
| KR102667772B1 (en) | Pupillary light reflex measurement method using cell phone | |
| US20250331713A1 (en) | Single device remote visual acuity testing systems and methods | |
| CN116687340B (en) | Ophthalmic examination auxiliary equipment based on facial eye feature recognition | |
| CN112587083B (en) | Visual processing method, device and computer storage medium | |
| EP4611605A1 (en) | System and method for diagnosis and treatment of various movement disorders and diseases of the eye | |
| WO2022225037A1 (en) | Examination system, examination device, examination method, and examination program |
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 |