CN116195967A - Pupil distance measuring method and device, computer equipment and storage medium - Google Patents

Pupil distance measuring method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN116195967A
CN116195967A CN202310086013.4A CN202310086013A CN116195967A CN 116195967 A CN116195967 A CN 116195967A CN 202310086013 A CN202310086013 A CN 202310086013A CN 116195967 A CN116195967 A CN 116195967A
Authority
CN
China
Prior art keywords
eye
axis direction
image acquisition
acquisition device
detected
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
Application number
CN202310086013.4A
Other languages
Chinese (zh)
Inventor
陈冠南
解潇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Albo Technology Co ltd
Original Assignee
Albo Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Albo Technology Co ltd filed Critical Albo Technology Co ltd
Priority to CN202310086013.4A priority Critical patent/CN116195967A/en
Publication of CN116195967A publication Critical patent/CN116195967A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B3/00Apparatus for testing the eyes; Instruments for examining the eyes
    • A61B3/10Objective types, i.e. instruments for examining the eyes independent of the patients' perceptions or reactions
    • A61B3/11Objective types, i.e. instruments for examining the eyes independent of the patients' perceptions or reactions for measuring interpupillary distance or diameter of pupils
    • A61B3/111Objective types, i.e. instruments for examining the eyes independent of the patients' perceptions or reactions for measuring interpupillary distance or diameter of pupils for measuring interpupillary distance
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B3/00Apparatus for testing the eyes; Instruments for examining the eyes
    • A61B3/0016Operational features thereof
    • A61B3/0025Operational features thereof characterised by electronic signal processing, e.g. eye models

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Medical Informatics (AREA)
  • Surgery (AREA)
  • Biophysics (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Physics & Mathematics (AREA)
  • Molecular Biology (AREA)
  • Ophthalmology & Optometry (AREA)
  • Animal Behavior & Ethology (AREA)
  • General Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Veterinary Medicine (AREA)
  • Signal Processing (AREA)
  • Eye Examination Apparatus (AREA)

Abstract

The embodiment of the invention discloses a pupil distance measuring method, a pupil distance measuring device, computer equipment and a storage medium, and relates to the field of medical equipment. The method comprises the following steps: the method comprises the steps that a driving device is used for driving a first image acquisition device to align with a first eye of a detected person along the Y-axis direction, and recording first position information of the first image acquisition device in the X-axis direction when the first image acquisition device aligns with the first eye of the detected person along the Y-axis direction; the first image acquisition device is driven by the driving device to align with the second eye of the detected person along the Y-axis direction, and second position information of the first image acquisition device in the X-axis direction is recorded when the first image acquisition device aligns with the second eye of the detected person along the Y-axis direction; the pupil distance of the detected person is obtained according to the first position information and the second position information, so that the pupil distance of the detected person can be obtained fully automatically, the accuracy is high, and the labor cost is low.

Description

Pupil distance measuring method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of medical devices, and in particular, to a pupil distance measurement method, a pupil distance measurement device, a pupil distance measurement computer device, and a pupil distance measurement storage medium.
Background
The biological measuring instrument is an ophthalmic examination device widely applied at present, and can detect relevant parameters of eyes. The interpupillary distance is the distance between the pupils of the eyes. However, the existing biological measuring instrument has no interpupillary distance measurement, and the existing interpupillary distance measurement is usually manually measured by an operator, and the manual measurement mode has the problems of large error and low efficiency.
Disclosure of Invention
The embodiment of the invention provides a pupil distance measuring method, a pupil distance measuring device, computer equipment and a storage medium, which aim to solve the problems of large error and low efficiency in a manual pupil distance measuring mode.
In a first aspect, an embodiment of the present invention provides a pupil distance measurement method, which is applied to a biological measurement apparatus, where the biological measurement apparatus includes a first image acquisition device and a driving device; the driving device is connected with the first image acquisition device and is used for driving the first image acquisition device to move along the X-axis direction, the Y-axis direction and the Z-axis direction which are mutually perpendicular; during measurement, the Z-axis direction is a vertical direction, the X-axis direction is a direction parallel to a straight line where two eyes of a detected person are located, the Y-axis direction and the X-axis direction are located on the same horizontal plane and are perpendicular to the X-axis direction, and the pupil distance measurement method comprises the following steps:
The first image acquisition device is driven by the driving device to align with the first eye of the tested person along the Y-axis direction, and first position information of the first image acquisition device in the X-axis direction is recorded when the first image acquisition device aligns with the first eye of the tested person along the Y-axis direction;
the first image acquisition device is driven by the driving device to align with the second eye of the tested person along the Y-axis direction, and second position information of the first image acquisition device along the X-axis direction is recorded when the first image acquisition device aligns with the second eye of the tested person along the Y-axis direction;
and acquiring the interpupillary distance of the detected person according to the first position information and the second position information.
In a second aspect, an embodiment of the present invention further provides an interpupillary distance measurement apparatus, which includes a unit for performing the above method.
In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the method when executing the computer program.
In a fourth aspect, embodiments of the present invention also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements the above method.
The embodiment of the invention provides a pupil distance measuring method, a pupil distance measuring device, computer equipment and a storage medium. Wherein the method comprises the following steps: the method comprises the steps that a driving device is used for driving a first image acquisition device to align with a first eye of a detected person along the Y-axis direction, and recording first position information of the first image acquisition device in the X-axis direction when the first image acquisition device aligns with the first eye of the detected person along the Y-axis direction; the first image acquisition device is driven by the driving device to align with the second eye of the detected person along the Y-axis direction, and second position information of the first image acquisition device in the X-axis direction is recorded when the first image acquisition device aligns with the second eye of the detected person along the Y-axis direction; the pupil distance of the detected person is obtained according to the first position information and the second position information, so that the pupil distance of the detected person can be obtained fully automatically, the accuracy is high, and the labor cost is low.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic block diagram of a biological measurement instrument according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a circular light source according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a pupil distance measurement method according to an embodiment of the present invention;
FIG. 4 is a second image to be measured according to an embodiment of the present invention;
FIG. 5 is a schematic block diagram of an interpupillary distance measurement device according to an embodiment of the present invention;
fig. 6 is a schematic block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are intended to be within the scope of the present disclosure.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
Referring to fig. 1, an interpupillary distance measuring method provided in an embodiment of the present invention is applied to a biological measuring instrument 20. The biometric apparatus 20 includes a first image acquisition device 21, a second image acquisition device 22, and a driving device 23. The second image pickup device 22 is disposed at a side of the first image pickup device 21 at intervals, for example, the second image pickup device 22 is disposed at a side of the first image pickup device 21 at horizontal intervals, and the second image pickup device 22 is spaced apart from the first image pickup device 21 by 30mm. The first image acquisition device 21 and the second image acquisition device 22 are arranged on the driving device 23, and can be driven by the driving device 23 to move along the X-axis direction, the Y-axis direction and the Z-axis direction which are mutually perpendicular; during measurement, the Z-axis direction is the vertical direction, the X-axis direction is the direction parallel to the straight line where the eyes of the detected person are located, and the Y-axis direction and the X-axis direction are located on the same horizontal plane and are perpendicular to the X-axis direction. In the present invention, the first image capturing device 21 and the second image capturing device 22 are both cameras, and the difference is that the second image capturing device 22 captures a large field of view and a small magnification, so that the position of the eyes of the subject can be captured during coarse alignment. The first image pickup device 21 has a small field of view, has a large magnification, and can acquire detailed information of the eyes of the subject at the time of precise alignment.
In the present invention, the center of the lens of the first image capturing device 21 is defined as a first center point, which is also called as an exit pupil center; the center of the lens of the second image capturing device 22 is a second center point.
Meanwhile, the first image acquisition device 21 is provided with a circular light source with the first center point as a center, the circular light source irradiates the eyes of the detected person, and a circular light source pattern can be formed on the cornea of the detected person. Referring to fig. 2, a circular light source is provided on the housing 14 of the lens of the first image pickup device 21. The circular light source may specifically include a first circular LED unit 11 and a second circular LED unit 12, where the first circular LED unit 11 and the second circular LED unit 12 each include a plurality of circularly arranged LED lamps 13, the center of the second circular LED unit 12 is the same as the center of the first circular LED unit 11, and the radius of the second circular LED unit 12 is larger than the radius of the first circular LED unit 11. Thus, the first circular LED unit 11 and the second circular LED unit 12 take on a circular shape.
Further, the biometric apparatus 20 further includes a jaw support motor 24, a jaw support bracket 25, and a forehead support bracket 26. The jaw support 25 is used for supporting the mandible of the person to be tested, and the forehead support 26 is used for supporting the forehead of the person to be tested. In use, the subject's mandible is placed on the jaw support bracket 25 and the subject's forehead is supported against the forehead support bracket 26. The jaw support motor 24 is connected with the jaw support bracket 25 and is used for driving the jaw support bracket 25 to move along the vertical direction.
Fig. 3 is a schematic flow chart of a pupil distance measurement method according to an embodiment of the present invention. As shown in FIG. 3, the method includes the following steps S1-S3.
S1, driving the first image acquisition device to align with the first eye of the tested person along the Y-axis direction through the driving device, and recording first position information of the first image acquisition device in the X-axis direction when the first image acquisition device aligns with the first eye of the tested person along the Y-axis direction.
In the embodiment, the driving device can drive the first image acquisition device to perform three-dimensional movement along the X-axis direction, the Y-axis direction and the Z-axis direction which are mutually perpendicular. Meanwhile, when the first image acquisition device is aligned with the first eye of the detected person along the Y-axis direction, first position information of the first image acquisition device along the X-axis direction is recorded.
The first eye of the subject may be the left eye or the right eye of the subject, and the present invention is not particularly limited.
In one embodiment, the step S1 specifically includes the following steps:
s11, taking a first eye of a tested person as an eye to be tested, collecting a first image to be tested of the eye to be tested through a second image collecting device, and determining first position deviation data of the eye to be tested and the second center point in the Z-axis direction according to the first image to be tested.
In specific implementation, the driving device and the jaw support motor are reset to the middle point of each stroke, a person to be detected (person to be detected) places the lower jaw on the jaw support, the forehead supports the forehead support, at this time, the center of the exit pupil of the first image acquisition device is positioned on the midline of the face, the second image acquisition device is horizontally deviated to the right by 30mm in the first image acquisition device, and the distance between the human eyes and the midline of the face is also about 30mm, so that the face image acquired by the second image acquisition device can contain the right eye. That is, in this embodiment, the first eye of the subject is the right eye.
Specifically, a first image to be measured of the eye to be measured is acquired through a second image acquisition device, position information of the eye to be measured in the first image to be measured is detected based on a preset target detection algorithm, and first position deviation data of the eye to be measured and the second center point in the Z-axis direction is determined based on the position information of the eye to be measured in the first image to be measured and the position information of the second center point in the first image to be measured.
In an embodiment, the second image capturing device is pre-configured with a first image coordinate system, and the coordinates of the second center point in the first image coordinate system are preset third coordinates, where the step S11 includes: acquiring a fourth coordinate of the eye to be detected in the first image coordinate system in the first image to be detected; and determining a first distance between the eye to be measured and the second center point in the Z-axis direction as the first position deviation data according to the third coordinate and the fourth coordinate.
In specific implementation, the reference matrix and the external matrix of the second image acquisition device are calibrated in advance, and the coordinates in the first image coordinate system can be converted into the coordinates in the world coordinate system through the reference matrix and the external matrix. The coordinates of the second center point in the first image coordinate system are preset third coordinates. And meanwhile, identifying the eye to be detected through a preset target detection algorithm, and positioning a fourth coordinate (specifically, the coordinate of the geometric center point of the outline pattern of the eye to be detected) of the eye to be detected. Further, the third coordinate and the fourth coordinate are converted into coordinates in a world coordinate system based on an internal reference matrix and an external reference matrix of the second image acquisition device, and further, based on the coordinates of the third coordinate and the fourth coordinate in the world coordinate system, a first distance between the eye to be detected and the second center point in the Z-axis direction is calculated and obtained to serve as the first position deviation data.
And S12, adjusting the positions of the eye to be detected and/or the second image acquisition device in the Z-axis direction according to the first position deviation data so that the positions of the eye to be detected and the second center point in the Z-axis direction are the same.
In a specific implementation, the position of the eye to be detected in the Z-axis direction may be adjusted based on the first position deviation data, or the position of the second image acquisition device in the Z-axis direction may be adjusted, or the positions of the eye to be detected and the second image acquisition device in the Z-axis direction may be adjusted at the same time, so that the positions of the eye to be detected and the second center point in the Z-axis direction are the same.
For example, in one embodiment, the first position deviation data is a first distance between the eye to be measured and the second center point in the Z-axis direction, the first distance is 30mm, and the eye to be measured is located below the second center point. And controlling the jaw support motor to drive the jaw support bracket to be lifted upwards by 30mm along the Z-axis direction, so that the eye to be tested is lifted upwards by 30mm along the Z-axis direction.
S13, according to the preset position relation between the second image acquisition device and the first image acquisition device, adjusting the position of the first image acquisition device and/or the position of the eye to be detected, so that the eye to be detected enters the shooting range of the first image acquisition device.
In a specific implementation, the positional relationship between the second image acquisition device and the first image acquisition device is fixed. Therefore, the position of the eye to be detected can be adjusted based on the position relation between the second image acquisition device and the first image acquisition device, or the position of the first image acquisition device can be adjusted, or the positions of the eye to be detected and the second image acquisition device can be adjusted at the same time, so that the eye to be detected enters the shooting range of the first image acquisition device.
For example, in one embodiment, the second image capturing device is horizontally disposed on one side of the first image capturing device, and the distance between the second image capturing device and the first image capturing device is 30mm. The first image acquisition device can be controlled to move 30mm towards the second image acquisition device along the X-axis direction, and the eye to be detected can enter the shooting range of the first image acquisition device.
S14, acquiring a second image to be detected of the eye to be detected through the first image acquisition device.
In an implementation, the pupil camera has a larger magnification, so that the pupil camera can accurately shoot the cornea of the eye of the detected person, namely the second image to be detected contains an image with clear cornea of the detected person.
S15, detecting a circular light source pattern formed by the circular light source in the second image to be detected, and acquiring second position deviation data between the circle center of the circular light source pattern and the first center point.
In a specific implementation, the circular light source can form reflection on the cornea of the tested person, so that in the second image to be tested, a circular light source pattern formed by reflection of the circular light source can be detected on the cornea of the tested person. Positioning the circular light source pattern through a preset target detection algorithm, determining the circle center position of the circular light source pattern, and further determining second position deviation data between the circle center of the circular light source pattern and the first center point.
Referring to fig. 4, fig. 4 is a second image to be measured according to an embodiment of the invention. In fig. 4, it can be seen that the center of the circular light source pattern 100 is deviated from the first center point 200.
In an embodiment, the first image capturing device is pre-configured with a second image coordinate system, and the coordinates of the first center point in the second image coordinate system are preset fifth coordinates, where the step S15 includes: acquiring a sixth coordinate of the center of the circle of the circular light source pattern in the second image coordinate system in the second image to be detected; and determining a second distance between the eye to be measured and the second center point in the Z-axis direction and a third distance between the eye to be measured and the second center point in the X-axis direction according to the fifth coordinate and the sixth coordinate, and taking the second distance and the third distance as the second position deviation data.
In a specific implementation, the first image acquisition device is preset with a second image coordinate system, and the coordinates of the first center point in the second image coordinate system are preset fifth coordinates. And calibrating an internal reference matrix and an external reference matrix of the first image acquisition device in advance. Positioning the circular light source pattern through a preset target detection algorithm, and determining a sixth coordinate of the center of the circular light source pattern in the second image coordinate system. Further, the fifth coordinate and the sixth coordinate are converted into coordinates in a world coordinate system based on an internal reference matrix and an external reference matrix of the first image acquisition device, and further, based on the coordinates of the fifth coordinate and the sixth coordinate in the world coordinate system, a second distance between the eye to be detected and the first center point in the Z-axis direction and a third distance between the eye to be detected and the second center point in the X-axis direction are calculated, and the second distance and the third distance are used as the second position deviation data.
S16, judging whether the second position deviation data is larger than a preset position deviation threshold value or not.
In specific implementations, the position deviation threshold may be set by those skilled in the art, and the present invention is not limited in particular. For example, in one embodiment, the position deviation threshold is specifically a distance threshold, and step S16 includes: judging whether any one or two of the second distance and the third distance is greater than a preset distance threshold, and if any one or two of the second distance and the third distance is greater than the distance threshold, judging that the second position deviation data is greater than the preset position deviation threshold.
If the second position deviation data is larger than a preset position deviation threshold value, indicating that the eyes of the detected person are not aligned with the center of the exit pupil; (alignment herein means alignment in the Y-axis direction, i.e., the coordinates in the X-axis direction and the Z-axis direction agree) if the second positional deviation data is not greater than a preset positional deviation threshold, it is indicated that the deviation of the subject's eyes from the center of the exit pupil is small, i.e., the subject's eyes are aligned with the center of the exit pupil.
And S17, if the second position deviation data is larger than a preset position deviation threshold, adjusting the position of the first image acquisition device and/or the eye to be detected according to the second position deviation data, and turning to the step of acquiring a second image to be detected of the eye to be detected through the first image acquisition device.
In a specific implementation, if the second position deviation data is greater than a preset position deviation threshold, the position of the first image acquisition device and/or the eye to be detected is adjusted according to the second position deviation data, and the step S14 is transferred to, and the steps S14-S16 are executed in a circulating manner until the second position deviation data is less than the preset position deviation threshold.
In one embodiment, the step S7 specifically includes: adjusting the position of the eye to be detected and/or the first image acquisition device in the Z-axis direction according to the second distance so that the positions of the eye to be detected and a second center point preset by the second image acquisition device in the Z-axis direction are the same; and adjusting the position of the eye to be detected and/or the first image acquisition device in the X-axis direction according to the third distance so that the position of a second center point preset by the second image acquisition device is the same as the position of the eye to be detected in the X-axis direction.
For example, in one embodiment, the second distance is 0.15mm and the third distance is 0.15mm. The driving device is controlled to drive the first image acquisition device to move 0.15mm towards the circle center of the circular light source pattern along the Z-axis direction, and the driving device is controlled to drive the first image acquisition device to move 0.15mm towards the circle center of the circular light source pattern along the X-axis direction.
And S18, if the second position deviation data is not greater than a preset position deviation threshold value, judging that the eye to be detected is aligned with the first center point.
In a specific implementation, if the second position deviation data is not greater than the preset position deviation threshold, it indicates that the deviation between the eyes of the detected person and the first center point (the exit pupil center) is small, that is, the eyes of the detected person are aligned with the first center point, that is, the first image acquisition device is aligned with the eyes to be detected of the detected person along the Y-axis direction.
S2, driving the first image acquisition device to align with the second eye of the tested person along the Y-axis direction through the driving device, and recording second position information of the first image acquisition device in the X-axis direction when the first image acquisition device aligns with the second eye of the tested person along the Y-axis direction.
In the embodiment, the driving device can drive the first image acquisition device to perform three-dimensional movement along the X-axis direction, the Y-axis direction and the Z-axis direction which are mutually perpendicular, and in the invention, the position of the first image acquisition device is adjusted by the driving device, so that the first image acquisition device is aligned with the second eye of the tested person along the Y-axis direction, namely, the coordinates of the first image acquisition device and the second eye of the tested person in the X-axis direction and the Z-axis direction are the same. And simultaneously, recording second position information of the first image acquisition device in the X-axis direction when the first image acquisition device is aligned with the second eye of the detected person along the Y-axis direction.
The second eye of the subject may be the left eye or the right eye of the subject, and the present invention is not particularly limited.
In one embodiment, the step S2 specifically includes: and controlling the first image acquisition device to move along the X-axis direction by a preset fourth distance, taking the second eye of the tested person as the eye to be tested, turning to the step S14, and executing the steps S14-S18 to enable the first image acquisition device to be aligned with the second eye of the tested person along the Y-axis direction.
In a specific implementation, the fourth distance may be specifically 60mm, i.e. the distance between the eyes of the person to be detected. I.e. the first image capturing device is controlled to move 60mm along the X-axis towards the second eye of the subject, so that the second eye of the subject enters the capturing range of the first image capturing device, and steps S14-S18 are performed so that the first image capturing device is aligned along the Y-axis direction with the second eye of the subject.
S3, acquiring the interpupillary distance of the detected person according to the first position information and the second position information.
In a specific implementation, when the first image acquisition device is aligned with the first eye of the person to be detected along the Y-axis direction, the first position information of the first image acquisition device along the X-axis direction is the position information of the first eye of the person to be detected along the X-axis direction, because the straight line where the eyes of the person to be detected are located is parallel to the X-axis direction during measurement. When the first image acquisition device is aligned with the second eye of the detected person along the Y-axis direction, the second position information of the first image acquisition device along the X-axis direction is the position information of the second eye of the detected person along the X-axis direction.
Thus, the pupil distance of the subject can be calculated based on the first position information and the second position information.
In an embodiment, the first position information is a first coordinate of the first image capturing device in the X-axis direction when the first image capturing device is aligned with the first eye of the subject along the Y-axis direction; the second position information is a second coordinate of the first image acquisition device in the X-axis direction when the first image acquisition device is aligned with a second eye of the detected person along the Y-axis direction. The step S3 specifically includes: and acquiring an absolute value of a difference value between the first coordinate and the second coordinate as an interpupillary distance of the detected person. And obtaining the distance between the first coordinate and the second coordinate to obtain the pupil distance of the detected person.
According to the technical scheme, when the first image acquisition device is driven by the driving device to align with the first eye of the tested person along the Y-axis direction, and the first image acquisition device is aligned with the first eye of the tested person along the Y-axis direction, first position information of the first image acquisition device in the X-axis direction is recorded; the first image acquisition device is driven by the driving device to align with the second eye of the detected person along the Y-axis direction, and second position information of the first image acquisition device in the X-axis direction is recorded when the first image acquisition device aligns with the second eye of the detected person along the Y-axis direction; the pupil distance of the detected person is obtained according to the first position information and the second position information, so that the pupil distance of the detected person can be obtained fully automatically, the accuracy is high, and the labor cost is low.
Referring to fig. 5, fig. 5 is a schematic block diagram of an interpupillary distance measuring device 50 according to an embodiment of the present invention. Corresponding to the above pupil distance measuring method, the present invention also provides a pupil distance measuring device 50, which is applied to a biological measuring instrument, wherein the biological measuring instrument comprises a first image acquisition device and a driving device; the driving device is connected with the first image acquisition device and is used for driving the first image acquisition device to move along the X-axis direction, the Y-axis direction and the Z-axis direction which are mutually perpendicular; during measurement, the Z-axis direction is the vertical direction, the X-axis direction is the direction parallel to the straight line where the eyes of the detected person are located, and the Y-axis direction and the X-axis direction are located on the same horizontal plane and are perpendicular to the X-axis direction. The pupil distance measuring device 50 includes a unit for performing the above pupil distance measuring method, and the pupil distance measuring device 50 may be configured in a desktop computer, a tablet computer, a laptop computer, or the like. Specifically, the pupil distance measuring device 50 includes:
a first alignment unit 51 for driving the first image capturing device to align with the first eye of the subject along the Y-axis direction by the driving device, and recording first position information of the first image capturing device in the X-axis direction when the first image capturing device aligns with the first eye of the subject along the Y-axis direction;
A second alignment unit 52 for driving the first image capturing device to align with the second eye of the subject along the Y-axis direction by the driving device, and recording second positional information of the first image capturing device in the X-axis direction when the first image capturing device aligns with the second eye of the subject along the Y-axis direction;
an acquisition unit 53 for acquiring the interpupillary distance of the subject based on the first position information and the second position information.
In an embodiment, the first position information is a first coordinate of the first image capturing device in the X-axis direction when the first image capturing device is aligned with the first eye of the subject along the Y-axis direction; the second position information is a second coordinate of the first image acquisition device in the X-axis direction when the first image acquisition device is aligned with a second eye of the detected person along the Y-axis direction; the step of obtaining the interpupillary distance of the detected person according to the first position information and the second position information includes:
and acquiring an absolute value of a difference value between the first coordinate and the second coordinate as an interpupillary distance of the detected person.
In an embodiment, the biological measurement instrument further comprises a second image acquisition device, and the second image acquisition device is arranged at one side of the first image acquisition device at intervals; the center of the lens of the first image acquisition device is a first center point, and the center of the lens of the second image acquisition device is a second center point; the first image acquisition device is provided with a circular light source taking the first central point as a circle center, the first image acquisition device is driven by the driving device to align with a first eye of the tested person along the Y-axis direction, and the device comprises:
taking a first eye of a detected person as an eye to be detected, collecting a first image to be detected of the eye to be detected through a second image collecting device, and determining first position deviation data of the eye to be detected and the second center point in the Z-axis direction according to the first image to be detected;
adjusting the position of the eye to be detected and/or the second image acquisition device in the Z-axis direction according to the first position deviation data so that the positions of the eye to be detected and the second center point in the Z-axis direction are the same;
according to the preset position relation between the second image acquisition device and the first image acquisition device, the position of the first image acquisition device and/or the position of the eye to be detected are adjusted, so that the eye to be detected enters the shooting range of the first image acquisition device;
Collecting a second image to be measured of the eye to be measured through the first image collecting device;
detecting a circular light source pattern formed by the circular light source in the second image to be detected, and acquiring second position deviation data between the circle center of the circular light source pattern and the first center point;
judging whether the second position deviation data is larger than a preset position deviation threshold value or not;
if the second position deviation data is larger than a preset position deviation threshold value, adjusting the position of the first image acquisition device and/or the eye to be detected according to the second position deviation data, and transferring to the step of acquiring a second image to be detected of the eye to be detected through the first image acquisition device;
and if the second position deviation data is not greater than a preset position deviation threshold value, judging that the eye to be detected is aligned with the first center point.
In an embodiment, the second image capturing device is pre-configured with a first image coordinate system, coordinates of the second center point in the first image coordinate system are preset third coordinates, and the determining, according to the first image to be tested, first position deviation data of the eye to be tested and the second center point in the Z-axis direction includes:
Acquiring a fourth coordinate of the eye to be detected in the first image coordinate system in the first image to be detected;
and determining a first distance between the eye to be measured and the second center point in the Z-axis direction as the first position deviation data according to the third coordinate and the fourth coordinate.
In an embodiment, the first image capturing device is pre-configured with a second image coordinate system, coordinates of the first center point in the second image coordinate system are preset fifth coordinates, and the acquiring second position deviation data between the center of the circle light source pattern and the first center point includes:
acquiring a sixth coordinate of the center of the circle of the circular light source pattern in the second image coordinate system in the second image to be detected;
and determining a second distance between the eye to be measured and the second center point in the Z-axis direction and a third distance between the eye to be measured and the second center point in the X-axis direction according to the fifth coordinate and the sixth coordinate, and taking the second distance and the third distance as the second position deviation data.
In an embodiment, the adjusting the position of the first image capturing device and/or the eye to be tested according to the second position deviation data includes:
Adjusting the position of the eye to be detected and/or the first image acquisition device in the Z-axis direction according to the second distance so that the positions of the eye to be detected and a second center point preset by the second image acquisition device in the Z-axis direction are the same;
and adjusting the position of the eye to be detected and/or the first image acquisition device in the X-axis direction according to the third distance so that the position of a second center point preset by the second image acquisition device is the same as the position of the eye to be detected in the X-axis direction.
In an embodiment, the driving the first image capturing device by the driving device aligns the second eye of the subject along the Y-axis direction, including:
and controlling the first image acquisition device to move along the X-axis direction by a preset fourth distance, taking the second eye of the detected person as an eye to be detected, and transferring to the step of acquiring the second image to be detected of the eye to be detected through the first image acquisition device.
It should be noted that, as will be clearly understood by those skilled in the art, the specific implementation process of the above-mentioned pupil distance measuring device 50 and each unit may refer to the corresponding descriptions in the foregoing method embodiments, and for convenience and brevity of description, the detailed description is omitted herein.
The above-described pupil distance measuring device 50 may be implemented in the form of a computer program which can be run on a computer apparatus as shown in fig. 6.
Referring to fig. 6, fig. 6 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 500 may be a terminal or a server, where the terminal may be an electronic device with a communication function, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, and a wearable device. The server may be an independent server or a server cluster formed by a plurality of servers.
The computer device 500 includes a processor 502, a memory, and a network interface 505, connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032, when executed, may cause the processor 502 to perform a pupil distance measurement method.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the execution of a computer program 5032 in the non-volatile storage medium 503, which computer program 5032, when executed by the processor 502, causes the processor 502 to perform a method of pupil distance measurement.
The network interface 505 is used for network communication with other devices. It will be appreciated by those skilled in the art that the foregoing structures, which are merely block diagrams of portions of structures related to the present application, are not limiting of the computer device 500 to which the present application may be applied, and that a particular computer device 500 may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
The processor 502 is configured to execute a computer program 5032 stored in a memory, so as to implement a method for measuring an interpupillary distance according to any one of the method embodiments described above.
It should be appreciated that in embodiments of the present application, the processor 502 may be a central processing unit (Central Processing Unit, CPU), the processor 502 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSPs), application specific integrated circuits (Application Specific Integrated Circuit, ASICs), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Those skilled in the art will appreciate that all or part of the flow in a method embodying the above described embodiments may be accomplished by computer programs instructing the relevant hardware. The computer program may be stored in a storage medium that is a computer readable storage medium. The computer program is executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer readable storage medium. The storage medium stores a computer program. The computer program, when executed by a processor, causes the processor to perform a method of pupil distance measurement as provided by any of the method embodiments described above.
The storage medium is a physical, non-transitory storage medium, and may be, for example, a U-disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk. The computer readable storage medium may be nonvolatile or may be volatile.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be combined, divided and deleted according to actual needs. In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The integrated unit may be stored in a storage medium if implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention is essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a terminal, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention.
In the foregoing embodiments, the descriptions of the embodiments are focused on, and for those portions of one embodiment that are not described in detail, reference may be made to the related descriptions of other embodiments.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (10)

