CN112022081B - Method for detecting eyesight, terminal equipment and computer readable storage medium - Google Patents

Method for detecting eyesight, terminal equipment and computer readable storage medium Download PDF

Info

Publication number
CN112022081B
CN112022081B CN202010779348.0A CN202010779348A CN112022081B CN 112022081 B CN112022081 B CN 112022081B CN 202010779348 A CN202010779348 A CN 202010779348A CN 112022081 B CN112022081 B CN 112022081B
Authority
CN
China
Prior art keywords
image
pupil
terminal device
user
preset
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.)
Active
Application number
CN202010779348.0A
Other languages
Chinese (zh)
Other versions
CN112022081A (en
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.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius 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 Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN202010779348.0A priority Critical patent/CN112022081B/en
Publication of CN112022081A publication Critical patent/CN112022081A/en
Application granted granted Critical
Publication of CN112022081B publication Critical patent/CN112022081B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/103Objective types, i.e. instruments for examining the eyes independent of the patients' perceptions or reactions for determining refraction, e.g. refractometers, skiascopes
    • 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/14Arrangements specially adapted for eye photography
    • 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/14Arrangements specially adapted for eye photography
    • A61B3/15Arrangements specially adapted for eye photography with means for aligning, spacing or blocking spurious reflection ; with means for relaxing
    • A61B3/154Arrangements specially adapted for eye photography with means for aligning, spacing or blocking spurious reflection ; with means for relaxing for spacing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The embodiment of the invention discloses a method for detecting eyesight, terminal equipment and a computer readable storage medium, which are used for timely detecting the eyesight of a user by acquiring diopter. The embodiment of the invention is applied to terminal equipment, the terminal equipment comprises a vision sensor, and the method comprises the following steps: acquiring a plurality of diopters; performing vision testing according to the diopters; wherein the plurality of diopters includes a first diopter, and obtaining the plurality of diopters includes: under the condition that the terminal equipment is determined to be in a specific use scene, acquiring a first image by using an infrared eccentric photography technology through a vision sensor, wherein the first image comprises a first pupil image of a user; under the condition that the pupil position in the first pupil image is matched with the preset pupil position, a scanning lamp is started through a vision sensor, and a second image is obtained by using an infrared eccentric photographing technology, wherein the second image comprises a second pupil image of a user; and analyzing to obtain the first diopter according to the second pupil image.

Description

Method for detecting eyesight, terminal equipment and computer readable storage medium
Technical Field
The present invention relates to the field of terminal device applications, and in particular, to a method for detecting vision, a terminal device, and a computer-readable storage medium.
Background
With the rapid development of technology, people increasingly rely on terminal equipment, and the terminal equipment becomes high-frequency eye equipment. The long-term use or improper use of the terminal device by the user is a major cause of vision deterioration. The shortsighted patients in China account for about 33% of the shortsighted patients in the world, which is higher than the average value in the world.
The detection of human eye vision diopter is an important examination item in medicine, and the current portable automatic vision diopter detection equipment is a hot research content, and relates to a plurality of research fields such as medicine, artificial intelligence, computer vision, digital image processing and the like. The portable diopter detection device can enable people to track and know the refractive state of eyes of people, so that symptoms of ametropia (such as myopia, hyperopia, astigmatism and the like) can be found and treated as early as possible in a recoverable period. Therefore, prevention and treatment of myopia has become an urgent problem to be solved.
In the prior art, medical equipment with infrared eccentric photography technology is generally adopted for diopter detection in the domestic market, but the medical equipment has large volume and high cost, and can not automatically or portably detect eyesight.
Disclosure of Invention
Embodiments of the present invention provide a method of detecting vision, a terminal device, and a computer-readable storage medium for applying an infrared eccentric photography technique to a terminal device. The terminal device is generally miniaturized and has low cost, and meanwhile, the vision detection can be automatically carried out by combining a specific use scene of a user, so that the frequency of vision detection of the user is improved.
Accordingly, a first aspect of embodiments of the present invention provides a method for detecting vision, which may include:
acquiring a plurality of diopters;
performing vision testing according to the diopters;
wherein the plurality of diopters includes a first diopter, the obtaining the plurality of diopters includes:
acquiring a first image by using an infrared eccentric photography technology through the vision sensor under the condition that the terminal equipment is determined to be in a specific use scene, wherein the first image comprises a first pupil image of a user;
under the condition that the pupil position in the first pupil image is matched with the preset pupil position, a scanning lamp is started through the vision sensor, and a second image is obtained through the infrared eccentric photographing technology, wherein the second image comprises a second pupil image of the user;
And analyzing the first diopter according to the second pupil image.
Optionally, the analyzing to obtain the first diopter according to the second pupil image includes: analyzing the second pupil image to obtain an effective light bar range; acquiring a third image according to the effective light bar range by using the infrared eccentric photographing technology under the condition that the pupil position in the second pupil image is matched with the preset pupil position, wherein the third image comprises a third pupil image of the user; and analyzing and obtaining the first diopter according to the third pupil image.
Optionally, the analyzing to obtain the first diopter according to the second pupil image includes: analyzing the second pupil image to obtain an effective light bar range; acquiring a fourth image according to the effective light bar range by using the infrared eccentric photographing technology, wherein the fourth image comprises a fourth pupil image of the user; acquiring a fifth image according to the effective light bar range by using the infrared eccentric photographing technology under the condition that the pupil position in the fourth pupil image is matched with the preset pupil position, wherein the fifth image comprises a fifth pupil image of the user; and analyzing and obtaining the first diopter according to the fifth pupil image.
Optionally, the vision testing is performed according to the plurality of diopters, including: solving the average diopter according to the diopters; based on the mean diopter, vision testing is performed.
Optionally, the acquiring, by the vision sensor, the first image using infrared eccentric photography, in a case where the terminal device is determined to be in a specific use scenario, includes: under the condition that the terminal equipment is in a specific use scene, acquiring the current distance from the pupil of the user to the vision sensor through a distance measuring sensor; and under the condition that the current distance is greater than or equal to a preset distance threshold value, acquiring a first image by using an infrared eccentric shooting technology through the vision sensor.
Optionally, the determining that the terminal device is in a specific use scenario includes: detecting the continuous time length of the user gazing at the screen of the terminal equipment; and under the condition that the continuous time length is greater than or equal to a preset time length threshold value, determining that the terminal equipment is in a specific use scene.
Optionally, the determining that the terminal device is in a specific use scenario includes: in case that the user is detected to look at a specific content or a specific light source on the screen of the terminal device, it is determined that the terminal device is in a specific usage scenario.
A second aspect of an embodiment of the present invention provides a terminal device, which may include:
an acquisition module for acquiring a plurality of diopters, wherein the plurality of diopters includes a first diopter;
the processing module is used for detecting vision according to the diopters;
the acquisition module is specifically used for acquiring a first image by using an infrared eccentric photography technology through the vision sensor under the condition that the terminal equipment is determined to be in a specific use scene, wherein the first image comprises a first pupil image of a user; under the condition that the pupil position in the first pupil image is matched with the preset pupil position, a scanning lamp is started through the vision sensor, and a second image is obtained through the infrared eccentric photographing technology, wherein the second image comprises a second pupil image of the user; and analyzing the first diopter according to the second pupil image.
Optionally, the acquiring module is specifically configured to analyze the second pupil image to obtain an effective light bar range; acquiring a third image according to the effective light bar range by using the infrared eccentric photographing technology under the condition that the pupil position in the second pupil image is matched with the preset pupil position, wherein the third image comprises a third pupil image of the user; and analyzing and obtaining the first diopter according to the third pupil image.
Optionally, the acquiring module is specifically configured to analyze the second pupil image to obtain an effective light bar range; acquiring a fourth image according to the effective light bar range by using the infrared eccentric photographing technology, wherein the fourth image comprises a fourth pupil image of the user; acquiring a fifth image according to the effective light bar range by using the infrared eccentric photographing technology under the condition that the pupil position in the fourth pupil image is matched with the preset pupil position, wherein the fifth image comprises a fifth pupil image of the user; and analyzing and obtaining the first diopter according to the fifth pupil image.
Optionally, the processing module is specifically configured to solve the average diopter according to the plurality of diopters; based on the mean diopter, vision testing is performed.
Optionally, the acquiring module is specifically configured to acquire, by using a ranging sensor, a current distance from a pupil of the user to the vision sensor when the terminal device is in a specific use scenario; and under the condition that the current distance is greater than or equal to a preset distance threshold value, acquiring a first image by using an infrared eccentric shooting technology through the vision sensor.
Optionally, the acquiring module is specifically configured to detect a continuous duration of time that the user gazes at the screen of the terminal device; and under the condition that the continuous time length is greater than or equal to a preset time length threshold value, determining that the terminal equipment is in a specific use scene.
Optionally, the acquiring module is specifically configured to determine that the terminal device is in a specific usage scenario when detecting that the user gazes at a specific content or a specific light source on a screen of the terminal device.
A third aspect of an embodiment of the present application provides a terminal device, which may include:
a memory storing executable program code;
and a processor coupled to the memory;
the processor invokes the executable program code stored in the memory for performing the method according to the first aspect of the embodiment of the application.
A fourth aspect of the embodiments of the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method according to the first aspect of the embodiments of the present application.
From the above technical solutions, the embodiment of the present application has the following advantages:
in the present patent, a plurality of diopters are obtained; performing vision testing according to the diopters; wherein the plurality of diopters includes a first diopter, and the obtaining the plurality of diopters includes: acquiring a first image by using an infrared eccentric photography technology through the vision sensor under the condition that the terminal equipment is determined to be in a specific use scene, wherein the first image comprises a first pupil image of a user; under the condition that the pupil position in the first pupil image is matched with a preset pupil position, a scanning lamp is started through the vision sensor, and a second image is obtained by using the infrared eccentric photographing technology, wherein the second image comprises a second pupil image of the user; and analyzing and obtaining the first diopter according to the second pupil image. I.e. in case it is determined that the terminal device is in a specific use situation, the image comprising the user is acquired by means of a vision sensor using infrared eccentric photography techniques, and analyzed for diopter. In this way, the infrared eccentric photography technique can be applied to the terminal device. The terminal device is generally miniaturized and has low cost, and meanwhile, the vision detection can be automatically carried out by combining a specific use scene of a user, so that the frequency of vision detection of the user is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments and the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings.
FIG. 1 is a schematic diagram of one embodiment of a method of detecting vision in an embodiment of the present invention;
FIG. 2 is a schematic diagram of a user looking at specific content or specific light sources on a terminal device screen;
fig. 3 is a schematic diagram of a view sensor included in a terminal device according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of another embodiment of a method of detecting vision in an embodiment of the present invention;
FIG. 5 is a schematic diagram of another embodiment of a method of detecting vision in an embodiment of the present invention;
fig. 6 is a schematic diagram of an embodiment of a terminal device according to an embodiment of the present invention;
fig. 7 is a schematic diagram of another embodiment of a terminal device in an embodiment of the present invention.
Detailed Description
Embodiments of the present invention provide a method of detecting vision, a terminal device, and a computer-readable storage medium for applying an infrared eccentric photography technique to a terminal device. In general, the terminal device is relatively miniaturized and inexpensive, and at the same time, vision detection can be automatically performed in conjunction with a user-specific use scenario, thereby improving the frequency of vision detection of the user.
In order that those skilled in the art will better understand the present invention, reference will now be made to the accompanying drawings in which embodiments of the invention are illustrated, it being apparent that the embodiments described are only some, but not all, of the embodiments of the invention. Based on the embodiments of the present invention, it should be understood that the present invention is within the scope of protection.
It will be appreciated that the terminal devices involved in embodiments of the present invention may include general hand-held, on-screen electronic terminal devices such as cell phones, smart phones, portable terminals, personal digital assistants (Personal Digital Assistant, PDA), portable multimedia player (Personal Media Player, PMP) devices, notebook computers, notebook (Note Pad), wireless broadband (Wireless Broadband, wibro) terminals, tablet computers (Personal Computer, PC), smart PCs, point of sale (POS), and car computers, among others.
The terminal device may also comprise a wearable device. The wearable device may be worn directly on the user or may be a portable electronic device integrated into the user's clothing or accessories. The wearable device is not only a hardware device, but also can realize powerful intelligent functions through software support and data interaction and cloud interaction, such as: the mobile phone terminal has the advantages of calculating function, positioning function and alarming function, and can be connected with mobile phones and various terminals. Wearable devices may include, but are not limited to, wrist-supported watch types (e.g., watches, wrist products, etc.), foot-supported shoes (e.g., shoes, socks, or other leg wear products), head-supported Glass types (e.g., glasses, helmets, headbands, etc.), and smart apparel, school bags, crutches, accessories, etc. in various non-mainstream product forms.
In the following, by way of example, the technical solution of the present invention is further described, as shown in fig. 1, which is a schematic diagram of an embodiment of a method for detecting eyesight in an embodiment of the present invention, and may include:
101. in case it is determined that the terminal device is in a specific use scenario, a first image is acquired by the vision sensor using an infrared eccentric photography technique, the first image comprising a first pupil image of the user.
In the example of the present invention, in the case that the terminal device determines that the terminal device is in a specific usage scene, the terminal device acquires a first image by using an infrared eccentric photography technology through the vision sensor, where the first image includes a first pupil image of a user, and may include: under the condition that the terminal equipment is in a specific use scene, the terminal equipment obtains the current distance from the pupil of the user to the vision sensor through a distance measuring sensor; and under the condition that the current distance is greater than or equal to a preset distance threshold value, the terminal equipment acquires a first image through the vision sensor by using an infrared eccentric photographing technology. I.e. if the current distance from the pupil of the user to the vision sensor is greater than or equal to a preset distance threshold, the terminal device may acquire the first image by using the infrared eccentric photography technique through the vision sensor. And if the current distance between the pupil of the user and the vision sensor is smaller than a preset distance threshold value, not performing operation.
The preset distance threshold of the terminal equipment is 35 cm, if the current distance from the pupil of the user to the vision sensor is 37 cm through the distance measuring sensor, and the current distance is 37 cm and is larger than the preset distance threshold by 35 cm, the terminal equipment acquires a first image through the vision sensor by using an infrared eccentric photography technology; if the terminal equipment obtains that the current distance from the pupil of the user to the vision sensor is 28 cm through the distance measuring sensor, and the current distance is 28 cm less than the preset distance threshold value of 35 cm, the terminal equipment cannot obtain the first image through the vision sensor by using the infrared eccentric photography technology.
Optionally, the terminal device may first determine whether the terminal device meets a preset condition when determining that the terminal device is in a specific usage scenario. The terminal device may perform vision testing if the terminal device satisfies at least one of the preset conditions. Wherein, the preset conditions include: the residual memory of the terminal equipment is larger than a preset memory threshold value; the current temperature of the terminal equipment is smaller than a preset temperature threshold value; and the residual electric quantity of the terminal equipment is larger than a preset electric quantity threshold value. Illustratively, the preset power threshold of the terminal device is 70%, and when the remaining power is greater than or equal to 70% of the preset power threshold, the terminal device may perform vision inspection.
Optionally, the terminal device may determine whether the user is within the measurement range of the ranging sensor when determining that the terminal device is in a specific usage scenario, and if the current distance from the pupil of the user to the vision sensor is within the measurement range, the terminal device enters a measurement mode and adjusts the angle of the ranging sensor to a suitable position, and obtains the current distance from the pupil of the user to the vision sensor through the ranging sensor. If the current distance from the pupil of the user to the vision sensor is not in the measuring range, no operation is performed. Alternatively, if an angular deviation is generated when the ranging sensor measures the current distance, the terminal device may automatically fix the angular deviation.
Optionally, the terminal device determines that it is in a specific usage scenario may include: the terminal equipment detects the continuous time length of the user gazing at the screen of the terminal equipment; and under the condition that the continuous time length is greater than or equal to a preset time length threshold value, the terminal equipment determines that the terminal equipment is in a specific use scene. By way of example, the threshold duration threshold in the terminal device is 40 minutes, and when the continuous duration of the user looking at the terminal device is 42 minutes, the terminal device can determine that it is in a particular use scenario, wherein 42 minutes is greater than 40 minutes. Or alternatively, the process may be performed,
In the case of detecting that the user gazes at a specific content or a specific light source on the screen of the terminal device, the terminal device determines that the terminal device is in a specific use scene, and fig. 2 is a schematic diagram of the user gazing at the specific content or the specific light source on the screen of the terminal device; wherein the specific content may include a preset picture or a preset animation, and the specific light source includes a preset additional visible light source.
It will be appreciated that the specific content or specific light source on the screen of the terminal device may be real-time or periodic, and is not limited in this regard. Taking the example that the appearance period of the specific content on the screen of the terminal equipment is one month, assuming that the preset specific content of the terminal equipment is a preset picture, setting the preset picture to appear at 21 points in the fifth night of each month, and determining that the terminal equipment is in a specific use scene by only watching the preset animation. Optionally, if the screen of the terminal device is in a screen-off state, when the preset time is reached, the terminal device informs the user that the detection vision is achieved by means of message prompt tones or voice broadcasting.
It is understood that the terminal device includes a vision sensor and a ranging sensor. Fig. 3 is a schematic diagram of a view sensor included in a terminal device according to an embodiment of the present invention, which may include, but is not limited to: the device comprises a scanning lamp, an infrared camera, an infrared light shielding plate, an infrared narrow-band filter and a processor, wherein the scanning lamp consists of a strip-shaped infrared light emitting diode. The scanning lamp is positioned in front of the infrared camera. The connection mode of the vision sensor and the distance measuring sensor may be serial connection or parallel connection, and is not limited herein.
102. And under the condition that the pupil position in the first pupil image is matched with a preset pupil position, a scanning lamp is started through the vision sensor, and a second image is acquired by using the infrared eccentric photographing technology, wherein the second image comprises a second pupil image of the user.
Optionally, when the pupil position in the first pupil image matches with a preset pupil position, the terminal device turns on a scanning lamp through the vision sensor, and acquires a second image by using the infrared eccentric photography technology, where the second image includes a second pupil image of the user, and may include: under the condition that the pupil position in the first pupil image is matched with the preset pupil position, the terminal equipment starts a scanning lamp through the vision sensor, acquires a second image through the infrared eccentric photography technology, scans the second image for a plurality of times, and the second image comprises a second pupil image of the user.
It will be appreciated that the scanning light in the terminal device may scan the second pupil image multiple times, since the imaging of different scanning light bars in the pupil is different, different scanning light bars represent different diopter measurement ranges; some scan light bars may not be able to see the image in the pupil because of the problem of the combined optical path of vision and structure, so that the scan light bars are not in diopter measurement range, and it is necessary to change one scan light bar to adjust the optical path and then take a picture to see whether the second pupil image is in diopter measurement range. Due to structural problems, a scanning light bar can only measure a small diopter range, not the full range.
103. And analyzing and obtaining the first diopter according to the second pupil image.
Optionally, the analyzing, by the terminal device, the first diopter according to the second pupil image may include: obtaining an effective light bar range according to the second pupil image; and analyzing and obtaining the first diopter according to the effective light bar range.
It can be appreciated that if only the effective light bar range in one second pupil image is obtained, the detection result may be inaccurate, so the terminal device needs to detect the effective light bar ranges in at least two second pupil images to ensure the accuracy of the detection result. The effective light bar is a light bar capable of measuring diopter of a portrait; further, a light bar capable of measuring diopter of a pupil in a portrait may be provided. When the effective light bar range is obtained, at least two scanning light bars can simultaneously measure diopters, and the terminal equipment can obtain the effective light bar range through a preset intelligent algorithm according to the diopters measured by the at least two scanning light bars.
104. A plurality of diopters is acquired, wherein the plurality of diopters includes a first diopter.
It can be appreciated that the terminal device obtains a plurality of diopters, and the obtaining manner of each diopter may refer to the obtaining of the first diopter in the above steps 101-103, which is not described herein.
105. And performing vision testing according to the diopters.
Optionally, performing vision testing according to the plurality of diopters may include: solving the average diopter according to the diopters; and performing vision testing according to the average diopter.
Optionally, after vision testing, the change trend or details of the vision testing device can be displayed on a screen through a plurality of diopter comparisons, and health prompts can be timely given to customers. Alternatively, if the vision test is the first time, no comparison is made, and only the health prompt corresponding to the test result is required to be displayed.
In an embodiment of the present invention, a method of detecting vision is provided. The terminal equipment judges whether the current distance from the pupil of the user to the vision sensor is greater than or equal to a preset distance threshold value through photographing for the first time, if so, the terminal equipment starts a scanning lamp, the vision sensor acquires a second image through an infrared eccentric photographing technology, and the vision of the user is detected through analyzing the effective light bar range in the second pupil image. In this way, the infrared eccentric photography technique can be applied to the terminal device. The terminal device is generally miniaturized and has low cost, and meanwhile, the vision detection can be automatically carried out by combining a specific use scene of a user, so that the frequency of vision detection of the user is improved.
As shown in fig. 4, another embodiment of a method for detecting vision in an embodiment of the present invention is shown, which may include:
401. in case it is determined that the terminal device is in a specific use scenario, a first image is acquired by the vision sensor using an infrared eccentric photography technique, the first image comprising a first pupil image of the user.
402. And under the condition that the pupil position in the first pupil image is matched with a preset pupil position, a scanning lamp is started through the vision sensor, and a second image is acquired by using the infrared eccentric photographing technology, wherein the second image comprises a second pupil image of the user.
It should be noted that, steps 401 and 402 are similar to steps 101 and 102 shown in fig. 1, and will not be described here again.
403. And analyzing the second pupil image to obtain an effective light bar range.
It is understood that an effective light bar refers to a light bar that is capable of measuring diopter of a portrait; further, a light bar capable of measuring diopter of a pupil in a portrait may be provided. When the effective light bar range is obtained, at least two scanning light bars can simultaneously measure diopters, and the terminal equipment can obtain the effective light bar range through a preset intelligent algorithm according to the diopters measured by the at least two scanning light bars. The second image is used for judging whether the pupil position in the second pupil image is matched with the preset pupil position or not.
404. And under the condition that the pupil position in the second pupil image is matched with the preset pupil position, acquiring a third image according to the effective light bar range by using the infrared eccentric photographing technology, wherein the third image comprises a third pupil image of the user.
Optionally, when the pupil position in the second pupil image matches with a preset pupil position, the terminal device turns on a scanning lamp through the vision sensor, and acquires a third image by using the infrared eccentric photography technology, where the second image includes the third pupil image of the user, and may include: under the condition that the pupil position in the second pupil image is matched with the preset pupil position, the terminal equipment starts a scanning lamp through the vision sensor, acquires a third image by using the infrared eccentric photographing technology, scans the third image for multiple times, and the third image comprises a third pupil image of the user.
It will be appreciated that the scanning light in the terminal device may scan the third pupil image multiple times, since the imaging of different scanning light bars in the pupil is different, different scanning light bars represent different diopter measurement ranges; some scan light bars may not be able to see the image in the pupil because of the problem of the combined optical path of vision and structure, so that the scan light bars are not in the diopter measurement range, and it is necessary to change one scan light bar to adjust the optical path and then take a photograph to see whether the third pupil image is in the diopter measurement range. Due to structural problems, a scanning light bar can only measure a small diopter range, not the full range.
405. And analyzing and obtaining the first diopter according to the third pupil image.
Optionally, the analyzing, by the terminal device, the first diopter according to the third pupil image may include: obtaining an effective light bar range according to the third pupil image; and analyzing and obtaining the first diopter according to the effective light bar range.
It can be appreciated that if only the valid light bar ranges in one third pupil image are acquired, the detection result may be inaccurate, so the terminal device needs to detect the valid light bar ranges in at least two third pupil images to ensure the accuracy of the detection result. The effective light bar is a light bar capable of measuring diopter of a portrait; further, a light bar capable of measuring diopter of a pupil in a portrait may be provided. When the effective light bar range is obtained, at least two scanning light bars can simultaneously measure diopters, and the terminal equipment can obtain the effective light bar range through a preset intelligent algorithm according to the diopters measured by the at least two scanning light bars.
406. A plurality of diopters is acquired, wherein the plurality of diopters includes a first diopter.
407. And performing vision testing according to the diopters.
It should be noted that, steps 406 and 407 are similar to steps 104 and 105 shown in fig. 1, and are not repeated here.
In an embodiment of the present invention, a method of detecting vision is provided. And the terminal equipment performs first photographing on the user by judging whether the current distance from the pupil of the user to the vision sensor is greater than or equal to a preset distance threshold value or not, and if so, performing first photographing on the user by the terminal equipment. If the pupil position in the pupil image of the user is matched with the preset pupil position, the terminal equipment starts a scanning lamp, a vision sensor of the scanning lamp acquires a second image and an effective light bar range thereof by using an infrared eccentric photographing technology, the terminal equipment performs third photographing according to the effective light bar range of the second pupil image to acquire a third pupil image, and the vision of the user is detected by analyzing the effective light bar range in the third pupil image. The result detected by this method is more accurate than the result detected by fig. 1. In addition to this, the method can apply infrared eccentric photography to terminal equipment. The terminal device is generally miniaturized and has low cost, and meanwhile, the vision detection can be automatically carried out by combining a specific use scene of a user, so that the frequency of vision detection of the user is improved.
As shown in fig. 5, another embodiment of a method for detecting vision in an embodiment of the present invention is shown, which may include:
501. in case it is determined that the terminal device is in a specific use scenario, a first image is acquired by the vision sensor using an infrared eccentric photography technique, the first image comprising a first pupil image of the user.
502. And under the condition that the pupil position in the first pupil image is matched with a preset pupil position, a scanning lamp is started through the vision sensor, and a second image is acquired by using the infrared eccentric photographing technology, wherein the second image comprises a second pupil image of the user.
503. And analyzing the second pupil image to obtain an effective light bar range.
It should be noted that steps 501-503 are similar to steps 401-403 shown in fig. 4, and will not be described here again.
504. And acquiring a fourth image according to the effective light bar range by using the infrared eccentric photography technology, wherein the fourth image comprises a fourth pupil image of the user.
It is understood that an effective light bar refers to a light bar that is capable of measuring diopter of a portrait; further, a light bar capable of measuring diopter of a pupil in a portrait may be provided. When the effective light bar range is obtained, at least two scanning light bars can simultaneously measure diopters, and the terminal equipment can obtain the effective light bar range through a preset intelligent algorithm according to the diopters measured by the at least two scanning light bars. The fourth image is used for judging whether the pupil position in the fourth pupil image is matched with the preset pupil position or not.
505. And under the condition that the pupil position in the fourth pupil image is matched with the preset pupil position, acquiring a fifth image according to the effective light bar range by using the infrared eccentric photographing technology, wherein the fifth image comprises a fifth pupil image of the user.
Optionally, when the pupil position in the fourth pupil image is matched with the preset pupil position, the terminal device starts a scanning lamp through the vision sensor, and obtains a fifth image by using the infrared eccentric photography technology, where the fifth image includes a fifth pupil image of the user, and may include: and under the condition that the pupil position in the fourth pupil image is matched with the preset pupil position, the terminal equipment starts a scanning lamp through the vision sensor, acquires a fifth image by using the infrared eccentric photographing technology, and scans the fifth image for a plurality of times, wherein the fifth image comprises the fifth pupil image of the user.
It can be appreciated that the scanning light in the terminal device may scan the fifth pupil image multiple times, and because the imaging of different scanning light bars in the pupil is different, the different scanning light bars represent different diopter measurement ranges; some scan light bars may not be able to see the image in the pupil because of the problem of the combined optical path of vision and structure, so that the scan light bars are not in diopter measurement range, and it is necessary to change one scan light bar to adjust the optical path and then take a photograph to see whether the fifth pupil image is in diopter measurement range. Due to structural problems, a scanning light bar can only measure a small diopter range, not the full range.
506. And analyzing and obtaining the first diopter according to the fifth pupil image.
Optionally, the analyzing, by the terminal device, the first diopter according to the fifth pupil image may include: obtaining an effective light bar range according to the fifth pupil image; and analyzing and obtaining the first diopter according to the effective light bar range.
It can be appreciated that if only the valid light bar range in one fifth pupil image is obtained, the detection result may be inaccurate, so the terminal device needs to detect the valid light bar ranges in at least two fifth pupil images to ensure the accuracy of the detection result. The effective light bar is a light bar capable of measuring diopter of a portrait; further, a light bar capable of measuring diopter of a pupil in a portrait may be provided. When the effective light bar range is obtained, at least two scanning light bars can simultaneously measure diopters, and the terminal equipment can obtain the effective light bar range through a preset intelligent algorithm according to the diopters measured by the at least two scanning light bars.
507. A plurality of diopters is acquired, wherein the plurality of diopters includes a first diopter.
508. And performing vision testing according to the diopters.
It should be noted that, steps 507 and 508 are similar to steps 406 and 407 shown in fig. 4, and are not repeated here.
In an embodiment of the present invention, a method of detecting vision is provided. And the terminal equipment performs first photographing on the user by judging whether the current distance from the pupil of the user to the vision sensor is greater than or equal to a preset distance threshold value or not, and if so, performing first photographing on the user by the terminal equipment. If the pupil position in the pupil image of the user is matched with the preset pupil position, the terminal equipment starts a scanning lamp, a vision sensor of the scanning lamp acquires a second image and an effective light bar range thereof by using an infrared eccentric photographing technology, the terminal equipment performs fourth photographing according to the effective light bar range of the second pupil image to acquire a fourth pupil image, if the pupil position in the fourth pupil image is matched with the preset pupil position, performs fifth photographing according to the effective light bar range of the fourth pupil image to acquire a fifth pupil image, and detects the vision of the user by analyzing the effective light bar range in the fifth pupil image. According to the method, whether the pupil position in the pupil image is matched with the preset pupil position is judged twice, the matched images are scanned for multiple times by the scanning lamp respectively to obtain the final required first diopter through analysis, and the terminal equipment can detect the eyesight of the user more accurately. The result detected by this method is more accurate than the result detected by fig. 4. In addition to this, the method can apply infrared eccentric photography to terminal equipment. The terminal device is generally miniaturized and has low cost, and meanwhile, the vision detection can be automatically carried out by combining a specific use scene of a user, so that the frequency of vision detection of the user is improved.
As shown in fig. 6, which is a schematic diagram of an embodiment of a terminal device in an embodiment of the present invention, may include:
an acquisition module 601 configured to acquire a plurality of diopters, wherein the plurality of diopters includes a first diopter;
a processing module 602, configured to perform vision testing according to the plurality of diopters.
The acquiring module 601 is specifically configured to acquire, by using the vision sensor and using an infrared eccentric photography technology, a first image when it is determined that the terminal device is in a specific usage scenario, where the first image includes a first pupil image of a user; under the condition that the pupil position in the first pupil image is matched with a preset pupil position, a scanning lamp is started through the vision sensor, and a second image is obtained by using the infrared eccentric photographing technology, wherein the second image comprises a second pupil image of the user; and analyzing and obtaining the first diopter according to the second pupil image.
Alternatively, in some embodiments of the invention,
the obtaining module 601 is specifically configured to analyze the second pupil image to obtain an effective light bar range; acquiring a third image according to the effective light bar range by using the infrared eccentric photographing technology under the condition that the pupil position in the second pupil image is matched with the preset pupil position, wherein the third image comprises a third pupil image of the user; and analyzing and obtaining the first diopter according to the third pupil image.
Alternatively, in some embodiments of the invention,
the obtaining module 601 is specifically configured to analyze the second pupil image to obtain an effective light bar range; acquiring a fourth image according to the effective light bar range by using the infrared eccentric photography technology, wherein the fourth image comprises a fourth pupil image of the user; acquiring a fifth image according to the effective light bar range by using the infrared eccentric photographing technology under the condition that the pupil position in the fourth pupil image is matched with the preset pupil position, wherein the fifth image comprises a fifth pupil image of the user; and analyzing and obtaining the first diopter according to the fifth pupil image.
Alternatively, in some embodiments of the invention,
the processing module 602 is specifically configured to solve the average diopter according to the multiple diopters; and performing vision testing according to the average diopter.
Alternatively, in some embodiments of the invention,
the acquiring module 601 is specifically configured to acquire, by using a ranging sensor, a current distance from a pupil of the user to the vision sensor when the terminal device is in a specific usage scenario; and under the condition that the current distance is greater than or equal to a preset distance threshold value, acquiring a first image by using an infrared eccentric photographing technology through the vision sensor.
Alternatively, in some embodiments of the invention,
the acquiring module 601 is specifically configured to detect a continuous duration of time that the user gazes at the screen of the terminal device; under the condition that the continuous time length is greater than or equal to a preset time length threshold value, determining that the terminal equipment is in a specific use scene;
alternatively, in some embodiments of the invention,
the obtaining module 601 is specifically configured to determine that the terminal device is in a specific usage scenario when detecting that the user gazes at a specific content or a specific light source on a screen of the terminal device.
Fig. 7 is a schematic diagram of another embodiment of a terminal device according to an embodiment of the present invention, and fig. 7 is a block diagram illustrating a part of a structure of a mobile phone related to the terminal device according to the embodiment of the present invention. Referring to fig. 7, the mobile phone includes: radio Frequency (RF) circuitry 710, memory 720, input unit 730, display unit 740, sensor 750, audio circuitry 760, wireless fidelity (wireless fidelity, wiFi) module 770, processor 780, power supply 790, and the like. It will be appreciated by those skilled in the art that the handset construction shown in fig. 7 is not limiting of the handset and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The following describes the components of the mobile phone in detail with reference to fig. 7:
the RF circuit 710 may be configured to receive and transmit signals during a message or a call, and specifically, receive downlink information of a base station and process the downlink information with the processor 780; in addition, the data of the design uplink is sent to the base station. Typically, the RF circuitry 710 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like. In addition, the RF circuitry 710 may also communicate with networks and other devices via wireless communications. The wireless communications may use any communication standard or protocol including, but not limited to, global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), code division multiple access (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE), email, short message service (Short Messaging Service, SMS), and the like.
The memory 720 may be used to store software programs and modules, and the processor 780 performs various functional applications and data processing of the handset by running the software programs and modules stored in the memory 720. The memory 720 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 720 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The input unit 730 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the handset. In particular, the input unit 730 may include a touch panel 731 and other input devices 732. The touch panel 731, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on or thereabout the touch panel 731 using any suitable object or accessory such as a finger, a stylus, etc.), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch panel 731 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 780, and can receive commands from the processor 780 and execute them. In addition, the touch panel 731 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 730 may include other input devices 732 in addition to the touch panel 731. In particular, the other input devices 732 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 740 may be used to display information input by a user or information provided to the user and various menus of the mobile phone. The display unit 740 may include a display panel 741, and alternatively, the display panel 741 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 731 may cover the display panel 741, and when the touch panel 731 detects a touch operation thereon or thereabout, the touch operation is transferred to the processor 780 to determine the type of touch event, and then the processor 780 provides a corresponding visual output on the display panel 741 according to the type of touch event. Although in fig. 7, the touch panel 731 and the display panel 741 are two separate components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 731 and the display panel 741 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 750, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 741 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 741 and/or the backlight when the mobile phone moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for applications of recognizing the gesture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured with the handset are not described in detail herein.
Audio circuitry 760, speaker 761, and microphone 762 may provide an audio interface between a user and a cell phone. The audio circuit 760 may transmit the received electrical signal converted from audio data to the speaker 761, and the electrical signal is converted into a sound signal by the speaker 761 to be output; on the other hand, microphone 762 converts the collected sound signals into electrical signals, which are received by audio circuit 760 and converted into audio data, which are processed by audio data output processor 780 for transmission to, for example, another cell phone via RF circuit 710 or for output to memory 720 for further processing.
WiFi belongs to a short-distance wireless transmission technology, and a mobile phone can help a user to send and receive emails, browse webpages, access streaming media and the like through a WiFi module 770, so that wireless broadband Internet access is provided for the user. Although fig. 7 shows the WiFi module 770, it is understood that it does not belong to the essential constitution of the mobile phone, and can be omitted entirely as required within the scope of not changing the essence of the invention.
The processor 780 is a control center of the mobile phone, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions and processes of the mobile phone by running or executing software programs and/or modules stored in the memory 720 and calling data stored in the memory 720, thereby performing overall monitoring of the mobile phone. Optionally, the processor 780 may include one or more processing units; preferably, the processor 780 may integrate an application processor that primarily processes operating systems, user interfaces, applications, etc., with a modem processor that primarily processes wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 780.
The handset further includes a power supply 790 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 780 through a power management system, such as to provide for managing charging, discharging, and power consumption by the power management system.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which will not be described herein.
In the embodiment of the present invention, the processor 780 included in the terminal device further has the following functions:
acquiring a plurality of diopters;
performing vision testing according to the diopters;
wherein the plurality of diopters includes a first diopter, and the obtaining the plurality of diopters includes: acquiring a first image by using an infrared eccentric photography technology through the vision sensor under the condition that the terminal equipment is determined to be in a specific use scene, wherein the first image comprises a first pupil image of a user; under the condition that the pupil position in the first pupil image is matched with a preset pupil position, a scanning lamp is started through the vision sensor, and a second image is obtained by using the infrared eccentric photographing technology, wherein the second image comprises a second pupil image of the user; and analyzing and obtaining the first diopter according to the second pupil image.
Optionally, the processor 780 also has the following functions:
analyzing the second pupil image to obtain an effective light bar range; acquiring a third image according to the effective light bar range by using the infrared eccentric photographing technology under the condition that the pupil position in the second pupil image is matched with the preset pupil position, wherein the third image comprises a third pupil image of the user; and analyzing and obtaining the first diopter according to the third pupil image.
Optionally, the processor 780 also has the following functions:
analyzing the second pupil image to obtain an effective light bar range; acquiring a fourth image according to the effective light bar range by using the infrared eccentric photography technology, wherein the fourth image comprises a fourth pupil image of the user; acquiring a fifth image according to the effective light bar range by using the infrared eccentric photographing technology under the condition that the pupil position in the fourth pupil image is matched with the preset pupil position, wherein the fifth image comprises a fifth pupil image of the user; and analyzing and obtaining the first diopter according to the fifth pupil image.
Optionally, the processor 780 also has the following functions:
Solving the average diopter according to the diopters; and performing vision testing according to the average diopter.
Optionally, the processor 780 also has the following functions:
under the condition that the terminal equipment is in a specific use scene, acquiring the current distance from the pupil of the user to the vision sensor through a distance measuring sensor; and under the condition that the current distance is greater than or equal to a preset distance threshold value, acquiring a first image by using an infrared eccentric photographing technology through the vision sensor.
Optionally, the processor 780 also has the following functions:
detecting the continuous time length of the user gazing at the screen of the terminal equipment; and under the condition that the continuous time length is greater than or equal to a preset time length threshold value, determining that the terminal equipment is in a specific use scene.
Optionally, the processor 780 also has the following functions:
in case that the user is detected to look at specific content or specific light sources on the screen of the terminal device, the terminal device is determined to be in a specific usage scenario.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product.
The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be stored by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in the present invention, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
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 units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (3)

