(19)
(11)EP 3 683 614 A1

(12)EUROPEAN PATENT APPLICATION
published in accordance with Art. 153(4) EPC

(43)Date of publication:
22.07.2020 Bulletin 2020/30

(21)Application number: 18874723.2

(22)Date of filing:  13.06.2018
(51)International Patent Classification (IPC): 
G02B 27/01(2006.01)
(86)International application number:
PCT/CN2018/091076
(87)International publication number:
WO 2019/085487 (09.05.2019 Gazette  2019/19)
(84)Designated Contracting States:
AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR
Designated Extension States:
BA ME
Designated Validation States:
KH MA MD TN

(30)Priority: 30.10.2017 CN 201711038481

(71)Applicant: Huawei Technologies Co., Ltd.
Longgang District Shenzhen, Guangdong 518129 (CN)

(72)Inventor:
  • LIU, Mu
    Shenzhen Guangdong 518129 (CN)

(74)Representative: Maiwald Patent- und Rechtsanwaltsgesellschaft mbH 
Elisenhof Elisenstraße 3
80335 München
80335 München (DE)

  


(54)DISPLAY APPARATUS AND METHOD AND DEVICE FOR ADJUSTING IMAGE DISPLAY OF THE DISPLAY APPARATUS


(57) A display device, and a method and an apparatus for adjusting image presence on a display device are disclosed, and belong to the field of display devices. The display device includes a display device body (201). The display device body (201) includes a first lens barrel (2011) and a second lens barrel (2012). A first lens (2013) is disposed at a first end of the first lens barrel (2011), and a second lens (2014) is disposed at a first end of the second lens barrel (2012). A first distance sensor (202) and a second distance sensor (203) are further disposed on the display device body (201). The first distance sensor (202) and the second distance sensor (203) are symmetrically disposed on two sides of a longitudinal central axis of the display device body (201). The first distance sensor (202) is configured to measure a distance between a left eyeball and the first lens (2013). The second distance sensor (203) is configured to measure a distance between a right eyeball and the second lens (2014). Two distance sensors (202, 203) are disposed on the display device body (201). This helps obtain a high-precision interpupillary distance.




Description


[0001] This application claims priority to the Chinese Patent Application No. 201711038481.5, filed with the China National Intellectual Property Administration on October 30, 2017 and entitled "DISPLAY DEVICE, AND METHOD AND APPARATUS FOR ADJUSTING IMAGE PRESENCE ON DISPLAY DEVICE", which is incorporated herein by reference in its entirety.

TECHNICAL FIELD



[0002] This disclosure relates to the field of display devices, and in particular, to a display device, and a method and an apparatus for adjusting image presence on a display device.

BACKGROUND



[0003] As a virtual reality technology and an augmented reality technology develop, display devices such as a virtual reality helmet and virtual reality glasses emerge in succession. A user may wear a display device. The display device displays an image, and the user may see the image through a lens in the display device, to experience a virtual or augmented world. A position of the lens usually needs to be adjusted to achieve a clear watching effect, so that a lens center is aligned to a pupil center in a horizontal direction and in a vertical direction.

[0004] In related technologies, a display device obtains a left pupil image of a user and a right pupil image of the user, determines coordinates of a left pupil and coordinates of a right pupil, calculates an interpupillary distance based on the two pairs of coordinates, and adjusts positions of a left lens and a right lens based on the obtained interpupillary distance, so that both a distance between the left lens and a central axis of the display device and a distance between the right lens and the central axis of the display device are half the interpupillary distance. The interpupillary distance is a distance between a center point of the left pupil and a center point of the right pupil. Specifically, referring to FIG 1, a center point O of two eyes is defined as an origin, and a direction of an axis x is a horizontal direction. A distance |OB| between a leftmost position B of a right pupil and the origin and a distance |OB'| between a rightmost position B' of the right pupil and the origin are obtained. Likewise, a distance |OA| between a leftmost position A of a left pupil and the origin and a distance |OA'| between a rightmost position A' of the left pupil and the origin are obtained. Calculation is performed by using the following formula, to obtain an interpupillary distance (ipd), and a distance between a left lens and a central axis and a distance between a right lens and the central axis are adjusted to ipd/2:



[0005] In a process of implementing this disclosure, the inventor finds that related technologies have at least the following problems:
distances between pupils of users and the display device may be different due to a wearing habit difference of the users, and consequently, sizes of photographed pupil images are different, a measured interpupillary distance has relatively low precision, and a clear watching effect cannot be achieved when a position of a lens is adjusted based on the interpupillary distance with such low precision.

SUMMARY



[0006] Embodiments of this disclosure provide a display device, and a method and an apparatus for adjusting image presence on a display device, to resolve a problem in related technologies that a measured interpupillary distance has relatively low precision. The technical solutions are as follows:

[0007] According to a first aspect, a display device is provided, where the display device includes a display device body, the display device body includes a first lens barrel and a second lens barrel, a first lens is disposed at a first end of the first lens barrel, and a second lens is disposed at a first end of the second lens barrel;
a first distance sensor and a second distance sensor are further disposed on the display device body;
the first distance sensor and the second distance sensor are symmetrically disposed on two sides of a longitudinal central axis of the display device body;
the first distance sensor is configured to measure a distance between a left eyeball and the first lens; and
the second distance sensor is configured to measure a distance between a right eyeball and the second lens.

[0008] According to the display device provided in this embodiment, two distance sensors are disposed on the display device body, the first distance sensor measures the distance between the left eyeball and the first lens, and the second distance sensor measures the distance between the right eyeball and the second lens, so that after a left pupil image and a right pupil image are separately normalized based on the two distances, impact of a distance between a pupil and the display device can be canceled. This helps obtain a high-precision interpupillary distance, and after a position of a lens is adjusted based on the high-precision interpupillary distance, a clear watching effect can be achieved.

[0009] In a possible design, the first distance sensor is disposed in an edge region at the first end of the first lens barrel, and the second distance sensor is disposed in an edge region at the first end of the second lens barrel.

[0010] In a possible design, the first distance sensor is disposed at an intersecting point that is close to the longitudinal central axis in two intersecting points of the edge region at the first end of the first lens barrel and a traverse central axis of the display device body; and
the second distance sensor is disposed at an intersecting point that is close to the longitudinal central axis in two intersecting points of the edge region at the first end of the second lens barrel and the traverse central axis of the display device body.

[0011] In this possible design, the distances measured by the first distance sensor and the second distance sensor are actually distances between inner eye corners and corresponding distance sensors. This ensures that the measured distances are not affected by different depths of eye sockets of users, and improves accuracy of the measured distances.

[0012] In a possible design, the first distance sensor is disposed on an outer side of the edge region at the first end of the first lens barrel, and the second distance sensor is disposed on an outer side of the edge region at the first end of the second lens barrel.

[0013] In a possible design, the first distance sensor is disposed on a first vertical line, and the first vertical line is a straight line that is parallel to the longitudinal central axis and that is through a lens center of the first lens; and
the second distance sensor is disposed on a second vertical line, and the second vertical line is a straight line that is parallel to the longitudinal central axis and that is through a lens center of the second lens.

[0014] In a possible design, a light emitting diode (Light Emitting Diode, LED) unit is disposed in the edge region at the first end of the first lens barrel, and an LED unit is disposed in the edge region at the first end of the second lens barrel.

[0015] According to a second aspect, a method for adjusting image presence on a display device is provided, where the method includes:

obtaining a first image and a second image, where the first image includes a left eyeball image of a user, and the second image includes a right eyeball image of the user;

obtaining a first distance between a first lens and a left eyeball of the user, where the first lens is a lens that is closest to the left eyeball of the user in all lenses of the display device;

obtaining a second distance between a second lens and a right eyeball of the user, where the second lens is a lens that is closest to the right eyeball of the user in all the lenses of the display device;

separately normalizing the first image and the second image based on the first distance and the second distance;

calculating an interpupillary distance between the left eyeball of the user and the right eyeball of the user based on a normalized first image and a normalized second image; and

adjusting the first lens and/or the second lens based on the interpupillary distance of the user.



[0016] According to the method provided in this embodiment, the first image and the second image are separately normalized based on the first distance between the first lens and the left eyeball and the second distance between the second lens and the right eyeball. For both the normalized first image and the normalized second image, impact caused by different distances between pupils of users and the display device is canceled. Therefore, the interpupillary distance calculated based on the normalized first image and the normalized second image does not have an error that is generated due to the different distances between the pupils of the users and the display device, and has relatively high precision. When a position of a lens is adjusted based on the interpupillary distance with such high precision, a clear watching effect can be achieved.

[0017] In a possible design, the separately normalizing the first image and the second image based on the first distance and the second distance includes:

calculating a ratio of the first distance to a preset reference distance, to obtain a first scaling coefficient, where the preset reference distance is a distance between the first lens and the left eyeball of the user when a pupil image with a preset size is obtained, or a distance between the second lens and the right eyeball of the user when the pupil image with the preset size is obtained;

calculating a ratio of the second distance to the preset reference distance, to obtain a second scaling coefficient;

scaling the first image by using the first scaling coefficient; and

scaling the second image by using the second scaling coefficient.



[0018] In a possible design, the separately normalizing the first image and the second image based on the first distance and the second distance includes:

detecting a wear status of the display device based on the first distance and the second distance, or detecting a wear status of the display device based on the first image and the second image; and

when it is determined that the display device is worn normally, separately normalizing the first image and the second image based on the first distance and the second distance.



[0019] In this possible design, the wear status of the display device is detected, and then a position of a lens is adjusted when the display device is worn normally, so as to avoid a problem that an inaccurate interpupillary distance is measured because the display device is worn aslant.

[0020] In a possible design, the detecting a wear status of the display device based on the first distance and the second distance includes:

