Method and apparatus for determining a wearing state of an eyewear device
By using image acquisition devices and supplementary lighting sources in VR devices, combined with target programs and state classification models, the wearing status can be accurately determined, solving the problem of false triggering of P-sensors and improving the power consumption management and user experience of the device.
Patent Information
- Application Number
- CN202211463308.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-22
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2042-11-22
AI Technical Summary
In existing VR devices, distance sensors such as P-sensors are prone to false triggering, leading to increased power consumption, reduced standby time, and negatively impacting user experience.
An image acquisition device is used to capture images of the eye-wearing device when it is worn, positioned opposite the user's eyes. The wearing status is determined based on the images, and supplementary lighting is used to ensure image clarity. The wearing status is accurately determined using a target program and a status classification model.
It improves the accuracy of VR device wearing status, reduces false triggers, saves power consumption, and enhances user experience.
Smart Images

Figure CN118072060B_ABST
Abstract
Description
Technical Field
[0001] This specification relates to the field of virtual reality technology, and in particular to a method and apparatus for determining the wearing state of an eye-wearing device. Background Technology
[0002] With the development of virtual reality (VR) technology, many VR devices have emerged, allowing people to experience virtual scenes. VR devices can include VR headsets, VR glasses, and other devices worn on the eyes. Currently, VR devices generally use their P-sensors (equivalent to distance sensors) to sense the relative position between the user's face and the VR device itself, thereby triggering functions such as screen illumination.
[0003] However, in the above process, the P-sensor, a distance sensor, is prone to false triggering. For example, if the VR device is placed face down on a table, the corresponding P-sensor may mistakenly identify it as being worn on the face, causing the VR device to light up its screen. This increases the VR device's power consumption, reduces its standby time, and negatively impacts the user experience. Therefore, providing a method to accurately identify the wearing status of a VR device is an urgent problem to be solved. Summary of the Invention
[0004] This specification provides one or more embodiments of a method and apparatus for determining the wearing state of an eye-wearing device, so as to achieve accurate determination of the wearing state of the eye-wearing device.
[0005] According to a first aspect, a method for determining the wearing state of an eye-wearing device is provided, wherein the eye-wearing device is equipped with an image acquisition device, the image acquisition device being configured to be opposite to the user's eyes when the eye-wearing device is worn, the method comprising:
[0006] Acquire images captured by the image acquisition device;
[0007] The wearing status of the eye-wearing device is determined based on the image.
[0008] According to a second aspect, a device for determining the wearing state of an eye-wearing device is provided, the eye-wearing device being equipped with an image acquisition device, the image acquisition device being configured to face the user's eyes when the eye-wearing device is worn, the device comprising:
[0009] The acquisition module is configured to acquire images captured by the image acquisition device;
[0010] The determination module is configured to determine the wearing status of the eye-wearing device based on the image.
[0011] According to a third aspect, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed in a computer, causes the computer to perform the method described in the first aspect.
[0012] According to a fourth aspect, an eye-wearing device is provided, including a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, it implements the method described in the first aspect.
[0013] According to the method and apparatus provided in the embodiments of this specification, the eye-wearing device is equipped with an image acquisition device. The image acquisition device is configured to be opposite to the user's eyes when the eye-wearing device is worn. That is, when the eye-wearing device is worn, the image acquisition device can capture images of the user's eyes. Accordingly, the image captured by the image acquisition device is first acquired; then the wearing state of the eye-wearing device is determined based on the image, so as to achieve accurate determination of the wearing state of the eye-wearing device. Attached Figure Description
[0014] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are merely some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without any creative effort.
[0015] Figure 1 This is a schematic diagram illustrating the implementation framework of one embodiment disclosed in this specification;
[0016] Figures 2A to 2E A schematic diagram of the structure of an eye-wearing device including an image acquisition device and a supplementary light source provided in the embodiment;
[0017] Figure 3 A flowchart illustrating a method for determining the wearing state of an eye-wearing device provided in an embodiment;
[0018] Figure 4 This is another flowchart illustrating the method for determining the wearing state of the eye-wearing device provided in the embodiment;
[0019] Figure 5 This is another schematic flowchart illustrating the method for determining the wearing state of the eye-wearing device provided in the embodiment;
[0020] Figure 6 A schematic block diagram of a device for determining the wearing state of an eye-wearing device provided in an embodiment;
[0021] Figure 7This is a schematic block diagram of an eye-wearing device provided for an embodiment. Detailed Implementation
[0022] The technical solutions of the embodiments of this specification will now be described in detail with reference to the accompanying drawings.
[0023] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.
[0024] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to autonomously choose, based on the prompt message, whether to provide personal information to the software or hardware such as electronic devices (e.g., subsequent eye-wearing devices), applications, servers, or storage media performing the operations of this disclosed technical solution.
[0025] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user could be done via a pop-up window, where the prompt message could be presented in text format. Furthermore, the pop-up window could also include a selection control allowing the user to choose whether to "agree" or "disagree" to provide personal information to an electronic device (such as a future eye-wearing device).
[0026] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.
[0027] This specification discloses a method and apparatus for determining the wearing state of an eye-wearing device. The application scenarios and technical concepts of the method for determining the wearing state of the eye-wearing device are introduced below:
[0028] As mentioned earlier, current VR devices worn on the eyes generally use a P-sensor (equidistant sensor) to detect the relative position of the user's face and the VR device itself, thereby triggering functions such as screen activation. However, this method is prone to false triggering. For example, if the VR device is placed face down on a table, the P-sensor may mistakenly identify it as being worn on the face, causing the screen to light up. This increases the VR device's power consumption, reduces its standby time, and negatively impacts the user experience.
[0029] In view of this, Figure 1This diagram illustrates an implementation scenario according to an embodiment disclosed in this specification. In this scenario, the eye-wearing device is equipped with an image acquisition device, which is configured to be positioned opposite the user's eyes when the eye-wearing device is worn. Specifically, the image acquisition device can capture images of the user's eyes when the eye-wearing device is worn. Alternatively, the image acquisition device can capture images of its surrounding environment. The eye-wearing device can be a VR headset, VR glasses, or smart glasses, or any other device that needs to be worn on the eyes for use.
[0030] Understandably, the image content captured by the image acquisition device varies depending on the wearing state of the eye-wearing device. For example, when the eye-wearing device is worn over the eyes, the image captured by the image acquisition device may only include the user's eye area. Conversely, when the eye-wearing device is not worn over the user's face, the image captured by the image acquisition device may not include the face, or it may include the face but not the eye area, or it may include other facial areas (such as the nose, forehead, etc.). Therefore, the module for determining the wearing state of the eye-wearing device (e.g., ...) Figure 1 The status determination module shown can acquire images captured by the image acquisition device and then determine the wearing status of the eye-wearing device based on the images.
[0031] In the above process, the wearing status of the eye-wearing device can be determined based on the images captured by the image acquisition device set on the eye-wearing device, which can improve the accuracy of the determination of the wearing status of the eye-wearing device to a certain extent.
[0032] The following detailed description, with reference to specific embodiments, elaborates on the method and apparatus for determining the wearing state of the eye-wearing device provided in this specification.
[0033] To ensure clarity, the structure of the eye-wearing device provided in this specification will first be described. In the embodiments described herein, the eye-wearing device includes an image acquisition device, which is configured to be positioned opposite the user's eyes when the eye-wearing device is worn. There may be one or more image acquisition devices.
[0034] In one embodiment, when there is only one image acquisition device, it is configured to face either the user's left or right eye when the eye-wearing device is worn. That is, in one case, the image acquisition device can be located on the side of one lens barrel of the eye-wearing device, for example, on the outer side of the left lens barrel (so that it faces the user's left eye when the eye-wearing device is worn). Figure 2AAs shown, the triangle represents the image acquisition device. In another scenario, it can be housed inside the lens barrel of the eye-wearing device, such as... Figure 2B As shown, the left lens barrel of the eye-wearing device is located inside, where the triangle represents the image acquisition device.
[0035] In another embodiment, considering that the brightness of the image capture area of the image acquisition device may be weak when the eye-wearing device is worn, in order to ensure that the image captured by the image acquisition device has good clarity (e.g., exceeding a preset clarity threshold) and to ensure the normal progress of the subsequent process of determining the wearing status of the eye-wearing device, the eye-wearing device may also be equipped with a supplementary light source. This supplementary light source is used to provide supplementary lighting for the image capture area of the image acquisition device. In one implementation, there may be one or more supplementary light sources. Figure 2A and Figure 2B As shown, there can be one supplementary light source, and in order to ensure effective supplementary lighting for the image capturing area of the image acquisition device, the distance between the supplementary light source and the image acquisition device shall not exceed a preset first distance. Figure 2A and Figure 2B The circles shown represent supplementary lighting sources. In another implementation, when there are multiple supplementary lighting sources, these multiple supplementary lighting sources can be used to illuminate the image capture area of a single image acquisition device.
[0036] In another embodiment, when there are multiple image acquisition devices, in one implementation, the multiple image acquisition devices can be configured such that, when the eye-wearing device is worn, each of the multiple image acquisition devices is opposite to the user's left or right eye. That is, the multiple image acquisition devices can all be located on one side of the lens barrel of the eye-wearing device.
[0037] In another implementation, the plurality of image acquisition devices can be configured such that, when the eye-wearing device is worn, at least one of the image acquisition devices faces the user's left eye, and at least one image acquisition device faces the user's right eye. That is, the plurality of image acquisition devices can be respectively located on the two sides of the lens barrel of the eye-wearing device. Figure 2C As shown, there are two image acquisition devices. One image acquisition device is located on the outside of the left lens barrel of the eye-wearing device, and the other image acquisition device is located on the outside of the right lens barrel of the eye-wearing device.
[0038] In another implementation, such as Figure 2D As shown, there are two image acquisition devices. One image acquisition device is located inside the left lens barrel of the eye-wearing device, and the other image acquisition device is located inside the right lens barrel of the eye-wearing device. Figure 2EAs shown, there can be four image acquisition devices. Two image acquisition devices are respectively located on the outer and inner sides of the left lens barrel of the eye-wearing device, and the other two image acquisition devices are respectively located on the outer and inner sides of the right lens barrel of the eye-wearing device.
[0039] To ensure the clarity of images captured by the image acquisition device (e.g., exceeding a preset clarity threshold), the eye-wearing device is also equipped with a supplementary lighting source, such as... Figure 2C and 2D As shown, two supplementary lighting sources can be set to provide supplementary lighting for the image capture areas of the two image acquisition devices, respectively. The distance between the image acquisition device and its corresponding supplementary lighting source (i.e., the supplementary lighting source providing supplementary lighting) does not exceed a first distance. For example... Figure 2E As shown, four supplementary lighting sources can be set up to provide supplementary lighting for the image capture areas of the four image acquisition devices.
[0040] It is understandable that image acquisition devices and supplementary lighting sources can appear in pairs or unpaired, as long as the brightness provided by the supplementary lighting source can meet the brightness requirements of the corresponding image acquisition device for capturing images.
[0041] In one embodiment, the image acquisition device can be a device that images based on light of any wavelength. Considering that infrared light is imperceptible to the human eye, unlikely to cause harm, and unaffected by visible light (the light emitted when the eye-wearing device is working), the image acquisition device can be a device that images based on infrared light, such as an infrared camera. Correspondingly, a supplementary light source can compensate for the infrared light emitted by the image acquisition device, such as an infrared LED (Light Emitting Diode). In another implementation, the supplementary light source can also be a local area of the display screen of the eye-wearing device, for example, reusing that local area as a supplementary light source.
[0042] The image acquisition device and the supplementary lighting source can be activated simultaneously to capture images. Then, based on the images captured by the image acquisition device configured for the eye-wearing device, the subsequent process for determining the wearing status of the eye-wearing device is executed. The following is an introduction to the process for determining the wearing status of this eye-wearing device.
[0043] Figure 3A flowchart illustrating a method for determining the wearing state of an eye-wearing device according to one embodiment of this specification is shown. This method can be implemented using a target program, which can be installed on the eye-wearing device in the form of an SDK (Software Development Kit) or exist as a system service of the eye-wearing device's operating system. The eye-wearing device is equipped with an image acquisition device, which is configured to be opposite the user's eyes when the eye-wearing device is worn, such as... Figure 3 As shown, the method includes the following steps S310-S320:
[0044] In step S310, images captured by the image acquisition device are acquired. In this step, the image acquisition device can capture images at a certain frame rate, and the target program can acquire the images captured by the image acquisition device in real time. Next, in step S320, the wearing status of the eye-wearing device is determined based on the images.
[0045] Specifically, considering that the content of the images captured by the image acquisition device varies depending on the wearing state of the eye-wearing device, for example, when the eye-wearing device is worn on the user's eyes, the image content captured by the image acquisition device may only include the user's eye area. As another example, when the eye-wearing device is not worn on the user's face, the image content captured by the image acquisition device may not include the face (i.e., the facial features), or the image content may include the face but not the eye area, or it may include not only the eye area but also other facial areas (e.g., the nose, forehead, etc.). Therefore, in step S320, the target program can determine the wearing state of the eye-wearing device based on the image content.
[0046] In one implementation, if there is only one image acquisition device, the target program can determine the wearing status of the eye-wearing device directly based on the image captured by the image acquisition device in step S320. If there are multiple image acquisition devices, after acquiring images captured by multiple image acquisition devices in the same image capture cycle, the target program can first stitch the multiple images together to obtain a stitched image, and then determine the wearing status of the eye-wearing device at least based on the stitched image in step S320.
[0047] To ensure clarity, the following section will first introduce the process for determining the wearing status of an eye-wearing device when there is only one image acquisition device.
[0048] It is understood that the eye-wearing devices in the embodiments of this specification can be VR helmets, VR glasses, smart glasses, or other devices that need to be worn on the eyes for use.
[0049] Considering that the process of wearing an eye-worn device generally includes the user picking up the device and putting it on, and placing it over the eyes (for example, in the case of a VR headset (or VR glasses), this may also include tightening the straps), and further considering that even if the device is placed on the eyes, inaccurate placement (e.g., not in the preset correct position) can easily lead to eye fatigue, the process of wearing an eye-worn device may need to sequentially determine whether the device is in the following states: whether the device is in motion (also known as whether the relative position between the device and the user's face is stable), whether the device is placed on the face, whether the device is placed over the eyes, and whether the device is correctly positioned after being placed over the eyes.
[0050] In view of the above, in one embodiment, such as Figure 4 As shown, the method for determining the wearing state of the eye-wearing device may include the following steps:
[0051] In step S410, the latest first image captured by the image acquisition device and a second image captured before the first image are acquired. Specifically, the target program acquires the latest first image captured by the image acquisition device, and after determining that the first image does not belong to the previous preset number of frames (e.g., M frames) captured by the image acquisition device in this workflow, it continues to acquire the second image captured by the image acquisition device before the first image is captured. In one implementation, the first image is the Kth frame captured by the image acquisition device in this workflow, and correspondingly, the second image is the KMth frame captured by the image acquisition device in this workflow. The activation of the eye-wearing device in this instance can trigger the image acquisition device to enter this workflow.
[0052] In one implementation, the value of the aforementioned preset quantity M is related to the frame rate of the images captured by the image acquisition device, wherein the higher the frame rate, the larger the value of M. In one case, the value of M can be equal to the product of the frame rate and a specified value, such as 0.1. Accordingly, for example, if the frame rate of the images captured by the image acquisition device is 60, then M can be 6.
[0053] After acquiring the first and second images, in step S420, the target program determines whether the eye-wearing device is in motion based on the differences in image content between the first and second images. In this step, the target program can determine whether the eye-wearing device has experienced significant displacement (e.g., whether it exceeds a preset displacement threshold) based on the differences in image content between the first and second images. If it is determined that the eye-wearing device has experienced significant displacement (i.e., the displacement exceeds the preset displacement threshold), then the eye-wearing device is determined to be in motion; if it is determined that the eye-wearing device has not experienced significant displacement (i.e., the displacement does not exceed the preset displacement threshold), then the eye-wearing device is determined to be in a stationary state.
[0054] Next, in step S430, if it is determined that the eye-wearing device is in motion, a message prompting the user to wear the eye-wearing device is output.
[0055] In this step, when the target program determines that the eye-wearing device is in motion, it can output information indicating that the eye-wearing device is in motion to the relevant system control program of the eye-wearing device. This information indicating that the eye-wearing device is in motion can instruct the eye-wearing device to output prompts reminding the user to wear the eye-wearing device. This information can be a voice prompt, such as a voice prompt reminding the user to wear the eye-wearing device (e.g., tightening the eye-wearing device's strap); the prompt can also be a brightness prompt, such as using a flashing indicator light to remind the user to wear the eye-wearing device (e.g., tightening the eye-wearing device's strap).
[0056] In one implementation, to improve the user experience and avoid frequent prompts to wear the eye-wearing device that might cause negative emotions or misjudgments, the system's control program, after receiving information indicating that the eye-wearing device is in motion, needs to further determine whether the number of times the eye-wearing device is identified as being in motion exceeds a preset threshold within a first preset time period (i.e., whether the number of times information indicating that the eye-wearing device is in motion is received within the first preset time period exceeds the preset threshold). If the determination result is yes, the system controls the eye-wearing device to output a message prompting the user to wear the eye-wearing device, such as a voice prompt to tighten the eye-wearing device's strap. This first preset time period can be set based on experience.
[0057] In another embodiment, if the first image belongs to the first preset number of frames (e.g., M frames) captured by the image acquisition device in this workflow, that is, the first image is the first to the Mth frames captured by the image acquisition device in this workflow, the target program can directly determine that the eye-wearing device is in motion based on the first image.
[0058] In one implementation, after the target program outputs information representing the motion state of the eye-wearing device to the system-related control program of the eye-wearing device, the first image can be stored in a historical frame queue used to store images previously captured by the image acquisition device. Then, new images captured by the image acquisition device are acquired, and for each new image, the next round of the process for determining the wearing state of the eye-wearing device is executed.
[0059] In yet another embodiment, such as Figure 4 As shown, the method for determining the wearing state of the eye-wearing device may further include: in step S440, when it is determined that the eye-wearing device is in a non-moving state, determining whether the eye-wearing device is worn on the eyes based on the first image.
[0060] In one implementation, the target program can detect and identify the first image to determine whether it contains only the eye region. If it is determined that it contains only the eye region, it can be determined that the eye-wearing device is worn on the eye.
[0061] In one scenario, the eye-worn device might be worn backwards. For example, when the device is worn correctly, the left lens is aligned with the user's left eye, and the right lens with the user's right eye, and the upper eyelid is positioned above the lower eyelid in the image captured by the image acquisition device. However, if the device is worn backwards, the left lens will be aligned with the user's right eye, and the right lens with the user's left eye, and the lower eyelid will be positioned above the upper eyelid in the image captured by the image acquisition device.
[0062] Therefore, if the target program determines that the first image contains only the eye region, it can further determine whether the shape of the included eye region is accurate. For example, it can determine whether the upper eyelid of the human eye in the eye region of the first image is above the lower eyelid. If it is determined that the upper eyelid of the human eye in the eye region of the first image is above the lower eyelid, then it is determined that the eye-wearing device is worn on the eye; if it is determined that the upper eyelid of the human eye in the eye region of the first image is not above the lower eyelid (the upper eyelid is below the lower eyelid), then it is determined that the eye-wearing device is not worn on the eye (the wearing position of the eye-wearing device is incorrect, and the wearing position has a large deviation).
[0063] In another implementation, considering that a user may not wear the eye-wearing device for a considerable period of time after activating it, such as by placing the eye-wearing device on a surface of an object, it can be assumed that the user does not intend to use the eye-wearing device. In this case, an instruction can be output to control the eye-wearing device to enter standby mode, thereby saving power consumption of the eye-wearing device.
[0064] Specifically, if it is determined that the eye-wearing device is not worn on the eyes, it can further determine whether the eye-wearing device is worn on the user's face (e.g., detecting whether the user's face is included in the first image). If it is determined that the eye-wearing device is not worn on the user's face (e.g., the user's face is not included in the first image), information indicating that the eye-wearing device is not worn on the user's face is output. The system-related control program of the eye-wearing device obtains this information indicating that the eye-wearing device is not worn on the user's face, and then continues to determine whether the number of times the eye-wearing device is determined to be in a state of not being worn on the user's face exceeds a preset threshold (i.e., whether the number of times this type of information indicating that the eye-wearing device is not worn on the user's face is continuously received exceeds a preset threshold). If the determination result is yes, the eye-wearing device can be controlled to enter a standby state to save power consumption.
[0065] In another implementation, if the target program determines that the eye-wearing device is not worn over the eyes, but is worn on the user's face (e.g., on the forehead), it outputs information indicating that the eye-wearing device is worn on the user's face but not over the eyes. The system-related control program for the eye-wearing device acquires this information and then determines whether the number of times the eye-wearing device has been identified as being worn on the user's face but not over the eyes exceeds a preset threshold (i.e., whether the number of consecutive times this type of information indicating that the eye-wearing device is worn on the user's face but not over the eyes is received exceeds a preset threshold). If the determination result is yes, to improve the user experience, the eye-wearing device can be controlled to output information guiding the user to wear the eye-wearing device in a preset accurate wearing position, for example, by controlling the eye-wearing device to output an instruction voice to guide the user to wear the eye-wearing device in the preset accurate wearing position.
[0066] In one implementation, after the target program outputs information indicating that the eye-wearing device is worn on the eyes (e.g., information indicating that the eye-wearing device is not worn on the user's face, and information indicating that the eye-wearing device is worn on the user's face but not on the eyes) to the system-related control program of the eye-wearing device, the first image can be stored in a historical frame queue used to store images historically captured by the image acquisition device. Then, new images captured by the image acquisition device are acquired, and for each new image captured by the image acquisition device, the next round of the process for determining the wearing status of the eye-wearing device is executed.
[0067] In another embodiment, the embodiments of this specification can also determine whether the eye-wearing device is worn on the eyes using a pre-trained state classification model to ensure the accuracy of the determination result. Specifically, step S440 may include: inputting the first image into the state classification model to determine the current state category of the eye-wearing device, whereby the current state category indicates whether the eye-wearing device is worn on the eyes, and the state classification model is a model pre-trained based on sample images and their corresponding state category labels.
[0068] The state category labels can include, for example, labels indicating that the eye-wearing device is not worn on the user's face, labels indicating that the eye-wearing device is close to the user's face but not properly worn (e.g., the strap is not fastened), labels indicating that the eye-wearing device is worn on the user's face but not over the eyes, and labels indicating that the eye-wearing device is over the user's eyes. The first three state category labels all indicate that the eye-wearing device is not over the eyes. During the training of the state classification model, multiple sample images can be obtained, and the aforementioned state category labels are labeled for each sample image based on its imaging content. Then, based on each sample image and its labeled state category labels, the state classification model is trained until the state classification model reaches a preset convergence condition, indicating that the state classification model training is complete. The trained state classification model is then used to determine the state category corresponding to the input image.
[0069] The preset convergence conditions may include, but are not limited to: the number of iterations for training the state classification model exceeds a preset threshold, and the predicted loss of the state classification model is lower than a preset loss threshold. The predicted loss of the state classification model is determined based on the state category label of each sample image and the state category predicted by the state classification model for the sample image.
[0070] In this implementation, the target program inputs the first image into the state classification model and obtains the output result of the state classification model. The output result may include the probability of the first image corresponding to each state category label. Based on the probability of the first image corresponding to each state category label in the output result, the current state category of the eye-wearing device is determined. The current state category can characterize whether the eye-wearing device is worn on the eyes.
[0071] Understandably, determining the current state category of an eye-wearing device through a state classification model, i.e., determining whether the eye-wearing device is being worn on the eyes, can to some extent ensure the accuracy of the determined results.
[0072] After determining the current state category of the eye-wearing device, i.e. whether the eye-wearing device is worn on the user's eyes, through the above method, different subsequent actions can be performed for different wearing states of the eye-wearing device represented by the current state category.
[0073] In one embodiment, if the current state category indicates that the eye-wearing device is not worn on the face, information instructing the eye-wearing device to be in standby mode is output. Specifically, if the current state category indicates that the eye-wearing device is not worn on the face, the target program can output the current state category (i.e., information indicating that the eye-wearing device is not worn on the face) to the system-related control program of the eye-wearing device, and the current state category can instruct the eye-wearing device to be in standby mode.
[0074] After obtaining the current state category, the system control program for the eye-wearing device determines, based on previously obtained state categories (which can be called historical state categories), whether the eye-wearing device has been in a state of not being worn on the face for a period of time. Specifically, it determines whether the number of consecutive state categories representing VR not being worn on the face exceeds a certain limit. If so, it is determined that the eye-wearing device has been in a state of not being worn on the face for a period of time, and the system control program can then put the eye-wearing device into standby mode to save power consumption.
[0075] In another embodiment, if the current state category indicates that the eye-wearing device is worn on the face but not on the eyes, then information guiding the user to wear the eye-wearing device in a preset accurate wearing position is output. For example, an instruction voice is output to guide the user to wear the eye-wearing device in the preset accurate wearing position. Specifically, if the current state category indicates that the eye-wearing device is worn on the face but not on the eyes, the target program can output the current state category (i.e., information indicating that the eye-wearing device is worn on the face but not on the eyes) to the system-related control program of the eye-wearing device. This current state category can instruct the user to wear the eye-wearing device in a preset accurate wearing position via voice.
[0076] After obtaining the current state category, the system control program for the eye-wearing device determines, based on the acquired historical state categories, whether the eye-wearing device has been in a state of being worn on the face but not on the eyes for a period of time. Specifically, it determines whether the number of consecutive historical state categories representing VR being worn on the face but not on the eyes exceeds a certain limit. If so, it is determined that the eye-wearing device has been in a state of being worn on the face but not on the eyes for a period of time. The system control program can then control the eye-wearing device to output information guiding the user to wear the eye-wearing device in a preset, accurate position. For example, it can control the eye-wearing device (e.g., control the microphone of the eye-wearing device) to output instructional voice, providing voice guidance to the user to wear the eye-wearing device in the preset, accurate position, thereby improving the user experience.
[0077] In another embodiment, if the current state category indicates that the eye-wearing device is close to the user's face but not properly worn (e.g., the strap is not tightened), the target program can directly output the current state category to the system-related control program of the eye-wearing device. Upon receiving the current state category, the system-related control program of the eye-wearing device can, in one implementation, consider this state as a transitional state, and to avoid excessively frequent reminders, it may not need to perform a reminder task for this state. In another implementation, after receiving the current state category, the system-related control program of the eye-wearing device can, based on previously obtained historical state categories, determine whether the eye-wearing device has been in the state of being close to the user's face but not properly worn for a period of time; that is, determine whether the number of consecutive state categories representing this state in the historical state exceeds a certain number. If it is determined that the eye-wearing device has been in the state of being close to the user's face but not properly worn for a period of time, the system-related control program can control the eye-wearing device to prompt the user to wear the eye-wearing device properly via voice (or by flashing an indicator light) (e.g., a voice prompt to tighten the strap of the eye-wearing device) to improve the user experience.
[0078] In another embodiment, if the current state category indicates that the eye-wearing device is worn on the eyes, in order to ensure the user experience and avoid improper wearing position that could lead to eye fatigue, the target program can further determine whether the user's eye position is accurate (i.e., whether the eye-wearing device is worn appropriately). Accordingly, the method may further include: in step S450, if it is determined that the eye-wearing device is worn on the eyes, performing position recognition on the eyes in the first image to obtain the current eye position of the included eyes.
[0079] In one implementation, if the current state category indicates that the eye-wearing device is worn on the eye, the target program performs position recognition on the human eye in the first image. It can directly detect the position of the pupil of the human eye in the first image and determine the position of the pupil as the current position of the human eye.
[0080] In another implementation, step S450 may specifically include: performing position recognition on the human eye in the first image to determine the key point positions of several key points corresponding to the included human eye; and determining the current human eye position based on the key point positions. In this implementation, the target program can use a preset key point detection algorithm to perform position recognition on the human eye in the first image to determine the key point positions of several key points corresponding to the included human eye. These key points may include, but are not limited to: several equally spaced points on the upper and lower eyelids (e.g., bisection points, trisection points, etc.), key points at the corners of the eyes, and key points at the outer corners of the eyes. Then, the target program determines the current human eye position based on the key point positions of these key points. For example, determining the center position of the key point positions of these key points and setting that center position as the current human eye position.
[0081] The preset key point detection algorithm can be any key point detection algorithm in related technologies that can detect key points in an image, and is not limited here.
[0082] Next, in step S460, a preset standard human eye position corresponding to the eye-wearing device is obtained. This standard human eye position is determined based on the eye-wearing device being in a preset accurate wearing position. This preset standard human eye position can be pre-stored in a preset storage space of the eye-wearing device. After the target program determines the current human eye position in step S450, it can read this standard human eye position from the preset storage space.
[0083] Understandable. Figure 4 The illustrated process flow is merely an illustrative one. In another implementation, step S460 can also be executed before step S450 (i.e., the target program reads the standard human eye position from the preset storage space after determining that the eye-wearing device is worn on the eye), or it can be executed in parallel with step S450.
[0084] After the target program obtains the current human eye position and the standard human eye position, in step S470, it determines whether the wearing position of the eye-wearing device is accurate based on the current human eye position and the standard human eye position.
[0085] In one implementation, when the coordinate system of the current eye position and the standard eye position is the same, step S470 may specifically include the following steps: if the distance between the standard eye position and the current eye position in any specified direction exceeds a preset second distance in that specified direction, the wearing position of the eye-wearing device is determined to be inaccurate; if the distance between the standard eye position and the current eye position in all specified directions does not exceed the preset second distance in any specified direction, the wearing position of the eye-wearing device is determined to be accurate. The second distance is set based on experience. In one implementation, the specified direction may include, but is not limited to, the horizontal direction and the vertical direction. The preset second distance in the horizontal direction and the preset second distance in the vertical direction may be equal or unequal.
[0086] In this implementation, if the wearing position of the eye-wearing device is determined to be inaccurate relative to the preset accurate wearing position, the eye-wearing device may be in the following wearing position error states:
[0087] The first method is to determine that the standard human eye position is above the current human eye position, and that the vertical distance between the standard human eye position and the current human eye position exceeds a preset second distance in the vertical direction. In this case, the wearing position of the eye-wearing device is too low (at which point the wearing position of the eye-wearing device needs to be adjusted upward).
[0088] The second method is to determine that the standard human eye position is below the current human eye position, and that the vertical distance between the standard human eye position and the current human eye position exceeds a preset second distance in the vertical direction. In this case, the wearing position of the eye-wearing device is determined to be too high (at this time, the wearing position of the eye-wearing device needs to be adjusted downward).
[0089] The third method is to determine that the standard human eye position is to the left of the current human eye position, and that the horizontal distance between the standard human eye position and the current human eye position exceeds a preset second distance in the horizontal direction. In this case, the wearing position of the eye-wearing device is determined to be off to the right (at which point the wearing position of the eye-wearing device needs to be adjusted to the left).
[0090] Fourth, if the standard human eye position is determined to be to the right of the current human eye position, and the horizontal distance between the standard human eye position and the current human eye position is determined to be greater than the preset second distance in the horizontal direction, then the wearing position of the eye-wearing device is determined to be to the left (at this time, the wearing position of the eye-wearing device needs to be adjusted to the right).
[0091] After the target program determines the aforementioned incorrect wearing position, it can output this status to the system control program of the eye-wearing device. The system control program then executes corresponding actions based on the received incorrect wearing position status to help the user adjust the eye-wearing device to the preset accurate wearing position. Specifically, if the system control program receives an incorrect wearing position status and determines that the target program has repeatedly (e.g., more than a certain number of times) reported that the eye-wearing device is in an incorrect wearing position, the system control program can control the eye-wearing device to guide the user to wear the eye-wearing device in the preset accurate wearing position through a UI screen and / or voice prompts.
[0092] In another implementation, after the target program determines that the eye-wearing device is correctly positioned, it can output this information to the system control program of the eye-wearing device. Upon receiving this information, the system control program no longer needs to output any prompts to the user regarding the correct placement of the eye-wearing device.
[0093] In another implementation, if the coordinate systems of the current human eye position and the standard human eye position are different, the current human eye position and the standard human eye position can be transformed to the same coordinate system first. Then, based on the current human eye position and the standard human eye position transformed to the same coordinate system, it can be determined whether the wearing position of the eye-wearing device is accurate.
[0094] The following section describes the process for determining the wearing status of an eye-wearing device when there are multiple image acquisition devices.
[0095] like Figure 5 As shown, the method for determining the wearing state of the eye-wearing device may include the following steps:
[0096] In step S510, multiple first images recently captured by multiple image acquisition devices are acquired, and corresponding historical images are acquired. The historical images are images stitched together based on second images captured by the multiple image acquisition devices, wherein the second images are images captured by the multiple image acquisition devices before capturing the first images.
[0097] Understandably, these multiple image acquisition devices can capture images of their surroundings from different angles. Based on these multiple first images, a more comprehensive image can be stitched together, which can improve the accuracy of the state determination result to some extent. The process of acquiring multiple first images is similar to the aforementioned process of acquiring the latest first image captured by a single image acquisition device, and will not be repeated here.
[0098] In this step, the target program can retrieve the historical frame queue stored in the designated storage space of the eye-wearing device. This historical frame queue stores multiple images captured by multiple image acquisition devices in each historical shooting cycle, and a stitched image corresponding to each historical shooting cycle. For example, if the multiple first images are the Kth frame images captured by multiple image acquisition devices in this workflow, the corresponding historical image is the image obtained by stitching together the multiple KMth frame images captured by the multiple image acquisition devices in this workflow.
[0099] After the target program obtains multiple first images, in step S520, the multiple first images are stitched together to obtain the target image.
[0100] Understandably, in one scenario, multiple image acquisition devices are configured to be positioned opposite the user's left or right eye when the eye-wearing device is worn, for example, opposite the user's left eye. In this case, the multiple image acquisition devices capture images of the user's left eye when the eye-wearing device is worn. After the target program acquires multiple first images, it can directly stitch these multiple first images together based on the positional relationship between the multiple image acquisition devices to obtain the target image.
[0101] In another scenario, multiple image acquisition devices are configured such that, when the eye-wearing device is worn, at least one image acquisition device faces the user's left eye, and at least one image acquisition device faces the user's right eye. That is, when the eye-wearing device is worn, these multiple image acquisition devices capture images for the user's left and right eyes respectively. For clarity, the image acquisition device capturing images for the user's left eye when the eye-wearing device is worn will be referred to hereafter as the left-eye image acquisition device, and the image acquisition device capturing images for the user's right eye when the eye-wearing device is worn will be referred to as the right-eye image acquisition device.
[0102] When performing image stitching, the first stitched image is obtained by stitching together the most recently captured first images from all left-eye image acquisition devices according to their positional relationships. Similarly, the second stitched image is obtained by stitching together the most recently captured first images from all right-eye image acquisition devices according to their positional relationships. Then, based on a specified stitching method (i.e., a stitching method set according to the positional relationship of the left and right eyes), the first and second stitched images are stitched together to obtain the target image.
[0103] Then, in step S530, the wearing status of the eye-wearing device is determined based on the target image and the historical image.
[0104] Specifically, the system can first determine whether the eye-wearing device is in motion based on the differences in image content between the target image and historical images. If the eye-wearing device is determined to be in motion, a message prompting the user to wear the device properly (e.g., tightening the strap) is output, such as a voice prompt. The process of determining whether the eye-wearing device is in motion can be referenced from the aforementioned process of determining whether the eye-wearing device is in motion based on the differences in image content between the first and second images; the process of outputting a message prompting the user to wear the device properly when it is determined to be in motion can be referenced from the aforementioned embodiment, and will not be repeated here.
[0105] Then, assuming the eye-wearing device is in a stationary state, it is determined whether the eye-wearing device is being worn on the eye based on the target image. The process of determining whether the eye-wearing device is being worn on the eye based on the target image can be found in [link to documentation]. Figure 4 The process of determining whether the eye-wearing device is worn on the eye based on the first image, as shown in the flowchart, will not be described in detail here.
[0106] Next, when it is determined that the eye-wearing device is not worn on the eyes, the actions performed by the target program can be found in the aforementioned embodiment when it is determined that the eye-wearing device is not worn on the eyes based on the first image, and will not be repeated here.
[0107] Once it's confirmed that the eye-wearing device is properly positioned on the eyes, the system continues to identify the position of the eyes in the target image, obtaining the current position of the included eyes, and acquiring the preset standard eye position corresponding to the eye-wearing device. This preset standard eye position is determined based on the eye-wearing device being in a pre-defined, accurate wearing position. Then, based on the current eye position and the standard eye position, the system determines whether the eye-wearing device is positioned accurately.
[0108] The process of determining the accuracy of the eye-wearing device's placement based on the current and standard eye positions, when the target image includes only one human eye, can be found in [reference needed]. Figure 4 The process shown in the flowchart, which determines whether the wearing position of the eye-worn device is accurate based on the current human eye position and the standard human eye position, will not be described in detail here.
[0109] When the target image includes two human eyes (i.e., the user's left and right eyes), the current eye position includes the current left eye position and the current right eye position; the standard eye position includes the standard left eye position and the standard right eye position. Accordingly, when the current eye position and the standard eye position are in the same coordinate system, in one implementation, the process of determining whether the wearing position of the eye-wearing device is accurate based on the current eye position and the standard eye position may include:
[0110] If the difference between the current left eye position and the standard left eye position and the difference between the current right eye position and the standard right eye position exceeds the preset distance difference, then the wearing position of the eye-wearing device is determined to be inaccurate.
[0111] In one exemplary scenario, if the current left eye position and the current right eye position are both above (or below) the standard left eye position and the standard right eye position, respectively, and if the difference between the distance between the current left eye position and the standard left eye position and the distance between the current right eye position and the standard right eye position does not exceed a preset distance difference, then it is possible to further determine whether the vertical distances between the current left eye position and the standard left eye position, and the vertical distances between the current right eye position and the standard right eye position, both exceed a preset second distance in that vertical direction. If the determination is yes, then it is determined that the wearing position of the eye-wearing device is too low (or too high), and the wearing position of the eye-wearing device can be adjusted upwards (or downwards). If it is determined that the vertical distances between the current left eye position and the standard left eye position, and the vertical distances between the current right eye position and the standard right eye position, both do not exceed the preset second distance in that vertical direction, then it is determined that the wearing position of the eye-wearing device is accurate.
[0112] If the current left eye position and the current right eye position are both above (or below) the standard left eye position and the standard right eye position, respectively, and if the difference between the current left eye position and the standard left eye position and the current right eye position and the standard right eye position exceeds a preset distance difference, it is also possible to further determine whether the vertical distance between the current left eye position and the standard left eye position, and the vertical distance between the current right eye position and the standard right eye position both exceed a preset second distance in the vertical direction. If the determination is yes, it is determined that the eye-wearing device is tilted and the wearing position is too low (or too high), that is, the wearing position of the eye-wearing device is inaccurate. At this time, it is necessary to adjust the eye-wearing device to a horizontal wearing state and adjust the wearing position of the eye-wearing device upward (or downward).
[0113] If the vertical distances between the current left eye position and the standard left eye position, and between the current right eye position and the standard right eye position, are both within a preset second distance in the vertical direction, then the eye-wearing device is determined to be tilted, meaning the device is not positioned correctly. In this case, the eye-wearing device needs to be adjusted to a horizontal wearing position.
[0114] In another exemplary scenario, if the current left eye position is below the standard left eye position and the current right eye position is above the standard right eye position, or vice versa, then it can be directly determined that the eye-wearing device is tilted, meaning the eye-wearing device is not positioned accurately. In this case, the eye-wearing device needs to be adjusted to a horizontal wearing position.
[0115] In another exemplary case, if the current left eye position and the current right eye position are both to the left (or right) of the standard left eye position and the standard right eye position, respectively, then it is determined that the wearing position of the eye-wearing device is off to the right (or left), that is, the wearing position of the eye-wearing device is inaccurate, etc.
[0116] If the wearable device is determined to be worn in an inaccurate position, the target program will send information indicating that the wearable device is worn in an inaccurate position to the relevant system control program. If the relevant system control program determines that the wearable device is worn in an inaccurate position for a period of time, it will guide the user to wear the wearable device in the preset accurate position through UI screen and / or voice.
[0117] In the above process, the wearing status of the eye-wearing device can be accurately determined through the image content. Furthermore, even when the eye-wearing device is worn on the eyes, it can identify whether the wearing position is appropriate (within the preset accurate wearing position). If it is determined that the wearing position is inappropriate, the user can be instructed to wear the eye-wearing device in a suitable position, which can better improve the user experience and better protect the user's vision.
[0118] The foregoing description describes specific embodiments of this specification; other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than those shown in the embodiments, and the desired result may still be achieved. Furthermore, the processes depicted in the drawings do not necessarily need to follow the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.
[0119] Corresponding to the above method embodiments, this specification provides an embodiment of a device 600 for determining the wearing state of an eye-wearing device. The eye-wearing device is equipped with an image acquisition device, which is configured to face the user's eyes when the eye-wearing device is worn. A schematic block diagram is shown below. Figure 6 As shown, it includes:
[0120] The acquisition module 610 is configured to acquire images captured by the image acquisition device;
[0121] The determination module 620 is configured to determine the wearing status of the eye-wearing device based on the image.
[0122] In one optional embodiment, the eye-wearing device is further provided with a supplementary light source, which is used to provide supplementary lighting for the image capturing area of the image acquisition device.
[0123] In one optional implementation, when there is only one supplementary light source, the distance between the supplementary light source and the image acquisition device does not exceed a preset first distance.
[0124] In one alternative implementation, when there is one image acquisition device, the image acquisition device is configured to face the user's left or right eye when the eye-wearing device is worn; or, when there are at least two image acquisition devices, the image acquisition devices are configured such that, when the eye-wearing device is worn, at least one image acquisition device faces the user's left eye, and / or at least one image acquisition device faces the user's right eye.
[0125] In one alternative implementation, the image includes a first image recently captured by the image acquisition device, and a second image captured by the image acquisition device before capturing the first image;
[0126] The determining module 620 includes:
[0127] The first determining unit (not shown in the figure) is configured to determine whether the eye-wearing device is in motion based on the differences in image content between the first image and the second image;
[0128] The first output unit (not shown in the figure) is configured to output a message prompting the user to wear the eye-wearing device when it is determined that the eye-wearing device is in motion.
[0129] In an optional implementation, the determining module 620 further includes:
[0130] The second determining unit (not shown in the figure) is configured to determine, based on the first image, whether the eye-wearing device is worn on the eyes when it is determined that the eye-wearing device is in a non-moving state.
[0131] In one optional implementation, the second determining unit is specifically configured to input the first image into a state classification model to determine the current state category of the eye-wearing device, wherein the current state category indicates whether the eye-wearing device is worn on the eyes, and the state classification model is a model pre-trained based on sample images and their corresponding state category labels.
[0132] In an optional implementation, the determining module 620 further includes:
[0133] The second output unit (not shown in the figure) is configured to output information indicating that the eye-wearing device is not worn on the face if the current state category indicates that the eye-wearing device is not worn on the face;
[0134] The third output unit (not shown in the figure) is configured to output information guiding the user to wear the eye-wearing device in a preset accurate wearing position if the current state category indicates that the eye-wearing device is worn on the face but not on the eyes.
[0135] In an optional implementation, the determining module 620 further includes:
[0136] The identification unit (not shown in the figure) is configured to identify the position of the human eye in the first image if the current state category indicates that the eye-wearing device is worn on the eye, and obtain the current position of the human eye included in the image.
[0137] The acquisition unit (not shown in the figure) is configured to acquire a preset standard human eye position corresponding to the eye-wearing device, wherein the standard human eye position is determined based on the eye-wearing device being in a preset accurate wearing position;
[0138] The third determining unit (not shown in the figure) is configured to determine whether the wearing position of the eye-wearing device is accurate based on the current human eye position and the standard human eye position.
[0139] In one optional implementation, the recognition unit is specifically configured to perform position recognition on the human eye in the first image, determine the key point positions of several key points corresponding to the human eye, and determine the current human eye position based on the key point positions.
[0140] In one optional implementation, the third determining unit is specifically configured to determine that the wearing position of the eye-wearing device is inaccurate if the distance between the standard human eye position and the current human eye position in any specified direction exceeds a preset second distance in the specified direction.
[0141] If it is determined that the distance between the standard human eye position and the current human eye position in all specified directions does not exceed the second distance in any of the specified directions, then the wearing position of the eye-wearing device is determined to be accurate.
[0142] In one optional implementation, the current human eye position includes the current left eye position and the current right eye position; the standard human eye position includes the standard left eye position and the standard right eye position.
[0143] The third determining unit is specifically configured to determine that the wearing position of the eye-wearing device is inaccurate if the difference between the distance between the current left eye position and the standard left eye position and the distance between the current right eye position and the standard right eye position exceeds a preset distance difference.
[0144] In one optional implementation, there are multiple image acquisition devices and multiple first images; the determining module 620 is specifically configured to stitch together the multiple first images to obtain a target image; and to determine the wearing status of the eye-wearing device based at least on the target image.
[0145] The above-described apparatus embodiments correspond to the method embodiments, and detailed descriptions can be found in the description of the method embodiments section, which will not be repeated here. The apparatus embodiments are derived based on the corresponding method embodiments and have the same technical effects as the corresponding method embodiments; detailed descriptions can be found in the corresponding method embodiments.
[0146] The following is for reference. Figure 7 It shows a structural schematic diagram of an eye-wearing device 700 suitable for implementing embodiments of this specification. Figure 7 The eye-wearing device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments described in this specification.
[0147] like Figure 7As shown, the eye-wearing device 700 may include a processing unit (e.g., a central processing unit, a graphics processor, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 into a random access memory (RAM) 703. The RAM 703 also stores various programs and data required for the operation of the eye-wearing device 700. The processing unit 701, ROM 702, and RAM 703 are interconnected via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0148] Typically, the following devices can be connected to the I / O interface 705: input devices 706 including, for example, a touchscreen, touchpad, keyboard, mouse, etc.; output devices 707 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 708 including, for example, magnetic tape, hard disk, etc.; and communication devices 709. The communication device 709 allows the eye-wearing device 700 to exchange data via wireless or wired communication with other devices. Although Figure 7 An eye-wearing device 700 with various devices is shown; however, it should be understood that implementation or possession of all the devices shown is not required. More or fewer devices may be implemented or possessed alternatively. Figure 7 Each box shown can represent a device or multiple devices as needed.
[0149] In particular, according to embodiments of this specification, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this specification include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 709, or installed from storage device 708, or installed from ROM 702. When the computer program is executed by processing device 701, it performs the functions defined in the methods of embodiments of this specification.
[0150] This specification also provides a computer-readable storage medium storing a computer program that, when executed in a computer, causes the computer to execute the method for determining the wearing state of the eye-wearing device provided in this specification.
[0151] It should be noted that the computer-readable medium described in the embodiments of this specification may be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium may be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In the embodiments of this specification, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the embodiments of this specification, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (Radio Frequency), etc., or any suitable combination thereof.
[0152] The aforementioned computer-readable medium may be included in the aforementioned eye-wearing device; or it may exist independently and not assembled into the eye-wearing device. The aforementioned computer-readable medium carries one or more programs that, when executed by the eye-wearing device, cause the eye-wearing device to: acquire an image captured by the image acquisition device; and determine the wearing state of the eye-wearing device based on the image, wherein the eye-wearing device is provided with an image acquisition device, and the image acquisition device is configured to be opposite the user's eyes when the eye-wearing device is worn.
[0153] Computer program code for performing the operations of the embodiments of this specification can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0154] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the embodiments for storage media and computing devices are basically similar to the method embodiments, so they are described more simply; relevant parts can be referred to the descriptions of the method embodiments.
[0155] Those skilled in the art will recognize that the functions described in the embodiments of the present invention in one or more of the above examples can be implemented using hardware, software, firmware, or any combination thereof. When implemented in software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or code on a computer-readable medium.
[0156] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, or improvements made based on the technical solutions of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for determining the wearing state of an eye-wearing device, wherein the eye-wearing device is equipped with an image acquisition device, the image acquisition device being configured to face the user's eyes when the eye-wearing device is worn, the method comprising: Acquire images captured by the image acquisition device; The image includes a first image recently captured by the image acquisition device, and a second image captured by the image acquisition device before capturing the first image; Determining the wearing status of the eye-wearing device based on the image; the step of determining the wearing status of the eye-wearing device based on the image includes: determining whether the eye-wearing device is in motion based on the differences in image content between the first image and the second image; If it is determined that the eye-wearing device is in motion, a message prompting the user to wear the eye-wearing device will be output. If the eye-wearing device is determined to be in a stationary state, based on the first image, it is determined whether the eye-wearing device is worn on the eyes; wherein, determining whether the eye-wearing device is worn on the eyes based on the first image includes: inputting the first image into a state classification model to determine the current state category of the eye-wearing device, the current state category representing whether the eye-wearing device is worn on the eyes, the state classification model being a model pre-trained based on sample images and their corresponding state category labels; if the current state category represents that the eye-wearing device is worn on the face but not on the eyes, then information guiding the user to wear the eye-wearing device in a preset accurate wearing position is output.
2. The method as described in claim 1, wherein the eye-wearing device is further provided with a supplementary light source, the supplementary light source being used to provide supplementary lighting for the image capturing area of the image acquisition device.
3. The method as described in claim 2, wherein, When there is only one supplementary light source, the distance between the supplementary light source and the image acquisition device does not exceed a preset first distance.
4. The method of claim 1, wherein when there is one image acquisition device, the image acquisition device is configured to face the user's left or right eye when the eye-wearing device is worn; or, when there are at least two image acquisition devices, the image acquisition devices are configured such that, when the eye-wearing device is worn, at least one image acquisition device faces the user's left eye, and / or at least one image acquisition device faces the user's right eye.
5. The method of claim 1, further comprising: If the current state category indicates that the eye-wearing device is not worn on the face, then information indicating that the eye-wearing device should be put into standby mode is output.
6. The method of claim 1, further comprising: If the current state category indicates that the eye-wearing device is worn on the eye, the position of the human eye in the first image is identified to obtain the current position of the human eye included in the image; Obtain the preset standard human eye position corresponding to the eye-wearing device, wherein the standard human eye position is determined based on the eye-wearing device being in the preset accurate wearing position; Based on the current human eye position and the standard human eye position, determine whether the wearing position of the eye-wearing device is accurate.
7. The method of claim 6, wherein, The step of identifying the position of human eyes in the first image to obtain the current position of the included human eyes includes: The position of the human eye in the first image is identified to determine the key point positions of several key points corresponding to the human eye; based on the key point positions, the current position of the human eye is determined.
8. The method of claim 6, wherein, Determining whether the wearing position of the eye-wearing device is accurate includes: If the distance between the standard human eye position and the current human eye position in any specified direction exceeds a preset second distance in that specified direction, it is determined that the wearing position of the eye-wearing device is inaccurate. If it is determined that the distance between the standard human eye position and the current human eye position in all specified directions does not exceed the second distance in any of the specified directions, then the wearing position of the eye-wearing device is determined to be accurate.
9. The method of claim 6, wherein, The current human eye position includes the current left eye position and the current right eye position; the standard human eye position includes the standard left eye position and the standard right eye position. Determining whether the wearing position of the eye-wearing device is accurate includes: If the difference between the distance between the current left eye position and the standard left eye position and the distance between the current right eye position and the standard right eye position exceeds a preset distance difference, then the wearing position of the eye-wearing device is determined to be inaccurate.
10. The method of claim 1, wherein, The image acquisition devices are multiple, and the first images are multiple; determining the wearing status of the eye-wearing device based on the images includes: By stitching together the multiple first images, a target image is obtained; the wearing status of the eye-wearing device is determined based at least on the target image.
11. A device for determining the wearing state of an eye-wearing device, the eye-wearing device being provided with an image acquisition device, the image acquisition device being configured to face the user's eyes when the eye-wearing device is worn, the device comprising: The acquisition module is configured to acquire images captured by the image acquisition device; the images include a first image recently captured by the image acquisition device, and a second image captured by the image acquisition device before capturing the first image; The determination module is configured to determine the wearing status of the eye-wearing device based on the image. Determining the wearing status of the eye-wearing device based on the image includes: determining whether the eye-wearing device is in motion based on the differences in image content between the first image and the second image; The determining module is further configured to output a message prompting the user to wear the eye-wearing device when it is determined that the eye-wearing device is in motion. The determining module is further configured to, when determining that the eye-wearing device is in a non-moving state, determine whether the eye-wearing device is worn on the eyes based on the first image; wherein, determining whether the eye-wearing device is worn on the eyes based on the first image includes: inputting the first image into a state classification model to determine the current state category of the eye-wearing device, the current state category representing whether the eye-wearing device is worn on the eyes, the state classification model being a model pre-trained based on sample images and their corresponding state category labels; if the current state category represents that the eye-wearing device is worn on the face but not on the eyes, then outputting information guiding the user to wear the eye-wearing device in a preset accurate wearing position.
12. A computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, causes the computer to perform the method of any one of claims 1-10.
13. An eye-wearing device, comprising a memory and a processor, wherein, The memory stores executable code, and when the processor executes the executable code, it implements the method of any one of claims 1-10.
Citation Information
Patent Citations
Control method, device and appartus for head-mounted visual device
CN110174936A
Head mounted electronic device
US20170102767A1
Movement detection of a head mounted device
US20220276702A1