1. A terminal device, comprising:
an acquisition module for acquiring a plurality of diopters, wherein the plurality of diopters includes a first diopter;
the processing module is used for detecting vision according to the diopters;
the acquisition module is specifically configured to determine that the terminal device is in a specific usage scenario when detecting that a user looks at a specific content or a specific light source on a screen of the terminal device, and acquire a first image by using an infrared eccentric photography technology through a vision sensor when judging that the terminal device meets a preset condition, where the preset condition includes that a remaining memory of the terminal device is greater than a preset memory threshold, a current temperature of the terminal device is less than a preset temperature threshold, and a remaining power of the terminal device is greater than a preset power threshold, the vision sensor includes a scanning lamp composed of a bar-shaped infrared light emitting diode, an infrared camera, an infrared light shielding plate, an infrared narrowband filter, and a processor, and the first image includes a first pupil image of the user; under the condition that the pupil position in the first pupil image is matched with a preset pupil position, a scanning lamp is started through the vision sensor, and a second image is obtained by using the infrared eccentric photographing technology, wherein the second image comprises a second pupil image of the user; analyzing the second pupil image to obtain an effective light bar range, wherein the effective light bar range refers to a range of a light bar capable of measuring diopter of pupils in a portrait; acquiring a fourth image according to the effective light bar range by using the infrared eccentric photography technology, wherein the fourth image comprises a fourth pupil image of the user; acquiring a fifth image according to the effective light bar range by using the infrared eccentric photographing technology under the condition that the pupil position in the fourth pupil image is matched with the preset pupil position, wherein the fifth image comprises a fifth pupil image of the user; and analyzing and obtaining the first diopter according to the fifth pupil image.
2. The terminal device according to claim 1, wherein the processing module is configured to solve for an average diopter based on the plurality of diopters; and performing vision testing according to the average diopter.
3. The terminal device according to claim 1, wherein the obtaining module is specifically configured to obtain, by using a ranging sensor, a current distance from a pupil of the user to the vision sensor when the terminal device is in a specific use scenario and a preset condition is satisfied; and under the condition that the current distance is greater than or equal to a preset distance threshold value, acquiring a first image by using an infrared eccentric photographing technology through the vision sensor.
CN202010779348.0A 2020-08-05 2020-08-05 Method for detecting eyesight, terminal equipment and computer readable storage medium Active CN112022081B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010779348.0A CN112022081B (en) 2020-08-05 2020-08-05 Method for detecting eyesight, terminal equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010779348.0A CN112022081B (en) 2020-08-05 2020-08-05 Method for detecting eyesight, terminal equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112022081A CN112022081A (en) 2020-12-04
CN112022081B true CN112022081B (en) 2023-08-25