calculating a difference between the first distance and the second distance; and

when the difference is less than a first preset difference, determining that the display device is worn normally.



[0021] In a possible design, the detecting a wear status of the display device based on the first image and the second image includes:
when point coordinates of a pupil center in the first image belong to a preset range of the first image, and point coordinates of a pupil center in the second image belong to a preset range of the second image, determining that the display device is worn normally.

[0022] In a possible design, the detecting a wear status of the display device based on the first image and the second image includes:

calculating a distance between point coordinates of a pupil center in the first image and a reference position in the first image, to obtain a third distance;

calculating a distance between point coordinates of a pupil center in the second image and a reference position in the second image, to obtain a fourth distance; and

when a difference between the third distance and the fourth distance is less than a second preset difference, determining that the display device is worn normally.



[0023] In a possible design, after the detecting a wear status of the display device based on the first distance and the second distance, or detecting a wear status of the display device based on the first image and the second image, the method further includes:
when it is determined that the display device is worn abnormally, prompting, in a preset prompt manner, the user to re-wear the display device.

[0024] In this possible design, the user is prompted in the preset prompt manner to re-wear the display device. This can guide the user to correctly wear the display device, and is more humanized.

[0025] In a possible design, the separately normalizing the first image and the second image based on the first distance and the second distance includes:

detecting an eye-open status of the user based on the first distance, the second distance, the first image, and the second image; and

when it is determined that the eye-open status is normal, separately normalizing the first image and the second image based on the first distance and the second distance.



[0026] In this possible design, the eye-open status of the user is detected, and then a position of a lens is adjusted when the eye-open status is normal, so as to avoid a problem that an inaccurate interpupillary distance is measured during image photographing due to a case in which the eye-open status is abnormal, for example, the user closes an eye.

[0027] In a possible design, the detecting an eye-open status of the user based on the first distance, the second distance, the first image, and the second image includes:

calculating a ratio of a left pupil diameter to a preset pupil diameter, to obtain a first specified coefficient; and calculating a ratio of a right pupil diameter to the preset pupil diameter, to obtain a second specified coefficient, where the preset pupil diameter is a pupil diameter detected when the distance between the first lens and the left eyeball of the user is a preset reference distance and the eye-open status is normal, or the preset pupil diameter is a pupil diameter detected when the distance between the second lens and the right eyeball of the user is the preset reference distance and the eye-open status is normal, the left pupil diameter is determined based on the first image, and the right pupil diameter is determined based on the second image; and

when both a difference between the first scaling coefficient and the first specified coefficient and a difference between the second scaling coefficient and the second specified coefficient are less than a third preset difference, determining that the eye-open status is normal, where the first scaling coefficient is a ratio of the first distance to the preset reference distance, and the second scaling coefficient is a ratio of the second distance to the preset reference distance.



[0028] In a possible design, the preset pupil diameter is an average value of sample pupil diameters obtained through detection based on a plurality of first image samples or a plurality of second image samples obtained by the display device.

[0029] In a possible design, after the calculating an interpupillary distance between the left eyeball of the user and the right eyeball of the user based on a normalized first image and a normalized second image, the method further includes:

obtaining a user identity of the user; and

storing a correspondence between the user identity and the interpupillary distance of the user.



[0030] In this possible design, after the interpupillary distance is obtained through measurement, the correspondence between the user identity and the interpupillary distance of the user may be stored, so that when the user wears the display device next time, the interpupillary distance, corresponding to the user identity, of the user can be directly obtained from the correspondence, and the interpupillary distance of the user does not need to be re-obtained. This helps quickly obtain the interpupillary distance, quickly adjust a distance between the lenses, save time, and improve efficiency.

[0031] According to a third aspect, an apparatus for adjusting image presence on a display device is provided. The apparatus includes a plurality of function modules, to implement the method for adjusting image presence on a display device according to any one of the second aspect or the possible designs of the second aspect.

[0032] According to a fourth aspect, a computer readable storage medium is provided. The computer readable storage medium stores an instruction. The instruction is executed by a processor to perform the method for adjusting image presence on a display device according to any one of the second aspect or the possible designs of the second aspect.

BRIEF DESCRIPTION OF DRAWINGS



[0033] 

FIG 1 is a schematic diagram of a method for adjusting image presence on a display device provided in related technologies;

FIG 2 is a schematic structural diagram of a display device according to an embodiment of this disclosure;

FIG 3 is a schematic structural diagram of a display device according to an embodiment of this disclosure;

FIG 4 is a schematic structural diagram of a display device according to an embodiment of this disclosure;

FIG 5 is a schematic structural diagram of a display device according to an embodiment of this disclosure;

FIG 6 is a schematic structural diagram of a display device according to an embodiment of this disclosure;

FIG. 7 is a schematic structural diagram of a display device according to an embodiment of this disclosure;

FIG. 8 is a schematic structural diagram of a display device according to an embodiment of this disclosure;

FIG. 9 is a schematic structural diagram of a display device according to an embodiment of this disclosure;

FIG. 10 is a flowchart of a method for adjusting image presence on a display device according to an embodiment of this disclosure;

FIG. 11 is a schematic diagram of a method for adjusting image presence on a display device according to an embodiment of this disclosure; and

FIG. 12 is a block diagram of an apparatus for adjusting image presence on a display device according to an embodiment of this disclosure.


DESCRIPTION OF EMBODIMENTS



[0034] To make the objectives, technical solutions, and advantages of this disclosure clearer, the following further describes the embodiments of this disclosure in detail with reference to the accompanying drawings.

[0035] FIG. 2 is a schematic structural diagram of a display device according to an embodiment of this disclosure. The display device is a head-mounted display device, and may be a virtual reality device, for example, a virtual reality helmet or virtual reality glasses, or may be an augmented reality device, for example, an augmented reality helmet.

[0036] Referring to FIG. 2, the display device includes a display device body 201, and a first distance sensor 202 and a second distance sensor 203 are disposed on the display device body 201. The display device body 201 includes a first lens barrel 2011 and a second lens barrel 2012, a first lens 2013 is disposed at a first end of the first lens barrel 2011, and a second lens 2014 is disposed at a first end of the second lens barrel 2012. Optionally, the display device body 201 may further include a first camera module, a second camera module, a first motor, a second motor, a display screen, and a processor. In addition, the display device body 201 may further include another component configured to implement a display function.

(1) First lens barrel 2011 and second lens barrel 2012



[0037] The first lens barrel 2011 and the second lens barrel 2012 each include two opposite ends. To distinguish between descriptions, herein, an end that faces a user on the display device when the display device is worn normally is referred to as a first end. The first lens 2013 is fixed in an edge region at the first end of the first lens barrel 2011, and the second lens 2014 is fixed in an edge region at the first end of the second lens barrel 2012.

[0038] The fixing manner may include the following two designs. A manner of fixing the first lens 2013 in the edge region of the first lens barrel 2011 is used as an example for description below, and a manner of fixing the second lens 2014 in the edge region of the second lens barrel 2012 is similar.

[0039] In a first possible design, the edge region at the first end of the first lens barrel 2011 may be a lens cap of the first lens barrel 2011. The edge region is tightly engaged with the first lens 2013, so that the first lens 2013 is fastened at the first end of the first lens barrel 2013. A plurality of screws may be disposed in the edge region. The plurality of screws pass through the edge region, and are inserted into a plurality of through-holes on an outer edge of the first lens 2013, so that is fixed to the first lens 2013. For another example, the edge region may be fixed to the first lens 2013 by using glue or in a welding manner.

[0040] In a second possible design, the edge region at the first end of the first lens barrel 2011 may be an edge at the first end of the first lens barrel 2011. An inner wall of the edge region tightly fits the outer edge of the first lens 2013. The first lens 2013 is clutched inside the edge region and fixed to the edge region, to prevent the first lens 2013 from slipping off from the edge region. The inner wall of the edge region may be fixed and connected to the outer edge of the first lens 2013 by using glue or a screw or in a welding manner.

(2) First lens 2013 and second lens 2014



[0041] The first lens 2013 may be a lens with a positive focal length or a lens with a negative focal length. The first lens 2013 may include a first lens surface and a second lens surface. The first lens surface faces the first end, and may face a left eye of the user when the display device is worn normally. The first lens surface may be a convex surface, and a convex direction is towards the first end. The second lens surface is opposite to the first lens surface, and faces the interior of the display device when the display device is worn normally. The second lens surface may be a concave surface, and a concave direction is also towards the first end. Alternatively, both the first lens surface and the second lens surface may be convex surfaces. Alternatively, the first lens surface may be a concave surface, and the second lens surface may be a convex surface.

[0042] The second lens 2014 is similar to the first lens 2013. To be specific, the second lens 2014 may include a third lens surface and a fourth lens surface. The third lens surface faces the first end, and may face a right eye of the user when the display device is worn normally. The third lens surface may be a convex surface, and a convex direction is towards the first end. The fourth lens surface is opposite to the third lens surface, and faces the interior of the display device when the display device is worn normally. The fourth lens surface may be a concave surface, and a concave direction is also towards the first end. Alternatively, both the first lens surface and the second lens surface may be convex surfaces. Alternatively, the first lens surface may be a concave surface, and the second lens surface may be a convex surface.

(3) First distance sensor 202 and second distance sensor 203



[0043] The first distance sensor 202 and the second distance sensor 203 are symmetrically disposed on two sides of a longitudinal central axis of the display device body 201. The longitudinal central axis is a central axis of the display device in a vertical direction. The symmetrical disposing means that the first distance sensor 202 and the second distance sensor 203 are respectively disposed on a left side and a right side of the longitudinal central axis. A distance between the first distance sensor 202 and the longitudinal central axis may be equal to a distance between the second distance sensor 203 and the longitudinal central axis.