1. The pupil distance measuring method is characterized by being applied to a biological measuring instrument, wherein the biological measuring instrument comprises a first image acquisition device and a driving device; the driving device is connected with the first image acquisition device and is used for driving the first image acquisition device to move along the X-axis direction, the Y-axis direction and the Z-axis direction which are mutually perpendicular; during measurement, the Z-axis direction is a vertical direction, the X-axis direction is a direction parallel to a straight line where two eyes of a detected person are located, the Y-axis direction and the X-axis direction are located on the same horizontal plane and are perpendicular to the X-axis direction, and the pupil distance measurement method comprises the following steps:
The first image acquisition device is driven by the driving device to align with the first eye of the tested person along the Y-axis direction, and first position information of the first image acquisition device in the X-axis direction is recorded when the first image acquisition device aligns with the first eye of the tested person along the Y-axis direction;
the first image acquisition device is driven by the driving device to align with the second eye of the tested person along the Y-axis direction, and second position information of the first image acquisition device along the X-axis direction is recorded when the first image acquisition device aligns with the second eye of the tested person along the Y-axis direction;
and acquiring the interpupillary distance of the detected person according to the first position information and the second position information.
2. The pupil distance measurement method as claimed in claim 1, wherein the first position information is a first coordinate of the first image capturing device in the X-axis direction when the first image capturing device is aligned with the first eye of the subject along the Y-axis direction; the second position information is a second coordinate of the first image acquisition device in the X-axis direction when the first image acquisition device is aligned with a second eye of the detected person along the Y-axis direction; the step of obtaining the interpupillary distance of the detected person according to the first position information and the second position information includes:
And acquiring an absolute value of a difference value between the first coordinate and the second coordinate as an interpupillary distance of the detected person.
3. The pupil distance measurement method as claimed in claim 1, characterized in that the biometric instrument further comprises a second image acquisition device, which is arranged at a distance from one side of the first image acquisition device; the center of the lens of the first image acquisition device is a first center point, and the center of the lens of the second image acquisition device is a second center point; the first image acquisition device is provided with a circular light source taking the first central point as a circle center, the first image acquisition device is driven by the driving device to align with a first eye of the tested person along the Y-axis direction, and the device comprises:
taking a first eye of a detected person as an eye to be detected, collecting a first image to be detected of the eye to be detected through a second image collecting device, and determining first position deviation data of the eye to be detected and the second center point in the Z-axis direction according to the first image to be detected;
adjusting the position of the eye to be detected and/or the second image acquisition device in the Z-axis direction according to the first position deviation data so that the positions of the eye to be detected and the second center point in the Z-axis direction are the same;
According to the preset position relation between the second image acquisition device and the first image acquisition device, the position of the first image acquisition device and/or the position of the eye to be detected are adjusted, so that the eye to be detected enters the shooting range of the first image acquisition device;
collecting a second image to be measured of the eye to be measured through the first image collecting device;
detecting a circular light source pattern formed by the circular light source in the second image to be detected, and acquiring second position deviation data between the circle center of the circular light source pattern and the first center point;
judging whether the second position deviation data is larger than a preset position deviation threshold value or not;
if the second position deviation data is larger than a preset position deviation threshold value, adjusting the position of the first image acquisition device and/or the eye to be detected according to the second position deviation data, and transferring to the step of acquiring a second image to be detected of the eye to be detected through the first image acquisition device;
and if the second position deviation data is not greater than a preset position deviation threshold value, judging that the eye to be detected is aligned with the first center point.
4. The pupil distance measurement method as claimed in claim 3, wherein the second image capturing device is pre-configured with a first image coordinate system, and the coordinates of the second center point in the first image coordinate system are preset third coordinates, and the determining the first position deviation data of the eye to be measured and the second center point in the Z-axis direction according to the first image to be measured includes:
Acquiring a fourth coordinate of the eye to be detected in the first image coordinate system in the first image to be detected;
and determining a first distance between the eye to be measured and the second center point in the Z-axis direction as the first position deviation data according to the third coordinate and the fourth coordinate.
5. The pupil distance measurement method as claimed in claim 3, wherein the first image capturing device is pre-configured with a second image coordinate system, and the coordinates of the first center point in the second image coordinate system are preset fifth coordinates, and the obtaining second position deviation data between the center of the circle light source pattern and the first center point includes:
acquiring a sixth coordinate of the center of the circle of the circular light source pattern in the second image coordinate system in the second image to be detected;
and determining a second distance between the eye to be measured and the second center point in the Z-axis direction and a third distance between the eye to be measured and the second center point in the X-axis direction according to the fifth coordinate and the sixth coordinate, and taking the second distance and the third distance as the second position deviation data.
6. The method according to claim 5, wherein adjusting the position of the first image capturing device and/or the eye to be tested according to the second positional deviation data comprises:
Adjusting the position of the eye to be detected and/or the first image acquisition device in the Z-axis direction according to the second distance so that the positions of the eye to be detected and a second center point preset by the second image acquisition device in the Z-axis direction are the same;
and adjusting the position of the eye to be detected and/or the first image acquisition device in the X-axis direction according to the third distance so that the position of a second center point preset by the second image acquisition device is the same as the position of the eye to be detected in the X-axis direction.
7. The automatic alignment method of human eyes according to claim 1, wherein the driving of the first image capturing device by the driving device aligns the second eye of the subject along the Y-axis direction, comprising:
and controlling the first image acquisition device to move along the X-axis direction by a preset fourth distance, taking the second eye of the detected person as an eye to be detected, and transferring to the step of acquiring the second image to be detected of the eye to be detected through the first image acquisition device.
8. An interpupillary distance measuring device comprising means for performing the method according to any one of claims 1-7.
9. A computer device, characterized in that it comprises a memory on which a computer program is stored and a processor which, when executing the computer program, implements the method according to any of claims 1-7.
10. A computer readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method according to any of claims 1-7.
CN202310086013.4A 2023-01-18 2023-01-18 Pupil distance measuring method and device, computer equipment and storage medium Pending CN116195967A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310086013.4A CN116195967A (en) 2023-01-18 2023-01-18 Pupil distance measuring method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310086013.4A CN116195967A (en) 2023-01-18 2023-01-18 Pupil distance measuring method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116195967A true CN116195967A (en) 2023-06-02