Family

ID=73582357

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010779348.0A Active CN112022081B (en) 2020-08-05 2020-08-05 Method for detecting eyesight, terminal equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112022081B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113892904A (en) * 2021-10-08 2022-01-07 湖南火眼医疗科技有限公司 Children and teenagers' refractive state change prediction system based on camera device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104068827A (en) * 2014-06-25 2014-10-01 深圳市斯尔顿科技有限公司 Self-service eye comprehensive detection method and detection equipment
CN107890336A (en) * 2017-12-05 2018-04-10 中南大学 Diopter detecting system based on intelligent handheld device
CN110096978A (en) * 2019-04-18 2019-08-06 温州医科大学 The method of eccentricity cycles image procossing based on machine vision
CN110279391A (en) * 2019-05-30 2019-09-27 廖亮举 Portable infrared camera eyesight detection algorithm
CN110575134A (en) * 2019-07-25 2019-12-17 北京爱诺斯科技有限公司 method for calculating myopia degree based on eccentric photography
CN111067476A (en) * 2020-01-08 2020-04-28 上海美沃精密仪器股份有限公司 Portable infrared eccentric photography optometry system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104068827A (en) * 2014-06-25 2014-10-01 深圳市斯尔顿科技有限公司 Self-service eye comprehensive detection method and detection equipment
CN107890336A (en) * 2017-12-05 2018-04-10 中南大学 Diopter detecting system based on intelligent handheld device
CN110096978A (en) * 2019-04-18 2019-08-06 温州医科大学 The method of eccentricity cycles image procossing based on machine vision
CN110279391A (en) * 2019-05-30 2019-09-27 廖亮举 Portable infrared camera eyesight detection algorithm
CN110575134A (en) * 2019-07-25 2019-12-17 北京爱诺斯科技有限公司 method for calculating myopia degree based on eccentric photography
CN111067476A (en) * 2020-01-08 2020-04-28 上海美沃精密仪器股份有限公司 Portable infrared eccentric photography optometry system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
红外偏心摄影验光仪的研究;叶宏伟等;《光学仪器》;20051231;第27卷(第6期);第80-84页 *