[0044] The first distance sensor 202 may be disposed on the left side of the longitudinal central axis, and configured to measure a distance between a left eyeball and the first lens 2013. The first distance sensor 202 may be a distance sensor that measures a distance with relatively high precision, namely, a high-precision distance sensor, for example, a laser distance sensor, an infrared distance sensor, or a microwave distance sensor. The second distance sensor 203 may be disposed on the right side of the longitudinal central axis, and configured to measure a distance between a right eyeball and the second lens 2014. The second distance sensor 203 may also be a high-precision distance sensor, for example, a laser distance sensor, an infrared distance sensor, or a microwave distance sensor.

[0045] For details about a specific manner of disposing the first distance sensor 202 and the second distance sensor 203 on the display device body 201, refer to the following two designs.

[0046] In a first possible design, referring to FIG. 3, the first distance sensor 202 is disposed in the edge region at the first end of the first lens barrel 2011, and the second distance sensor 203 is disposed in the edge region at the first end of the second lens barrel 2012.

[0047] In this design, the two distance sensors are separately disposed in the edge regions of the two lens barrels. A distance between the first distance sensor 202 and a lens center of the first lens 2013 is equal to a radius of the first lens 2013, and a distance between the second distance sensor 203 and a lens center of the second lens 2014 is equal to a radius of the second lens 2014.

[0048] The first distance sensor 202 may be disposed at any position in the edge region at the first end of the first lens barrel 2011, and the second distance sensor 203 may be disposed at any position in the edge region at the first end of the second lens barrel 2012, provided that it is ensured that the first distance sensor 202 and the second distance sensor 203 are symmetrically disposed relative to the longitudinal central axis.

[0049] In this design, the following two specific manners are provided to ensure that a distance measured by a distance sensor has relatively high accuracy.

[0050] In a manner 1, the first distance sensor 202 is disposed at an intersecting point that is close to the longitudinal central axis in two intersecting points of the edge region at the first end of the first lens barrel 2011 and a traverse central axis of the display device body 201, and the second distance sensor 203 is disposed at an intersecting point that is close to the longitudinal central axis in two intersecting points of the edge region at the first end of the second lens barrel 2012 and the traverse central axis of the display device body 201.

[0051] Referring to FIG. 4, the edge region at the first end of the first lens barrel 2011 and the traverse central axis have two intersecting points. The first distance sensor 202 may be disposed at an intersecting point that is close to the longitudinal central axis in the two intersecting points, and the first distance sensor 202 may be disposed at a position that is closest to the longitudinal central axis in all positions in the edge region at the first end of the first lens barrel 2011. Likewise, the edge region at the first end of the second lens barrel 2012 and the traverse central axis also have two intersecting points. The second distance sensor 203 may be disposed at an intersecting point that is close to the longitudinal central axis in the two intersecting points, and the second distance sensor 203 may be disposed at a position that is closest to the longitudinal central axis in all positions in the edge region at the first end of the second lens barrel 2012.

[0052] When the display device is worn normally, the first distance sensor 202 is located right ahead of an inner eye corner of the left eye of the user, and the measured distance is actually a distance between the inner eye corner of the left eye and the first distance sensor 202. Because a center of the first distance sensor 202 is located on a same vertical plane as the lens center of the first lens 2013, and the inner eye corner of the left eye is located on a same vertical plane as a pupil center of the left eye, the distance measured by the first distance sensor 202 is a distance between the pupil center of the left eye and the lens center of the first lens 2013. Likewise, the second distance sensor 203 is located right ahead of an inner eye corner of the right eye of the user, and measures a distance between the inner eye corner of the right eye and the second distance sensor 203. Because a center of the second distance sensor 203 is located on a same vertical plane as the center of the second lens 2014, and the inner eye corner of the right eye is located on a same vertical plane as a pupil center of the right eye, the distance measured by the second distance sensor 203 is a distance between the pupil center of the right eye and the lens center of the second lens 2014.

[0053] Based on this disposing manner, it can be ensured that the distance measured by the first distance sensor 201 is the accurate distance between the left eyeball and the first lens 2013, and that the distance measured by the second distance sensor 203 is the accurate distance between the right eyeball and the second lens 2014. In this way, when a position of a lens is adjusted based on such an accurate distance, a distance between the first lens 201 and the second lens 2013 quite matches an interpupillary distance of the user, thereby ensuring a clear watching effect. In addition, for users who have different depths of eye sockets, a distance measured by any distance sensor is actually a distance between an inner eye corner and the distance sensor, and the distance is not affected by the depths of the eye sockets. Therefore, when a user who has relatively deep eye sockets wears the display device, a case in which the distance sensor measures a relatively long distance, that is, the distance is greater than an actual distance between an eyeball and a lens, is avoided; and when a user who has relatively shallow eye sockets wears the display device, a case in which the distance sensor measures a relatively short distance, that is, the distance is less than an actual distance between an eyeball and a lens, is also avoided.

[0054] In a manner 2, the first distance sensor 202 is disposed on a first vertical line, and the second distance sensor 203 is disposed on a second vertical line.

[0055] Referring to FIG. 5, the first vertical line is a straight line that is parallel to the longitudinal central axis and that is through the lens center of the first lens 2013. The first vertical line and the edge region at the first end of the first lens barrel 2011 have two intersecting points. The first distance sensor 202 may be disposed at an upper intersecting point in the two intersecting points. To be specific, the first distance sensor 202 may be disposed at a position right above the lens center of the first lens 2013, where a distance from the first distance sensor 202 to the lens center is equal to a lens radius. Alternatively, the first distance sensor 202 may be disposed at a lower intersecting point in the two intersecting points. To be specific, the first distance sensor may be disposed at a position right below the lens center of the first lens 2013, where a distance from the first distance sensor to the lens center is equal to the lens radius.

[0056] Likewise, the second vertical line is a straight line that is parallel to the longitudinal central axis and that is through the lens center of the second lens 2014. The second vertical line and the edge region at the first end of the second lens barrel 2012 also have two intersecting points. The first distance sensor 202 may be disposed at an upper intersecting point in the two intersecting points, or disposed at a lower intersecting point in the two intersecting points.

[0057] It should be noted that, referring to FIG. 6, the display device body 201 may further include LED units 205. The two distance sensors may be actually disposed on the LED units 205. An LED unit 205 may be disposed in the edge region at the first end of the first lens barrel 2011. The LED unit 205 includes a plurality of LEDs. The plurality of LEDs form an LED ring that is centered at the lens center of the first lens 2013 and that uses the radius of the first lens 2013 as a radius. The first distance sensor 202 may be disposed on the LED ring. Likewise, an LED unit 205 may also be disposed in the edge region at the first end of the second lens barrel 2012. The second distance sensor 203 may be disposed on the LED unit 205 on the second lens barrel 2012.

[0058] In a second possible design, the first distance sensor 202 is disposed on an outer side of the edge region at the first end of the first lens barrel 2011, and the second distance sensor 203 is disposed on an outer side of the edge region at the first end of the second lens barrel 2012.

[0059] In this design, referring to FIG. 7, the two distance sensors are separately disposed around the edge regions of the two lens barrels. A distance between the first distance sensor 202 and a lens center of the first lens 2013 is greater than a radius of the first lens 2013, and a distance between the second distance sensor 203 and a lens center of the second lens 2014 is greater than a radius of the second lens 2014.

[0060] Optionally, referring to FIG. 8, the first distance sensor 202 may be disposed on a first vertical line. To be specific, the first distance sensor 202 may be disposed at any position right above the lens center of the first lens 2013, where a distance from the first distance sensor 202 to the lens center is greater than the lens radius, or disposed at any position right below the lens center of the first lens 2013, where a distance from the first distance sensor 202 to the lens center is greater than the lens radius. Likewise, the second distance sensor 203 may be disposed on a second vertical line. To be specific, the second distance sensor 203 may be disposed at any position right above the lens center of the second lens 2014, where a distance from the second distance sensor 203 to the lens center is greater than the lens radius, or disposed at any position right below the lens center of the second lens 2014, where a distance from the second distance sensor 203 to the lens center is greater than the lens radius.

[0061] It should be noted that, referring to FIG. 9, the display device body 201 may further include a protection pad 206. The protection pad 206 is configured to protect the first lens barrel 2011 and the second lens barrel 2012, to prevent the first lens barrel 2011 and the second lens barrel 2012 from being damaged due to a bump, and ensure that the user has more comfortable wearing experience when the user wears the display device. The first distance sensor 202 and the second distance sensor 203 may be actually disposed on the protection pad 206.

(4) First camera module and second camera module



[0062] The first camera module may be disposed in the first lens barrel 2011. A focal length and a direction of the first camera module are fixed. In this way, a left eyeball image of the user can be photographed, and the image can be transmitted to the processor. The second camera module may be disposed in the second lens barrel 2012. A focal length and a direction of the second camera module are fixed. In this way, a right eyeball image of the user can be photographed, and the image can be transmitted to the processor.

(5) First motor and second motor



[0063] The first motor is configured to drive, under control of the processor, the first lens 2013 to move, so as to adjust a position of the first lens 2013. The second motor is configured to drive, under control of the processor, the second lens 2014 to move, so as to adjust a position of the first lens 2014. For details about a scheme of adjusting, by the processor, the positions of the first lens 2013 and the second lens 2014, refer to the following embodiment shown in FIG. 10.

(6) Display screen



[0064] The display screen is configured to display an image, to present a virtual or augmented world before eyes of the user. The display screen may be a thin film transistor liquid crystal display (Liquid Crystal Display, LCD) screen or another type of screen.

[0065] In related technologies, only one distance sensor is disposed on the display device, and configured to detect an obstacle in a specified range, to detect whether a user has worn the display device, so that the processor determines, based on a detection result, whether to start the display device. After the display device is started, the processor obtains an interpupillary distance based only on photographed pupil images, and further adjusts a position of a lens based on the interpupillary distance. The interpupillary distance is affected by a distance between a pupil and the display device, and has relatively low precision. Consequently, after the position of the lens is adjusted, a clear watching effect probably cannot be achieved.

[0066] According to the display device provided in this embodiment, two distance sensors are disposed on the display device body, the first distance sensor measures the distance between the left eyeball and the first lens, and the second distance sensor measures the distance between the right eyeball and the second lens, so that after a left pupil image and a right pupil image are separately normalized based on the two distances, impact of a distance between a pupil and the display device can be canceled. This helps obtain a high-precision interpupillary distance, and after a position of a lens is adjusted based on the high-precision interpupillary distance, a clear watching effect can be achieved.

[0067] Further, the first distance sensor may be disposed at the intersecting point that is close to the longitudinal central axis in the two intersecting points of the edge region at the first end of the first lens barrel and the traverse central axis of the display device body. The second distance sensor may be disposed at the intersecting point that is close to the longitudinal central axis in the two intersecting points of the edge region at the first end of the second lens barrel and the traverse central axis of the display device body. In this case, the distances measured by the first distance sensor and the second distance sensor are actually the distances between the inner eye corners and the corresponding distance sensors. This ensures that the measured distances are not affected by the different depths of the eye sockets of the users, and improves accuracy of the measured distances.

[0068] In an example embodiment, a computer readable storage medium, for example, a memory including an instruction, is further provided. The instruction may be executed by a processor in an electronic device, to perform a method for adjusting image presence on a display device in the following embodiment. For example, the computer readable storage medium may be a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, or the like.

[0069] FIG. 10 is a flowchart of a method for adjusting image presence on a display device according to an example embodiment. The method is performed by the processor in the display device described in the foregoing embodiments. As shown in FIG. 10, the following steps are included.

[0070] 1001. The processor obtains a first image and a second image.

[0071] This embodiment is described by using an example in which an image including a left eyeball of a user is referred to as a first image, and an image including a right eyeball of the user is referred to as a second image. When receiving a photographing instruction, the processor may photograph the left eyeball of the user by using a first camera module, to obtain the first image; and photograph the right eyeball of the user by using a second camera module, to obtain the second image. The photographing instruction may be triggered by an operation of wearing the display device, or triggered by an operation of starting the display device.

[0072] Optionally, before obtaining the first image and the second image, the display device may play a virtual perspective image, to guide a sight of the user towards a direct front direction, so as to ensure that both a left pupil and a right pupil of the user directly face the display device.

[0073] 1002. The processor obtains a first distance between a first lens and the left eyeball of the user.

[0074] 1003. The processor obtains a second distance between a second lens and the right eyeball of the user.

[0075] The processor may measure a distance between the first lens and the left eyeball of the user by using a first distance sensor, to obtain the first distance; and measure a distance between the second lens and the right eyeball of the user by using a second distance sensor, to obtain the second distance. The first lens is a lens that is closest to the left eyeball of the user in all lenses of the display device, and the second lens is a lens that is closest to the right eyeball of the user in all the lenses of the display device. For details about specific positions of the first lens and the second lens, refer to the foregoing embodiments in FIG. 2 to FIG. 9.

[0076] 1004. The processor detects a wear status of the display device.

[0077] The processor may detect the wear status of the display device based on the first distance and the second distance. For details, refer to the following first possible design. Alternatively, the processor may detect the wear status of the display device based on the first image and the second image. For details, refer to the following second possible design or third possible design.

[0078] In the first possible design, the processor may calculate a difference between the first distance and the second distance, and when the difference is less than a first preset difference, determine that the display device is worn normally.

[0079] After calculating the difference between the first distance and the second distance, the processor may determine whether the difference is less than the first preset difference, to determine whether the display device is worn normally. The first preset difference is used to indicate a maximum difference between the first distance and the second distance when the display device is worn normally, and the first preset difference may be pre-stored in the display device.

[0080] When the difference is less than the first preset difference, it may be considered that the first distance approaches the second distance. In other words, the distance between the left eyeball and the first lens is approximately equal to the distance between the right eyeball and the second lens. A direction of a line joining the two lenses is roughly parallel to a direction of a line joining two eyes. In other words, the two lenses are located on a same horizontal line. In this case, it may be determined that the display device is worn normally.

[0081] When the difference is not less than the first preset difference, it may be considered that the first distance and the second distance differ greatly. In other words, the distance between the left eyeball and the first lens and the distance between the right eyeball and the second lens differ greatly. An offset occurs between the direction of the line joining the two lenses and the direction of the line joining the two eyes. In other words, the two lenses are not located on a same horizontal line. In this case, it may be determined that the display device is worn aslant. When the first distance is greater than the second distance, and the difference is not less than the first preset difference, it indicates a slant case in which the first lens is in front and the second lens is at back. When the first distance is less than the second distance, and the difference is not less than the first preset difference, it indicates a slant case in which the first lens is at back and the second lens is in front.

[0082] In the second possible design, when point coordinates of a pupil center in the first image belong to a preset range of the first image, and point coordinates of a pupil center in the second image belong to a preset range of the second image, the processor determines that the display device is worn normally.

[0083] This design may include the following step 1 to step 3.

[0084] Step 1: Obtain the point coordinates of the pupil centers in the two images.

[0085] After obtaining the first image and the second image, the processor may establish a coordinate system for the first image, and perform image recognition on the first image to recognize a position of the pupil center in the coordinate system of the first image, so as to obtain the point coordinates of the pupil center in the coordinate system, that is, point coordinates of a left pupil center. Likewise, after obtaining the second image, the processor may establish a coordinate system for the second image, and perform image recognition on the second image to recognize a position of the pupil center in the coordinate system of the second image, so as to obtain the point coordinates of the pupil center in the coordinate system, that is, point coordinates of a right pupil center.

[0086] Step 2: Determine whether the point coordinates of the left pupil center belong to the preset range of the first image; and when the point coordinates of the left pupil center belong to the preset range of the first image, perform step 3; or when the point coordinates of the left pupil center do not belong to the preset range of the first image, determine that the display device is worn abnormally.

[0087] After obtaining the point coordinates of the pupil center in the first image, the processor may obtain the preset range of the first image, and determine whether the point coordinates belong to the preset range of the first image. When the point coordinates of the pupil center in the first image belong to the preset range of the first image, it indicates that the position of the left pupil center is normal. In other words, the display device is worn normally for the left eye. When the point coordinates of the pupil center in the first image do not belong to the preset range of the first image, it indicates that the left pupil center is not located at a correct position. In other words, the display device is worn abnormally for the left eye. In this case, the processor may determine that the display device is worn aslant. The preset range of the first image is used to indicate a range in which the point coordinates of the pupil center in the photographed image of the left eyeball fall when the display device is worn normally. The preset range of the first image may be pre-stored in the display device.

[0088] In a possible design, determining whether the point coordinates of the pupil center in the first image belong to the preset range of the first image may be implemented by determining whether the point coordinates meet the following formula:



where x1 indicates a horizontal coordinate of the point coordinates of the pupil center in the first image, y1 indicates a vertical coordinate of the point coordinates of the pupil center in the first image, and a value of W may be determined according to an actual precision requirement.

[0089] Step 3: Determine whether the point coordinates of the right pupil center belong to the preset range of the second image; and when the point coordinates of the right pupil center belong to the preset range of the second image, perform step 4; or when the point coordinates of the right pupil center do not belong to the preset range of the second image, determine that the display device is worn abnormally.

[0090] After obtaining the point coordinates of the pupil center in the second image, the processor may obtain the preset range of the second image, and determine whether the point coordinates belong to the preset range of the second image. When the point coordinates of the pupil center in the second image belong to the preset range of the second image, it indicates that the position of the right pupil center is normal. In other words, the display device is worn normally for the right eye. When the point coordinates of the pupil center in the second image do not belong to the preset range of the second image, it indicates that the right pupil center is not located at a correct position. In other words, the display device is worn abnormally for the right eye. In this case, the processor may determine that the display device is worn aslant. The preset range of the second image is used to indicate a range in which the point coordinates of the pupil center in the photographed image of the right eyeball fall when the display device is worn normally. The preset range of the second image may be pre-stored in the display device.

[0091] In a possible design, determining whether the point coordinates of the pupil center in the second image belong to the preset range of the second image may be implemented by determining whether the point coordinates meet the following formula:



where x2 indicates a horizontal coordinate of the point coordinates of the pupil center in the second image, y2 indicates a vertical coordinate of the point coordinates of the pupil center in the second image, and a value of W may be determined according to an actual precision requirement.

[0092] Step 4: Determine that the display device is worn normally.

[0093] To be specific, when the point coordinates of the pupil center in the first image belong to the preset range of the first image, and the point coordinates of the pupil center in the second image belong to the preset range of the second image, that is, when the display device is worn normally for both the left eye and the right eye, the processor determines that the display device is worn normally.

[0094] In the third possible design, when a difference between a distance between point coordinates of a pupil center in the first image and a reference position in the first image, and a distance between point coordinates of a pupil center in the second image and a reference position in the second image is less than a second preset difference, the processor may determine that the display device is worn normally.

[0095] This design may specifically include the following step 1 to step 3.

[0096] Step 1: Obtain the distance between the point coordinates of the pupil center in the first image and the reference position in the first image.

[0097] The processor may establish a coordinate system for the first image, perform image recognition on the first image to recognize a position of the pupil center in the coordinate system of the first image, so as to obtain the point coordinates of the pupil center in the coordinate system, that is, point coordinates of a left pupil center; and use any position in the coordinate system of the first image as the reference position, to obtain point coordinates of the reference position in the coordinate system and calculate a distance between the point coordinates of the left pupil center and the point coordinates of the reference position. The display device may use a center of the first image, namely, an origin of the coordinate system of the first image, as the reference position in the first image.

[0098] Step 2: Obtain the distance between the point coordinates of the pupil center in the second image and the reference position in the second image.

[0099] The processor may establish a coordinate system for the second image, perform image recognition on the second image to recognize a position of the pupil center in the coordinate system of the second image, so as to obtain the point coordinates of the pupil center in the coordinate system, that is, point coordinates of a right pupil center; and use any position in the coordinate system of the second image as the reference position, to obtain point coordinates of the reference position in the coordinate system and calculate a distance between the point coordinates of the right pupil center and the point coordinates of the reference position. The display device may use a center of the second image, namely, an origin of the coordinate system of the second image, as the reference position in the second image.

[0100] It should be noted that, in this design, it is required that the point coordinates of the reference position in the first image be the same as the point coordinates of the reference position in the second image. To be specific, if (M, N) in the coordinate system of the first image is used as the reference position in the first image, (M, N) in the coordinate system of the second image also needs to be used as the reference position in the second image, to ensure that a subsequently calculated difference can correctly reflect the wear status of the display device.

[0101] Step 3: Calculate the difference between the two distances; determine whether the difference is less than the second preset difference; and when the difference is less than the second preset difference, determine that the display device is worn normally; or when the difference is not less than the second preset difference, determine that the display device is worn aslant.

[0102] The distance between the point coordinates of the pupil center in the first image and the reference position in the first image can reflect a relative position relationship between the point coordinates of the left pupil center and the reference position in the first image, the distance between the point coordinates of the pupil center in the second image and the reference position in the second image can reflect a relative position relationship between the point coordinates of the right pupil center and the reference position in the second image, and the point coordinates of the reference position in the first image are also the same as those of the reference position in the second image. Therefore, the difference between the two distances can reflect a position offset between the point coordinates of the left pupil center and the point coordinates of the right pupil center. If the difference is less than the second preset difference, it may be determined that a distance between the left pupil center and a longitudinal central axis is approximately equal to a distance between the right pupil center and the longitudinal central axis, and that a height of the left pupil center is approximately equal to a height of the right pupil center, and it may be determined that the display device is worn normally. If the difference is not less than the second preset difference, it indicates that a case in which the distance between the left pupil center and the longitudinal central axis is different from the distance between the right pupil center and the longitudinal central axis or a case in which the height of the left pupil center is different from the height of the right pupil center may occur, and it may be determined that the display device is worn aslant.

[0103] The second preset difference is used to indicate a maximum difference between the distance between the point coordinates of the pupil center in the first image and the reference position in the first image, and the distance between the point coordinates of the pupil center in the second image and the reference position in the second image. The second preset difference may be determined according to an actual precision requirement, and may be pre-stored in the display device.

[0104] 1005. When determining that the display device is worn abnormally, the processor prompts, in a preset prompt manner, the user to re-wear the display device.

[0105] The preset prompt manner may include displaying a first prompt page, making first prompt voice, and the like. The first prompt page may include text information, picture information, and the like that are used to prompt to re-wear the display device. For example, the text information may be "A current wear manner is wrong. Please re-wear the device." The first prompt voice may be voice for prompting to re-wear the display device. After viewing the first prompt page or hearing the first prompt voice, the user can learn that the display device needs to be re-worn, and re-wear the display device. In this case, the display device performs step 1001 again.

[0106] 1006. The processor detects an eye-open status of the user based on the first distance, the second distance, the first image, and the second image.

[0107] An interpupillary distance of the user needs to be calculated based on the first image and the second image subsequently. If the eye-open status of the user is abnormal, for example, if the user closes an eye during photographing, the interpupillary distance cannot be normally calculated. Therefore, the eye-open status of the user is first detected based on the first distance, the second distance, the first image, and the second image. When the eye-open status is abnormal, step 1007 is performed. When the eye-open status is normal, step 1008 is performed.

[0108] A specific process of detecting whether the eye-open status is normal may include the following step 1 to step 5.

[0109] Step 1: The processor calculates a ratio of a left pupil diameter to a preset pupil diameter, to obtain a first specified coefficient.

[0110] When the processor uses the second possible design or the third possible design in a process of performing step 1004, the processor performs image recognition on the first image. In a process of recognizing the first image, the processor may further recognize the left pupil diameter, and can directly obtain the left pupil diameter in this step. When the processor uses the first possible design in the process of performing step 1004, or does not recognize the left pupil diameter after using the second possible design or the third possible design, the processor needs to perform image recognition on the first image in this step, to obtain the left pupil diameter.

[0111] After obtaining the left pupil diameter, the processor obtains the preset pupil diameter, calculates the ratio of the left pupil diameter to the preset pupil diameter, and uses the ratio as the first specified coefficient. The preset pupil diameter is a pupil diameter detected when the distance between the first lens and the left eyeball of the user is a preset reference distance and the eye-open status is normal. The preset pupil diameter may be pre-obtained by detecting sample images obtained when a plurality of sample users wear the display device, and a specific process of obtaining the preset pupil diameter may include the following three possible designs.

[0112] In a first possible design, when a distance between the first lens and a left eyeball of a sample user is the preset reference distance, and an eye-open status of the sample user is normal, sample images may be collected, to obtain a plurality of first image samples. For each of the plurality of first image samples, a pupil diameter in the sample image is obtained. In this way, sample pupil diameters are obtained, a plurality of sample pupil diameters are obtained, and an average value of the plurality of sample pupil diameters is calculated, as the preset pupil diameter.

[0113] In a second possible design, when a distance between the second lens and a right eyeball of the sample user is the preset reference distance, and the eye-open status of the sample user is normal, sample images are collected, to obtain a plurality of second image samples. For each of the plurality of second image samples, a pupil diameter in the second image sample is obtained. In this way, sample pupil diameters are obtained, a plurality of sample pupil diameters are obtained, and an average value of the plurality of sample pupil diameters is calculated, as the preset pupil diameter.

[0114] In a third possible design, a plurality of sample pupil diameters may be obtained based on a plurality of first image samples, a plurality of sample pupil diameters may be obtained based on a plurality of second image samples, and then an average value of these sample pupil diameters may be calculated, as the preset pupil diameter.

[0115] Step 2: The processor calculates a ratio of a right pupil diameter to the preset pupil diameter, to obtain a second specified coefficient.

[0116] When the processor uses the second possible design or the third possible design in a process of performing step 1004, the processor performs image recognition on the second image. In a process of recognizing the second image, the processor may further recognize the right pupil diameter, and can directly obtain the right pupil diameter in this step. When the processor uses the first possible design in the process of performing step 1004, or does not recognize the right pupil diameter after using the second possible design or the third possible design, the processor needs to perform image recognition on the second image in this step, to obtain the right pupil diameter.

[0117] Step 3: The processor calculates a ratio of the first distance to the preset reference distance, to obtain a first scaling coefficient, and calculates a ratio of the second distance to the preset reference distance, to obtain a second scaling coefficient.

[0118] After obtaining the first scaling coefficient and the second scaling coefficient, the processor may store the first scaling coefficient and the second scaling coefficient, to subsequently perform a normalization process based on the first scaling coefficient and the second scaling coefficient.

[0119] Step 4: The processor calculates a difference between the first scaling coefficient and the first specified coefficient, and calculates a difference between the second scaling coefficient and the second specified coefficient.

[0120] Optionally, the processor may calculate a difference by subtracting the first specified coefficient from the first scaling coefficient, or calculate a difference by subtracting the first scaling coefficient from the first specified coefficient, then calculate an absolute value of the obtained difference, and use the absolute value as the difference between the first scaling coefficient and the first specified coefficient. Likewise, the processor may calculate a difference by subtracting the second specified coefficient from the second scaling coefficient, or calculate a difference by subtracting the second scaling coefficient from the second specified coefficient, then calculate an absolute value of the obtained difference, and use the absolute value as the difference between the second scaling coefficient and the second specified coefficient.

[0121] Step 5: The processor separately determines whether each of the two differences is less than a third preset difference; and when any one of the differences is less than the third preset difference, determines that the eye-open status is abnormal; or when both the differences are less than the third preset difference, determines that the eye-open status is normal.

[0122] A storage device may obtain the third preset difference, determine whether the difference between the first scaling coefficient and the first specified coefficient is less than the third preset difference, and determine whether the difference between the second scaling coefficient and the second specified coefficient is less than the third preset difference. When both the differences are less than the third preset difference, it indicates that both an eye-open status of the left eye and an eye-open status of the right eye are normal. In this case, the display device determines that the eye-open status is normal. The third preset difference is used to indicate a maximum difference between the first scaling coefficient and the first specified coefficient, or used to indicate a maximum difference between the second scaling coefficient and the second specified coefficient. The third preset difference may be determined according to a precision requirement, and may be pre-stored in the display device.

[0123] When the difference between the first scaling coefficient and the first specified coefficient is not less than the third preset difference, it can be learned that one of the following cases may occur: The left eye is closed, the left eye is half-closed, and so on. In other words, the eye-open status of the left eye is abnormal. In this case, the display device determines that the eye-open status is abnormal. When the difference between the second scaling coefficient and the second specified coefficient is not less than the third preset difference, it can be learned that one of the following cases may occur: The right eye is closed, the right eye is half-closed, and so on. In other words, the eye-open status of the right eye is abnormal. In this case, the display device determines that the eye-open status is abnormal.

[0124] 1007. When determining that the eye-open status is abnormal, the processor prompts, in a preset prompt manner, the user to correctly open eyes.

[0125] The preset prompt manner may include displaying a second prompt page, making second prompt voice, and the like. The second prompt page may include text information, picture information, and the like that are used to prompt to correctly open eyes. For example, the text information may be "Please open two eyes and look straight ahead." The second prompt voice is voice for prompting to correctly open eyes. After viewing the second prompt page or hearing the second prompt voice, the user can learn that eyes need to be correctly opened.

[0126] It should be noted that sequences for performing a wear status detection process and performing an eye-open status detection process are not limited in this embodiment. To be specific, the wear status may be detected first, and then the eye-open status is detected when it is determined that the wear status is normal. When it is determined that the wear status is abnormal, no subsequent step needs to be performed, and the user is directly prompted to re-wear the display device. Alternatively, the eye-open status may be detected first, and then the wear status is detected when it is determined that the eye-open status is normal. When it is determined that the eye-open status is abnormal, no subsequent step needs to be performed, and the user is directly prompted to correctly open eyes.

[0127] 1008. When determining that the display device is worn normally and that the eye-open status is normal, the processor separately normalizes the first image and the second image.

[0128] The normalization in this step means that sizes of images photographed at different distances are all adjusted to a size of an image photographed at the preset reference distance. The preset reference distance may be a distance of approximately 15 mm.

[0129] Specifically, if the display device calculates the first scaling coefficient and the second scaling coefficient in step 1005, the display device may obtain the first scaling coefficient and the second scaling coefficient in step 1008, normalize the first image based on the first scaling coefficient, and normalize the second image based on the second scaling coefficient.

[0130] For a specific process of normalizing the first image based on the first scaling coefficient, when the first scaling coefficient is greater than 1, that is, when the first distance is greater than the preset reference distance, it indicates that a distance between the left pupil and the display device is relatively long. In this case, a size of the obtained first image is actually relatively small, and the first scaling coefficient may be used as a magnification proportion of the first image. The first image is magnified proportionally, where a size of a magnified first image is equal to a product of the size of the first image and the first scaling coefficient, and the magnified first image may be used as a normalized first image.

[0131] Likewise, when the first scaling coefficient is less than 1, that is, when the first distance is less than the preset reference distance, it indicates that a distance between the left pupil and the display device is relatively short. In this case, a size of the obtained first image is actually relatively large, and the first scaling coefficient may be used as a reduction proportion of the first image. The first image is reduced proportionally, where a size of a reduced first image is equal to a product of the size of the first image and the first scaling coefficient, and the reduced first image may be used as a normalized first image.

[0132] For a specific process of normalizing the second image based on the second scaling coefficient, when the second scaling coefficient is greater than 1, that is, when the second distance is greater than the preset reference distance, it indicates that a distance between the right pupil and the display device is relatively long. In this case, a size of the obtained second image is actually relatively small, and the second scaling coefficient may be used as a magnification proportion of the second image. The second image is magnified proportionally, where a size of a magnified second image is equal to a product of the size of the second image and the second scaling coefficient, and the magnified second image may be used as a normalized second image.

[0133] Likewise, when the second scaling coefficient is less than 1, that is, when the second distance is less than the preset reference distance, it indicates that a distance between the right pupil and the display device is relatively short. In this case, a size of the obtained second image is actually relatively large, and the second scaling coefficient may be used as a reduction proportion of the second image. The second image is reduced proportionally, where a size of a reduced second image is equal to a product of the size of the second image and the second scaling coefficient, and the reduced second image may be used as a normalized second image.

[0134] First, it should be noted that distances between pupils of users and the display device may be different due to a wearing habit difference of the users, and consequently, sizes of first images and second images that are photographed at different distances are different. In this embodiment, the preset reference distance is set, the first scaling coefficient is calculated based on the preset reference distance and the first distance between the left eyeball and the first lens, and the first image is normalized by using the first scaling coefficient. In this way, sizes of first images photographed at various first distances can be uniformly scaled to the size of the first image photographed at the preset reference distance, and impact of the first distance on the size of the first image is canceled. Likewise, the second scaling coefficient is calculated based on the preset reference distance and the second distance between the right eyeball and the second lens, and the second image is normalized by using the second scaling coefficient. In this way, sizes of second images photographed at various second distances can be uniformly scaled to the size of the second image photographed at the preset reference distance, and impact of the second distance on the size of the second image is canceled.

[0135] In other words, a longer distance between the left pupil and the first lens indicates a smaller first image and a larger first scaling coefficient, namely, a larger magnification proportion of the first image. In this case, impact of a long distance is canceled, and it is ensured that the magnified first image is the first image photographed at the preset reference distance. A shorter distance between the left pupil and the first lens indicates a larger first image and a smaller first scaling coefficient, namely, a smaller reduction proportion of the first image. In this case, impact of a short distance is canceled, and it is ensured that the reduced first image is the first image photographed at the preset reference distance. Likewise, a longer distance between the right pupil and the second lens indicates a smaller second image and a larger second scaling coefficient, namely, a larger magnification proportion of the second image. In this case, impact of a long distance is canceled, and it is ensured that the magnified second image is the second image photographed at the preset reference distance. A shorter distance between the right pupil and the second lens indicates a larger second image and a smaller second scaling coefficient, namely, a smaller reduction proportion of the second image. In this case, impact of a short distance is canceled, and it is ensured that the reduced second image is the second image photographed at the preset reference distance.

[0136] Second, it should be noted that the step of detecting the wear status and the step of detecting the eye-open status are merely optional steps and may not need to be performed. To be specific, the processor may not need to perform step 1004 to step 1007, but directly normalize the first image and the second image after performing step 1001 to step 1003.

[0137] 1009. The processor calculates an interpupillary distance between the left eyeball of the user and the right eyeball of the user based on the normalized first image and the normalized second image.

[0138] Step 1009 may include the following step 1 to step 4.

[0139] Step 1: Obtain point coordinates of a left pupil center in the normalized first image, obtain mapping point coordinates of a center of the first lens in the normalized first image, and calculate a difference between the point coordinates of the left pupil center and the mapping point coordinates, as a first difference.

[0140] For example, referring to FIG. 11, a midpoint between the first lens and the second lens may be used as an origin of a coordinate system, and the longitudinal central axis of the display device is used as an axis y of the coordinate system, to establish the coordinate system. In this case, an absolute value of a horizontal coordinate of any point in the normalized first image is a distance from the point to the longitudinal central axis. Then the left eye pupil in the normalized first image is detected, and the left pupil center is located. A position of the left pupil center in the normalized first image is converted into a position in the coordinate system, to obtain a distance deye1 between the point coordinates of the left pupil center and the axis y. Then a distance dlens1 between the mapping point coordinates of the lens center of the first lens and the axis y is calculated, and a difference δ1 = deye1 - dlens1 between the two distances is calculated.

[0141] Step 2: Obtain point coordinates of a right pupil center in the normalized second image, obtain mapping point coordinates of a center of the second lens in the normalized second image, and calculate a difference between the point coordinates of the right pupil center and the mapping point coordinates, as a second difference.

[0142] A coordinate system may be established in a same manner. The right eye pupil in the normalized second image is detected, and the right pupil center is located. A position of the right pupil center in the normalized second image is converted into a position in the coordinate system, to obtain a distance deye2 between the point coordinates of the right pupil center and an axis y. Then a distance dlens2 between the mapping point coordinates of the lens center of the second lens and the axis y is calculated, and a difference δ2 = deye2 - dlens2 between the two distances is calculated.

[0143] Step 3: Obtain a current distance between the center of the first lens and the center of the second lens.

[0144] Step 4: Calculate a sum of the current distance, the first difference, and the second difference, to obtain the interpupillary distance of the user.

[0145] Assuming that the current distance is d, the interpupillary distance = d + δ1 + δ2.

[0146] It should be noted that impact caused by a value of the first distance has already been canceled for the normalized first image, and impact caused by a value of the second distance has already been canceled for the normalized second image, and the interpupillary distance calculated based on the normalized first image and the normalized second image is an accurate interpupillary distance.

[0147] 1110. The processor adjusts the first lens and/or the second lens based on the interpupillary distance of the user.

[0148] For example, an adjustment direction of the first lens is referred to as a first adjustment direction, an adjustment distance of the first lens is referred to as a first adjustment distance, an adjustment direction of the second lens is referred to as a second adjustment direction, and an adjustment distance of the second lens is referred to as a second adjustment distance. A specific lens adjustment process may be as follows: In step 1 of step 1009, when the first difference is greater than 0, moving inwards may be used as the first adjustment direction; or when the first difference is less than 0, moving outwards may be used as the first adjustment direction; an absolute value of the first difference is used as the first adjustment distance; and the first lens is adjusted based on the first adjustment direction and the first adjustment distance. In step 2 of step 1007, when the second difference is greater than 0, moving inwards may be used as the second adjustment direction; or when the second difference is less than 0, moving outwards may be used as the second adjustment direction; an absolute value of the second difference is used as the second adjustment distance; and the second lens is adjusted based on the second adjustment direction and the second adjustment distance.

[0149] In this case, when the current distance is greater than the interpupillary distance, the first lens and/or the second lens move/moves inwards, so that the current distance between the first lens and the second lens decreases, until the current distance is equal to the interpupillary distance. When the current distance is less than the interpupillary distance, the first lens and/or the second lens move/moves outwards, so that the current distance between the first lens and the second lens increases, until the current distance is equal to the interpupillary distance. In this way, the current distance between the first lens and the second lens is equal to the interpupillary distance, to ensure an effect of clear image presence on the display device.

[0150] Optionally, in step 1 of step 1009, after obtaining the point coordinates of the left pupil center in the normalized first image, the display device may calculate the distance between the point coordinates and the longitudinal central axis of the display device. The distance is approximately equal to a distance between the left pupil center and a nose bridge of the user, and the distance may be used as a left eye pupillary distance. The display device separately determines a first adjustment direction and a first adjustment distance based on the left eye pupillary distance, and further adjusts the first lens. After obtaining the point coordinates of the right pupil center in the normalized second image, the display device may calculate the distance between the point coordinates and the longitudinal central axis of the display device. The distance is approximately equal to a distance between the right pupil center and the nose bridge of the user, and the distance may be used as a right eye pupillary distance. The display device separately determines a second adjustment direction and a second adjustment distance based on the right eye pupillary distance, and further adjusts the second lens. The left eye pupillary distance and the right eye pupillary distance are separately calculated, so that the method provided in this embodiment is also applicable to special populations with a relatively large difference between a left eye pupillary distance and a right eye pupillary distance, thereby improving universality.

[0151] First, it should be noted that, after obtaining the interpupillary distance, the display device may store a correspondence between a user identity and the interpupillary distance, so that when the user wears the display device next time, a position of a lens is directly adjusted based on the stored interpupillary distance, and the interpupillary distance does not need to be re-obtained. The display device may receive an input instruction when displaying a login page, obtain an entered user identity, and query a stored correspondence between the user identity and the interpupillary distance of the user based on the user identity. When the stored correspondence does not include the interpupillary distance, corresponding to the user identity, of the user, the interpupillary distance of the user is obtained by using the foregoing method, and the correspondence between the user identity and the interpupillary distance of the user is further stored. When the stored correspondence includes the interpupillary distance, corresponding to the user identity, of the user, it indicates that the display device has already obtained the interpupillary distance of the user before. In this case, the interpupillary distance, corresponding to the user identity, of the user may be directly obtained from the correspondence, and the interpupillary distance of the user does not need to be re-obtained. This helps quickly obtain the interpupillary distance, quickly adjust the distance between the lenses, save time, and improve efficiency.

[0152] Second, it should be noted that a process of adjusting the first lens and/or the second lens by the processor may be actually implemented by a first motor and a second motor that are included in a display device body. After obtaining, through calculation, the first adjustment direction, the first adjustment distance, the second adjustment direction, and the second adjustment distance, the processor may transfer the first adjustment direction and the first adjustment distance to the first motor, and transfer the second adjustment direction and the second adjustment distance to the second motor. The first motor drives, based on the first adjustment direction and the first adjustment distance, the first lens to move left and right, and the second motor drives, based on the second adjustment direction and the second adjustment distance, the second lens to move left and right, to finally adjust the interpupillary distance.

[0153] In conclusion, an operation procedure of the method for adjusting image presence on a display device provided in this embodiment may be shown as follows, and include the following step S1 to step S4.

[0154] S1. The first camera module obtains a left eyeball image of the user, and the second camera module obtains a right eyeball image of the user.

[0155] S2. The first distance sensor measures a distance between a left eyeball of the user and the first lens, and normalizes, based on the distance, the left eyeball image obtained in step S1. The second distance sensor measures a distance between a right eyeball of the user and the second lens, and normalizes, based on the distance, the right eyeball image obtained in step S1.

[0156] S3. Detect a pupil of the user for a normalized left eyeball image in step S2, locate a left pupil center to obtain point coordinates of the left pupil center, and calculate an adjustment direction and an adjustment distance of the first lens based on a difference between the point coordinates of the left pupil center and mapping point coordinates of the lens center of the first lens in the image; detect a pupil of the user for a normalized right eyeball image in step S2, locate a right pupil center to obtain point coordinates of the right pupil center, and calculate an adjustment direction and an adjustment distance of the second lens based on a difference between the point coordinates of the right pupil center and mapping point coordinates of the lens center of the second lens in the image; and calculate a value of an interpupillary distance.

[0157] S4. Adjust the first lens and the second lens of the display device based on the interpupillary distance of the user that currently uses the display device.

[0158] According to the method provided in this embodiment, the first image and the second image are separately normalized based on the first distance between the first lens and the left eyeball and the second distance between the second lens and the right eyeball. For both the normalized first image and the normalized second image, impact caused by different distances between pupils of users and the display device is canceled. Therefore, the interpupillary distance calculated based on the normalized first image and the normalized second image does not have an error that is generated due to the different distances between the pupils of the users and the display device, and has relatively high precision. When a position of a lens is adjusted based on the interpupillary distance with such high precision, a clear watching effect can be achieved.

[0159] Further, the wear status of the display device is detected, and then a position of a lens is adjusted when the display device is worn normally, so as to avoid a problem that an inaccurate interpupillary distance is measured because the display device is worn aslant.

[0160] Further, when it is determined that the display device is worn abnormally, the user is prompted in the preset prompt manner to re-wear the display device. This can guide the user to correctly wear the display device, and is more humanized.

[0161] Further, the eye-open status of the user is detected, and then a position of a lens is adjusted when the eye-open status is normal, so as to avoid a problem that an inaccurate interpupillary distance is measured during image photographing due to a case in which the eye-open status is abnormal, for example, the user closes an eye.

[0162] Further, after the interpupillary distance is obtained through measurement, the correspondence between the user identity and the interpupillary distance of the user may be stored, so that when the user wears the display device next time, the interpupillary distance, corresponding to the user identity, of the user may be directly obtained from the correspondence, and the interpupillary distance of the user does not need to be re-obtained. This helps quickly obtain the interpupillary distance, quickly adjust the distance between the lenses, save time, and improve efficiency.

[0163] FIG. 12 is a schematic structural diagram of an apparatus for adjusting image presence on a display device according to an example embodiment. As shown in FIG. 12, the apparatus includes an acquiring module 1201, an obtaining module 1202, a normalization module 1203, a calculation module 1204, and an adjustment module 1205.

[0164] The acquiring module 1201 is configured to obtain a first image and a second image.

[0165] The obtaining module 1202 is configured to obtain a first distance and a second distance.

[0166] The normalization module 1203 is configured to normalize the first image and the second image.

[0167] The calculation module 1204 is configured to calculate an interpupillary distance.

[0168] The adjustment module 1205 is configured to adjust a first lens and/or a second lens based on the interpupillary distance.

[0169] In a possible design, the normalization module 1203 is configured to perform step 1008.

[0170] In a possible design, the apparatus further includes a wear status detection module, configured to perform step 1004.

[0171] In a possible design, the apparatus further includes a prompt module, configured to perform step 1005.

[0172] In a possible design, the apparatus further includes an eye-open status detection module, configured to perform step 1006.

[0173] In a possible design, the apparatus further includes a storage module, configured to store a correspondence between the user identity and the interpupillary distance of the user.

[0174] All the foregoing optional technical solutions may be combined in any manner, to form an optional embodiment of this disclosure. Details are not described herein.

[0175] It should be noted that, when the apparatus for adjusting image presence on a display device provided in the foregoing embodiment adjusts image presence on the display device, division of the foregoing function modules is only used as an example for description. During actual application, the foregoing functions may be allocated to and performed by different function modules as required. To be specific, an inner structure of the display device is divided into different function modules, to perform all or some of the foregoing described functions. In addition, the apparatus for adjusting image presence on a display device provided in the foregoing embodiment and the method embodiment for adjusting image presence on a display device belong to a same concept. For details about a specific implementation process, refer to the method embodiment. Details are not described herein again.

[0176] A person of ordinary skill in the art can understand that all or some of the steps of the embodiments may be implemented by hardware or a program instructing related hardware. The program may be stored in a computer readable storage medium. The storage medium may include a read-only memory, a magnetic disk, or a compact disc.

[0177] The foregoing descriptions are merely optional embodiments of this disclosure, but are not intended to limit this disclosure. Any modification, equivalent replacement, or improvement made without departing from the spirit and principle of this disclosure shall fall within the protection scope of this disclosure.


Claims

1. A display device, wherein the display device comprises a display device body, the display device body comprises a first lens barrel and a second lens barrel, a first lens is disposed at a first end of the first lens barrel, and a second lens is disposed at a first end of the second lens barrel;
a first distance sensor and a second distance sensor are further disposed on the display device body;
the first distance sensor and the second distance sensor are symmetrically disposed on two sides of a longitudinal central axis of the display device body;
the first distance sensor is configured to measure a distance between a left eyeball and the first lens; and
the second distance sensor is configured to measure a distance between a right eyeball and the second lens.
 
2. The display device according to claim 1, wherein the first distance sensor is disposed in an edge region at the first end of the first lens barrel, and the second distance sensor is disposed in an edge region at the first end of the second lens barrel.
 
3. The display device according to claim 2, wherein the first distance sensor is disposed at an intersecting point that is close to the longitudinal central axis in two intersecting points of the edge region at the first end of the first lens barrel and a traverse central axis of the display device body; and
the second distance sensor is disposed at an intersecting point that is close to the longitudinal central axis in two intersecting points of the edge region at the first end of the second lens barrel and the traverse central axis of the display device body.
 
4. The display device according to claim 1, wherein the first distance sensor is disposed on an outer side of an edge region at the first end of the first lens barrel, and the second distance sensor is disposed on an outer side of an edge region at the first end of the second lens barrel.
 
5. The display device according to claim 2 or 4, wherein
the first distance sensor is disposed on a first vertical line, and the first vertical line is a straight line that is parallel to the longitudinal central axis and that is through a lens center of the first lens; and
the second distance sensor is disposed on a second vertical line, and the second vertical line is a straight line that is parallel to the longitudinal central axis and that is through a lens center of the second lens.
 
6. The display device according to any one of claims 2 to 5, wherein a light emitting diode LED unit is disposed in the edge region at the first end of the first lens barrel, and an LED unit is disposed in the edge region at the first end of the second lens barrel.
 
7. A method for adjusting image presence on a display device, wherein the method comprises:

obtaining a first image and a second image, wherein the first image comprises a left eyeball image of a user, and the second image comprises a right eyeball image of the user;

obtaining a first distance between a first lens and a left eyeball of the user, wherein the first lens is a lens that is closest to the left eyeball of the user in all lenses of the display device;

obtaining a second distance between a second lens and a right eyeball of the user, wherein the second lens is a lens that is closest to the right eyeball of the user in all the lenses of the display device;

separately normalizing the first image and the second image based on the first distance and the second distance;

calculating an interpupillary distance between the left eyeball of the user and the right eyeball of the user based on a normalized first image and a normalized second image; and

adjusting the first lens and/or the second lens based on the interpupillary distance of the user.


 
8. The method according to claim 7, wherein the separately normalizing the first image and the second image based on the first distance and the second distance comprises:

calculating a ratio of the first distance to a preset reference distance, to obtain a first scaling coefficient, wherein the preset reference distance is a distance between the first lens and the left eyeball of the user when a pupil image with a preset size is obtained, or a distance between the second lens and the right eyeball of the user when the pupil image with the preset size is obtained;

calculating a ratio of the second distance to the preset reference distance, to obtain a second scaling coefficient;

scaling the first image by using the first scaling coefficient; and

scaling the second image by using the second scaling coefficient.


 
9. The method according to claim 7, wherein the separately normalizing the first image and the second image based on the first distance and the second distance comprises:

detecting a wear status of the display device based on the first distance and the second distance, or detecting a wear status of the display device based on the first image and the second image; and

when it is determined that the display device is worn normally, separately normalizing the first image and the second image based on the first distance and the second distance.


 
10. The method according to claim 9, wherein the detecting a wear status of the display device based on the first distance and the second distance comprises:

calculating a difference between the first distance and the second distance; and

when the difference is less than a first preset difference, determining that the display device is worn normally.


 
11. The method according to claim 9, wherein the detecting a wear status of the display device based on the first image and the second image comprises:
when point coordinates of a pupil center in the first image belong to a preset range of the first image, and point coordinates of a pupil center in the second image belong to a preset range of the second image, determining that the display device is worn normally.
 
12. The method according to claim 9, wherein the detecting a wear status of the display device based on the first image and the second image comprises:

calculating a distance between point coordinates of a pupil center in the first image and a reference position in the first image, to obtain a third distance;

calculating a distance between point coordinates of a pupil center in the second image and a reference position in the second image, to obtain a fourth distance; and

when a difference between the third distance and the fourth distance is less than a second preset difference, determining that the display device is worn normally.


 
13. The method according to any one of claims 9 to 12, wherein after the detecting a wear status of the display device based on the first distance and the second distance, or detecting a wear status of the display device based on the first image and the second image, the method further comprises:
when it is determined that the display device is worn abnormally, prompting, in a preset prompt manner, the user to re-wear the display device.
 
14. The method according to claim 7, wherein the separately normalizing the first image and the second image based on the first distance and the second distance comprises:

detecting an eye-open status of the user based on the first distance, the second distance, the first image, and the second image; and

when it is determined that the eye-open status is normal, separately normalizing the first image and the second image based on the first distance and the second distance.


 
15. The method according to claim 14, wherein the detecting an eye-open status of the user based on the first distance, the second distance, the first image, and the second image comprises:

calculating a ratio of a left pupil diameter to a preset pupil diameter, to obtain a first specified coefficient; and calculating a ratio of a right pupil diameter to the preset pupil diameter, to obtain a second specified coefficient, wherein the preset pupil diameter is a pupil diameter detected when the distance between the first lens and the left eyeball of the user is a preset reference distance and the eye-open status is normal, or the preset pupil diameter is a pupil diameter detected when the distance between the second lens and the right eyeball of the user is the preset reference distance and the eye-open status is normal, the left pupil diameter is determined based on the first image, and the right pupil diameter is determined based on the second image; and

when both a difference between the first scaling coefficient and the first specified coefficient and a difference between the second scaling coefficient and the second specified coefficient are less than a third preset difference, determining that the eye-open status is normal, wherein the first scaling coefficient is a ratio of the first distance to the preset reference distance, and the second scaling coefficient is a ratio of the second distance to the preset reference distance.


 
16. The method according to claim 15, wherein the preset pupil diameter is an average value of sample pupil diameters obtained through detection based on a plurality of first image samples or a plurality of second image samples obtained by the display device.
 
17. The method according to claim 7, wherein after the calculating an interpupillary distance between the left eyeball of the user and the right eyeball of the user based on a normalized first image and a normalized second image, the method further comprises:

obtaining a user identity of the user; and

storing a correspondence between the user identity and the interpupillary distance of the user.


 
18. An apparatus for adjusting image presence on a display device, wherein the apparatus comprises:

an acquiring module, configured to obtain a first image and a second image, wherein the first image comprises a left eyeball image of a user, and the second image comprises a right eyeball image of the user;

an obtaining module, configured to obtain a first distance between a first lens and a left eyeball of the user, wherein the first lens is a lens that is closest to the left eyeball of the user in all lenses of the display device, and

the obtaining module is further configured to obtain a second distance between a second lens and a right eyeball of the user, wherein the second lens is a lens that is closest to the right eyeball of the user in all the lenses of the display device;

a normalization module, configured to separately normalize the first image and the second image based on the first distance and the second distance;

a calculation module, configured to calculate an interpupillary distance between the left eyeball of the user and the right eyeball of the user based on a normalized first image and a normalized second image; and

an adjustment module, configured to adjust the first lens and/or the second lens based on the interpupillary distance of the user.


 
19. The apparatus according to claim 18, wherein the normalization module comprises:

a calculation submodule, configured to calculate a ratio of the first distance to a preset reference distance, to obtain a first scaling coefficient, wherein the preset reference distance is a distance between the first lens and the left eyeball of the user when a pupil image with a preset size is obtained, or a distance between the second lens and the right eyeball of the user when the pupil image with the preset size is obtained, and

the calculation submodule is further configured to calculate a ratio of the second distance to the preset reference distance, to obtain a second scaling coefficient; and

a scaling module, configured to scale the first image by using the first scaling coefficient, and

the scaling module is further configured to scale the second image by using the second scaling coefficient.


 
20. The apparatus according to claim 18, wherein the apparatus further comprises:

a wear status detection module, configured to: detect a wear status of the display device based on the first distance and the second distance, or detect a wear status of the display device based on the first image and the second image, wherein

the normalization module is further configured to: when the wear status detection module determines that the display device is worn normally, separately normalize the first image and the second image based on the first distance and the second distance.


 
21. The apparatus according to claim 20, wherein the wear status detection module is further configured to: calculate a difference between the first distance and the second distance; and when the difference is less than a first preset difference, determine that the display device is worn normally.
 
22. The apparatus according to claim 20, wherein the wear status detection module is further configured to: when point coordinates of a pupil center in the first image belong to a preset range of the first image, and point coordinates of a pupil center in the second image belong to a preset range of the second image, determine that the display device is worn normally.
 
23. The apparatus according to claim 20, wherein the wear status detection module is further configured to: calculate a distance between point coordinates of a pupil center in the first image and a reference position in the first image, to obtain a third distance; calculate a distance between point coordinates of a pupil center in the second image and a reference position in the second image, to obtain a fourth distance; and when a difference between the third distance and the fourth distance is less than a second preset difference, determine that the display device is worn normally.
 
24. The apparatus according to any one of claims 18 to 23, wherein the apparatus further comprises:
a prompt module, configured to: when it is determined that the display device is worn abnormally, prompt, in a preset prompt manner, the user to re-wear the display device.
 
25. The apparatus according to claim 18, wherein the apparatus further comprises:

an eye-open status detection module, configured to detect an eye-open status of the user based on the first distance, the second distance, the first image, and the second image, and

the normalization module is further configured to: when it is determined that the eye-open status is normal, separately normalize the first image and the second image based on the first distance and the second distance.


 
26. The apparatus according to claim 25, wherein the eye-open status detection module comprises:

a calculation submodule, configured to: calculate a ratio of a left pupil diameter to a preset pupil diameter, to obtain a first specified coefficient; and calculate a ratio of a right pupil diameter to the preset pupil diameter, to obtain a second specified coefficient, wherein the preset pupil diameter is a pupil diameter detected when the distance between the first lens and the left eyeball of the user is a preset reference distance and the eye-open status is normal, or the preset pupil diameter is a pupil diameter detected when the distance between the second lens and the right eyeball of the user is the preset reference distance and the eye-open status is normal, the left pupil diameter is determined based on the first image, and the right pupil diameter is determined based on the second image; and

a determining submodule, configured to: when both a difference between the first scaling coefficient and the first specified coefficient and a difference between the second scaling coefficient and the second specified coefficient are less than a third preset difference, determine that the eye-open status is normal, wherein the first scaling coefficient is a ratio of the first distance to the preset reference distance, and the second scaling coefficient is a ratio of the second distance to the preset reference distance.


 
27. The apparatus according to claim 25, wherein the preset pupil diameter is an average value of sample pupil diameters obtained through detection based on a plurality of first image samples or a plurality of second image samples obtained by the display device.
 
28. The apparatus according to claim 18, wherein the acquiring module is further configured to obtain a user identity of the user; and
the apparatus further comprises a storage module, configured to store a correspondence between the user identity and the interpupillary distance of the user.
 
29. A computer readable storage medium, wherein the storage medium stores at least one instruction, and the instruction is loaded and executed by a processor to implement operations performed in the method for adjusting image presence on a display device according to any one of claims 7 to 17.
 




Drawing































Search report













Cited references

REFERENCES CITED IN THE DESCRIPTION



This list of references cited by the applicant is for the reader's convenience only. It does not form part of the European patent document. Even though great care has been taken in compiling the references, errors or omissions cannot be excluded and the EPO disclaims all liability in this regard.

Patent documents cited in the description