Family

ID=86518525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310086013.4A Pending CN116195967A (en) 2023-01-18 2023-01-18 Pupil distance measuring method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116195967A (en)

Similar Documents

Publication Publication Date Title
US10575727B2 (en) Automated detection of eye alignment
CN109313102B (en) Device, system and method for determining one or more optical parameters of an ophthalmic lens
US9291834B2 (en) System for the measurement of the interpupillary distance using a device equipped with a display and a camera
JP6662527B2 (en) Slide glass holder to detect slide glass placement in microscope
KR20140108649A (en) Video game to monitor retinal diseases
CN110420008B (en) Assembly, computer program, system and kit for determining a corrective lens
AU2016261277A1 (en) Apparatus, system and method of determining one or more optical parameters of a lens
CN111028205B (en) Eye pupil positioning method and device based on binocular distance measurement
CN111832344B (en) Dynamic pupil detection method and device
CN113227747B (en) There is not fixing device to examine mirror appearance system
CN111699432B (en) Method for determining the power of an eye using an immersive system and electronic device therefor
KR20070066924A (en) Image alignment system for use in laser ablation treatment of the cornea and associated methods
CN116195967A (en) Pupil distance measuring method and device, computer equipment and storage medium
CN113349734A (en) Fundus camera and working distance calibration method thereof
CN110823276A (en) Method, device and system for detecting vision sensor
CN116211241A (en) Human eye automatic alignment method, device, computer equipment and storage medium
CN116060256A (en) Battery cell glue dripping method and device and electronic equipment
CN114125303B (en) Test image acquisition method, device, equipment and medium
CN116258666A (en) Wafer detection Mark point positioning method and application
US20210386322A1 (en) Methods of selecting surgical implants and related devices
WO2022018271A1 (en) Method for determining a coronal position of an eye relative to the head
JP7440902B2 (en) Inspection device, program, calculation device, and inspection method
CN113702398B (en) Automatic quality inspection method and device for bracket-free appliance based on visual identification technology
EP3142347B1 (en) Method and device for obtaining high resolution images from low resolution image sensors
CN110785114A (en) Method for determining the pupil diameter of an eye with high accuracy and device associated therewith

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