Also Published As

Publication number Publication date
CN112022081A (en) 2020-12-04

Similar Documents

Publication Publication Date Title
KR102561587B1 (en) Electronic apparatus and operating method thereof
US20190150854A1 (en) Method for detecting biometric information and electronic device using same
WO2017026731A1 (en) Activity information processing method and electronic device supporting the same
KR102620178B1 (en) Electronic device and operating method thereof
KR102223376B1 (en) Method for Determining Data Source
CN109718112B (en) Medication reminding method and device and computer readable storage medium
KR20180047654A (en) Method for recognizing user activity and electronic device for the same
KR20150099019A (en) Electronic device and method for controlling an input-output device
KR20160035394A (en) Method and apparatus for processing sensor data
KR20160015785A (en) Apparatus and method for improving accuracy of contactless thermometer module
KR20180091589A (en) Method for providing skin information and electronic device supporting the same
CN110604579B (en) Data acquisition method, device, terminal and storage medium
CN109683703A (en) A kind of display control method, terminal and computer readable storage medium
JP2014142851A (en) Electronic apparatus, line-of-sight input program, and line-of-sight input method
CN108595000A (en) Screen luminance adjustment method and device
KR20150082045A (en) Electronic device and photoplethysmography method
CN111445413A (en) Image processing method, image processing device, electronic equipment and storage medium
KR20170076500A (en) Method, storage medium and electronic device for performing function based on biometric signal
CN112022081B (en) Method for detecting eyesight, terminal equipment and computer readable storage medium
CN108307031B (en) Screen processing method, device and storage medium
CN113010066B (en) Display parameter determination method and device
CN112202970A (en) Friend making method, terminal equipment and computer readable storage medium
WO2021135932A1 (en) Data acquisition method, terminal device, and storage medium
WO2016037354A1 (en) Wearable device and data acquisition method thereof
CN111614841B (en) Alarm clock control method and device, storage medium and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant