Electronic device and method for displaying an image of a virtual environment

The electronic device dynamically adjusts virtual environment displays based on spatial parameters, addressing the limitation of fixed volumes in conventional devices, ensuring uninterrupted use across varying spaces.

DE102017113138B4Undetermined Publication Date: 2026-06-25LENOVO (BEIJING) LTD

Patent Information

Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
LENOVO (BEIJING) LTD
Filing Date
2017-06-14
Publication Date
2026-06-25

AI Technical Summary

Technical Problem

Conventional electronic devices for displaying virtual environments are limited by a fixed spatial volume, restricting their use in various environments due to malfunctions when the user moves from one space to another.

Method used

An electronic device equipped with a detector to sense spatial parameters, a control unit to adjust the display based on these parameters, and a display unit to dynamically adapt the virtual environment image to the current space, allowing seamless transitions and adjustments as the user moves between different spaces.

Benefits of technology

Enables the device to maintain a continuous and practical display of virtual environments regardless of changes in space, enhancing user experience by preventing interruptions and ensuring the image aligns with the user's current location.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

Electronic device (10) comprising: a control unit (12); a display unit (13) coupled to the control unit (12), wherein the display unit (13) displays images of a virtual environment; and a detector (11) coupled to the control unit (12), wherein the detector (11) detects a spatial parameter of a local space of the electronic device (10) in which the electronic device (10) is located, wherein the control unit (12) is configured to: receive the spatial parameter; determine, based on the spatial parameter, that the electronic device (10) has moved from a first space having a first spatial parameter to a second space having a second spatial parameter; and control the display unit (13) based on the result of the determination so that it displays an image of a virtual environment corresponding to the first spatial parameter.
Need to check novelty before this filing date? Find Prior Art

Description

Cross-references to a related application The present application takes priority over Chinese patent application No. 201610514281.1, filed on June 30, 2016. TECHNICAL AREA The present disclosure relates generally to the field of multimedia technologies and more specifically to an electronic device and a method for displaying an image of a virtual environment. BACKGROUND Virtual display technology can be implemented in various simulators to enhance the simulation effect and improve the modeling and simulation environment. Virtual simulation technology places a user within a simulation system, allowing them to feel as if they are part of the simulated environment. Because the user's sensory organs, such as sight, smell, and hearing, are isolated from the actual external environment, the user can perceive the virtually displayed information and concentrate more effectively on the virtual display. With the development of science and technology, electronic devices capable of displaying images of a virtual environment are increasingly used by people in their daily lives and at work. These devices have greatly improved people's daily lives and work. When a conventional electronic device with a function for displaying images of a virtual environment displays an image of a virtual environment, the spatial volume shown by the image of a virtual environment is fixed or unchanged, which limits the environment in which the electronic device can be used. Publication US 2016 / 0027212A1 discloses a head-mounted display device with a transparent display and depth sensor, configured to selectively dim or block the display of a virtual reality environment to allow the user to see the real world without interference from the virtual world when the distance between the user and a real object is detected to be less than a threshold. Document CN 1 03 810 353 A discloses a system for mapping real-world scenes and a method for mapping real-world scenes in virtual reality. The system comprises a module for capturing the real-world scene, a computing module, and a head-mounted display module. SUMMARY The object of the present invention is to enable an improved display of an image in a virtual environment. This problem is solved by the subject matter of main claim 1 and dependent claim 8, which define the present invention. Preferred embodiments of the present invention are the subject of the dependent claims. One aspect of the present disclosure provides an electronic device comprising a control unit, a display unit coupled to the control unit, and a detector coupled to the control unit. The display unit shows images of a virtual environment. The detector detects a spatial parameter of a local space within the electronic device in which the electronic device is located. The control unit receives the spatial parameter and controls the display unit based on the spatial parameter. Another aspect of the present disclosure provides a display method comprising the following steps: detecting a spatial parameter of a local space of an electronic device in which the electronic device is located; and receiving the spatial parameter and controlling a display device of the electronic device 25 based on the spatial parameter. Other aspects of the present disclosure are understandable to the person skilled in the art in view of the description, claims and drawings of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS The drawings described below show only some embodiments of the present disclosure, and it is possible for a person skilled in the art to derive other drawings from these drawings without creative effort. They show: Fig. 1 an example of an electronic device in accordance with the disclosed embodiments of the present disclosure; Fig. 2 another example of an electronic device in accordance with the disclosed embodiments of the present disclosure; Fig. 3 another example of an electronic device in accordance with the disclosed embodiments of the present disclosure; Fig. 4 an example of a process flow for displaying an image of a virtual environment in accordance with the disclosed embodiments of the present disclosure; Fig.5 a block diagram of an example of an electronic device in accordance with the disclosed embodiments of the present disclosure; and Fig. 6 an example of a holding device in accordance with the disclosed embodiments of the present disclosure. DETAILED DESCRIPTION Embodiments consistent with the disclosure are described below with reference to the drawings. Wherever possible, the same reference numerals are used in all drawings to denote the same or similar parts. The described embodiments are only some, and not all, of the embodiments of the present disclosure. Based on the disclosed embodiments, other embodiments that a person skilled in the art can achieve without creative effort fall within the scope of the present disclosure. It is known that when a conventional electronic device with a function for displaying images of a virtual environment displays an image of a virtual environment, the spatial volume shown by the image of a virtual environment is fixed or unchanged, which limits the environment in which the electronic device can be used. The present disclosure provides an electronic device. The electronic device may comprise a detector, a control unit, and a display device. The detector may detect spatial parameters of a space or environment in which the electronic device is located. Based on the spatial parameters, the control unit may control the display device to display an image of a virtual environment that corresponds to the spatial parameters. The image of a virtual environment displayed by the display device may comprise one or more images depicting the environment or space. Hereinafter, the space in which the electronic device is located is also referred to as the local space of the electronic device. The detector of the electronic device can detect the spatial parameters of the room or environment when the electronic device displays an image of a virtual environment. Based on these spatial parameters, the electronic device can control the display device to show an image of the virtual environment. The displayed virtual space, which represents the actual room or environment, may not need to be predefined. The electronic device can display an image of a virtual environment based on the spatial parameters of the device's local space. This allows the electronic device to be used even more practically in various environments. Fig. 1 depicts a structure of an example of an electronic device 10 provided by the present disclosure. The electronic device 10 comprises a detector 11, a control unit 12, and a display unit 13. The detector 11 and the display unit 13 are connected to the control unit 12 via communication lines. The detector 11 can detect the spatial parameters of the local space of the electronic device 10. Based on the spatial parameters, the control unit 12 can control the display unit 13 so that it displays an image of a virtual environment that corresponds to the spatial parameters. The image of a virtual environment displayed by the display unit can comprise one or more images that show the environment or the space. The electronic device 10 can use the detector 11 to determine the spatial parameters of the local space / environment of the electronic device. The control unit 12 can then control the display unit 13 based on these spatial parameters, causing it to display an image of a virtual environment. The spatial volume for displaying the image of a virtual environment does not necessarily need to be fixed. The electronic device 10 can display an image of a virtual environment based on the spatial environment. Using the electronic device 10 can be more practical. In some embodiments, the control unit 12 can determine, based on spatial parameters, whether the local space of the electronic device 10 has changed. For example, the control unit 12 can compare the current spatial parameters acquired at the present time with past spatial parameters acquired at a previous time and, based on the comparison, determine whether the local space of the electronic device 10 has changed. Based on this determination, the control unit 12 can control the display device 13 to show an image of a virtual environment. The change in space can include changing rooms, for example, moving from one room to another.For example, a change of space could include moving from a bedroom to a study, from a living room to a bedroom, from one bedroom to another, from an office to a lounge, from an indoor location to an outdoor location, or from an outdoor location to an indoor location. In various configurations, it could also include changing any suitable space or environment. Traditional virtual reality (VR) or augmented reality (AR) equipment often requires a fixed or defined space to display an image of a virtual environment. If the user moves from one room to another, and the current room is not suitable for displaying an image of a virtual environment—for example, because the current room is too large or too small—the traditional equipment cannot be used. For instance, if the user moves from a bedroom to a study, or from a larger bedroom to a smaller bedroom, the room dimensions can change. This can cause the traditional VR / AR equipment to malfunction.If the room changes, the user may need to temporarily turn off conventional VR / AR equipment until the user returns to the previous suitable room or moves to another suitable room to view the image of a virtual environment. In an electronic device conforming to the present disclosure, such as electronic device 10, the control unit 12 can determine, based on spatial parameters, whether the local space of the electronic device has changed. Based on the result of this determination, the control unit 12 can control the display device 13 so that it displays an image of a virtual environment. Thus, the display of an image of a virtual environment by the electronic device conforming to the disclosure is not limited to a fixed space. That is, the electronic device conforming to the disclosure can adapt to changes in space and display an image of a virtual environment accordingly. If the spatial parameters of the local space of the electronic device 10 have changed, e.g., if the electronic device 10 has moved from one room to another, the control unit 12 can control the operation of the display device 13 according to various different modes. Three examples of modes consistent with the disclosure are described below. For the purpose of illustration, it is assumed that the user who has put on or is wearing the electronic device 10 has moved from a first room to a second room, where the first room and the second room may have different dimensions. In some embodiments, the electronic device 10 may include an input interface that allows the user to select one of three modes before the display of an image of a virtual environment in the first room begins, so that the display of the image of a virtual environment can be automatically controlled by the electronic device 10 and is not interrupted when the user moves from the first room to the second room. The input interface may include a touchscreen and / or buttons. The user can choose from options such as "Pause display," "Continue displaying the previous image of a virtual environment," or "Begin displaying an image of a virtual environment corresponding to the current local room" before the display of an image in the first room begins.The specific wording to describe the modes offered by the electronic device 10 is not limited to the above description. In one mode, the control unit 12 can control the display unit 13 so that it interrupts the display of the image of a virtual environment. In this mode, the detector 11 can detect the spatial parameters of the electronic device 10's local space in real time and determine whether the electronic device 10's local space has changed. If the spatial parameter detection determines that the electronic device 10's local space has changed, the control unit 12 can, to prevent an abnormal display of the virtual environment image caused by the change in local space, control the display unit 13 so that it automatically stops displaying the virtual environment image based on the spatial parameters of the first space. When the electronic device 10 moves from the second space to the first space, the control unit 12 can control the display unit 13 so that it displays the virtual environment image based on the spatial parameters of the first space. In another mode, the control unit 12 can control the display unit 13 so that it displays an image of a virtual environment that corresponds to second spatial parameters. These second spatial parameters can be the spatial parameters detected by the detector 11 of the electronic device 10 in the second space. That is, when the electronic device 10 moves from the first space to the second space, the control unit 12 can control the display unit 13 so that it switches from displaying an image of the first virtual environment when the electronic device 10 is in the first space to displaying an image of the second virtual environment when the electronic device 10 is in the second space. In this mode, the detector 11 can also detect the spatial parameters of the local space of the electronic device 10 in real time, and the control unit 12 can determine, based on these spatial parameters, whether the local space has changed. If the spatial parameter detection determines that the local space of the electronic device 10 has changed, the control unit 12 can, in order to avoid an abnormal display of the image of a virtual environment caused by the change in local space, control the display unit 13 so that it changes the image of a first virtual environment to the image of a second virtual environment. Thus, if the local space of the electronic device 10 changes, the electronic device 10 can control the display unit 13 so that it adapts to the change in space and displays an image of a suitable virtual environment based on the change in space.Accordingly, the electronic device 10 can display an image of a virtual environment normally as the user moves, and the displayed image of the virtual environment can correspond to the spatial parameters of the user's current local space. Thus, the user can use the electronic device 10 in diverse environments. The image of a virtual environment based on the spatial parameters of the first space can be called the image of a first virtual environment. The image of a virtual environment based on the spatial parameters of the second space can be called the image of a second virtual environment. In some embodiments, the image of a first virtual environment and the image of a second virtual environment can be two images of a virtual environment that have different background environment images. In another mode, the control unit 12 can control the display unit 13 so that it displays an image of a virtual environment that corresponds to initial spatial parameters. The initial spatial parameters can be the spatial parameters of the first room detected by the detector 11 of the electronic device 10. In this mode, the detector 11 can also detect the spatial parameters of the local space of the electronic device 10 in real time, and the control unit 12 can determine whether the local space has changed. If the spatial parameter detection determines that the local space of the electronic device 10 has changed, the control unit 12 can control the display unit 13 so that it directly displays the image of a first virtual environment in the second space based on the spatial parameters of the first space. When the image of a first virtual environment is displayed in the second room, and the volume of the second room is larger than that of the first, the second room may have sufficient volume to display the image of the first virtual environment. It is possible that a portion of the second room will not be occupied by the image of the first virtual environment. Therefore, the display device 13 can control or adjust the content displayed within the image of the first virtual environment to inform the user not to move to the portion of the second room not covered by the image. This ensures that when the user moves within the second room, they cannot move beyond the image of the first virtual environment, which was created based on the spatial parameters of the first room. When the image of a first virtual environment is displayed in the second room, if the volume of the first room is larger than the volume of the second room, the control unit 12 can control the display unit 13 so that it does not display the portion of the image of the virtual environment that extends beyond the second room. That is, the image of a first virtual environment can be displayed in the second room based on the spatial parameters of the first room. However, since the image of a first virtual environment is initially displayed in the first room, which has a larger volume than the second room, a portion of the image of the first virtual environment extends beyond the second room and is inaccessible to the user. The display unit 13 can be controlled to not display the portion of the image of the first virtual environment that extends beyond the second room.This makes it easier for the user to move within the image of a first virtual environment without entering the part of that image that lacks actual spatial volume. In other words, the user can avoid entering the part of the image of a first virtual environment that extends beyond the second space. Fig. 2 depicts a structure of another electronic device 20 provided by the present disclosure. The electronic device 20 comprises the detector 11, the control unit 12, and the display unit 13. In some embodiments, as shown in Fig. 2, the detector 11 comprises an ultrasonic sensor 111. The ultrasonic sensor 111 can emit or generate an ultrasonic detection signal. The electronic device 20 can determine the spatial parameters based on the reflected ultrasonic detection signal. The ultrasonic sensor 111 can be connected to the control unit 12 via a communication line. The control unit 12 can determine the spatial parameters of a room using the ultrasonic sensor 111 and can further determine the volume of the local space of the electronic device 20. The control unit 12 can also determine the position data of an object in space and the object's volume. Based on the determination results, the control unit 12 can construct a model of an image of a virtual environment for the local space and control the display device 13 so that it displays an image of the virtual environment based on the model image of the virtual environment. Based on the principles of ultrasonic position determination, the ultrasonic sensor 111 can determine the volume of the local space of the electronic device, the position data of the object in space, and the object's volume. A three-dimensional Cartesian coordinate system O-XYZ can be created using the current position of the electronic device 20 as the starting point O. If the value of the reflected ultrasonic signal along an axis is zero or close to zero, or less than a preset threshold, it can be determined that the electronic device 20 is located in an open space. Thus, the electronic device 20 can display an image of a virtual environment within a first threshold distance along the axis. In some embodiments, an axis can correspond to a specific direction pointing toward or away from the current position of the electronic device 20. In some embodiments, as shown in Fig. 2, the detector 11 further comprises an infrared sensor 112. The infrared sensor 112, which is connected to the control unit 12 via a communication line, can detect a biological infrared signal. The biological infrared signal can include the biological infrared signal emitted by an organism other than the user using the electronic device 20. Based on the biological infrared signal, the control unit 12 can control the display unit 13 so that it displays an image of a virtual environment corresponding to the biological infrared signal emitted by the organism. The organism's position data, corresponding to the biological infrared signal in the space of the electronic device 20, can be acquired by the ultrasonic sensor 111.Thus, the position of the organism in the image of a virtual environment can change when the organism moves, and the image of a virtual environment can look more realistic and vivid. In some embodiments, the electronic device, as described in the disclosure, such as electronic device 10 or electronic device 20, may further comprise a holding device 14, as shown in Fig. 6. In the electronic device 60, the detector 11, the control unit 12, and the display unit 13 may be arranged on the holding device 14. The holding device 14 can maintain the relative positions between the user and the electronic device when the user has put on / is wearing the electronic device. In particular, the holding device 14 can comprise a helmet or a frame for glasses / safety glasses. In various embodiments, the holding device 14 can comprise another suitable attachable element, e.g., a strap. Thus, according to the disclosure, the control unit 12 can create models of images of a virtual environment based on the spatial parameters of the local space of the electronic device. For example, instead of one or more fixed models of images of a virtual environment, the control unit 20 can create a variety of suitable models of images of a virtual environment based on different spatial parameters. The various models of images of a virtual environment can be used in any suitable space for displaying an image of a virtual environment. Fig. 3 shows another example of an electronic device 30 which is consistent with the disclosure. The electronic device 30 is similar to the electronic device 10 shown in Fig. 1, except that the electronic device 30 further comprises a storage device 31. The storage device 31 can store a plurality of sets containing image elements used to create models of images of a virtual environment. A set can contain a plurality of image elements. The storage device 31 can be connected to the control unit 12 via a communication line.Based on the spatial parameters, when creating the models of images of a virtual environment, the control unit 12 can create a variety of different models of images of a virtual environment based on different spatial parameters, without being limited to one or more fixed models of images of a virtual environment. According to the disclosure, the control unit 12 can determine, based on the spatial parameters detected by the detector 11, whether the local space of the electronic device has changed. Based on the result of this determination, the electronic device 13 can control the display device 13 to show an image of a virtual environment. Thus, the image of a virtual environment displayed by the electronic device is not limited by a fixed space and can be adjusted according to changes in the local space. Furthermore, if the local space of the electronic device changes, the display device 13 can be adjusted accordingly to control the display of the image of a virtual environment. This makes it easier for the user to operate the electronic device. The detector 11 can comprise any suitable sensors and / or detectors capable of detecting the spatial parameters of a room. The display device 13 can comprise any suitable display device, such as a screen or projector, capable of displaying an image of a virtual environment. For illustrative purposes, this disclosure uses enclosed spaces, e.g., a room, to describe the functions of the electronic device. In some embodiments, the user wearing the electronic device may enter an open space from an enclosed space, or vice versa, or may move through a combination of open and enclosed spaces. The operating principles of the electronic device are similar to those previously described and are not limited by the embodiments described herein. Based on the disclosed electronic device, the present disclosure further provides a method for displaying an image of a virtual environment using the disclosed electronic device. Fig. 4 shows an example of a method for displaying an image of a virtual environment that is compatible with the embodiments of the present disclosure. As shown at S11 in Fig. 4, the electronic device obtains the spatial parameters of a local space of the electronic device. At S12, the electronic device controls a display device of the electronic device based on the spatial parameters so that it displays an image of a virtual environment that corresponds to the spatial parameters. In some embodiments, controlling the display device based on the spatial parameters so that it displays the image of a virtual environment corresponding to the spatial parameters may include determining whether the local space of the electronic device has changed and controlling the display device based on the result of the determination so that it displays the image of a virtual environment. In some embodiments, controlling the display device based on the determination result so that it displays the image of a virtual environment when the local space of the electronic device changes, for example, when the local space of the electronic device has changed from a first space to a second space, may include controlling the display device so that it does not display the image of a virtual environment. In some embodiments, controlling the display device based on the determination result, so that it displays an image of a virtual environment, can include the following: when the local space of the electronic device changes, e.g., when the local space of the electronic device has changed from the first space to the second space, the electronic device controlling the display device so that it displays an image of a virtual environment that corresponds to the second spatial parameters. The second spatial parameters can be the spatial parameters detected by the detector of the electronic device in the second space. In some embodiments, the control of the display device by the electronic device, based on the determination result, so that it displays the image of a virtual environment, can include the following: when the local space of the electronic device changes, e.g., when the local space of the electronic device has changed from the first space to the second space, the control of the display device by the electronic device so that it displays the image of a virtual environment that corresponds to the first spatial parameters. The first spatial parameters can be the spatial parameters detected by the detector of the electronic device in the first space.In these embodiments, the control of the display device by the electronic device, based on the determination result, so that it displays the image of a virtual environment, may further include the following: if the volume of the first room is greater than the volume of the second room, interrupting the display of a portion of the image of a virtual environment that extends beyond the second room, or if the volume of the first room is smaller than the volume of the second room, adjusting content displayed in the image of a virtual environment to inform the user so that they do not enter a part of the second room that is not occupied by the image of a virtual environment. In some embodiments, the method for displaying an image of a virtual environment may further include: the electronic device acquiring a biological infrared signal when the spatial parameters are measured in the local space of the electronic device. The electronic device can then control the display device based on the biological infrared signal so that it displays an image of a virtual environment that corresponds to the biological infrared signal. In the embodiments of the present disclosure, the disclosed method for displaying an image of a virtual environment can determine whether the local space of the electronic device has changed and display an image of the virtual environment based on the result of this determination. Thus, the disclosed method for displaying an image of a virtual environment is not limited to a specific, fixed space and can adapt to changes in space. If the local space of the electronic device has changed, the electronic device can control and adjust the display device based on the change in local space to control the display of the image of the virtual environment. Therefore, the disclosed electronic device can be easier for a user to operate. Fig. 5 shows a block diagram of a control unit 500, which is used as a control unit 12 in various embodiments of the present disclosure. The control unit 500 can receive, process, and execute commands from the electronic device. The control unit 500 can comprise any appropriately configured computer system. As shown in Fig. 5, the control unit 500 comprises a processor 502, a working memory (RAM) 504, a read-only memory (ROM) 506, a storage device 508, a display 510, an input / output interface 512, a database 514, and a communication interface 516. Other components can be added, and certain components can be removed, without departing from the principles of the disclosed embodiments. The Processor 502 can comprise any suitable type of general-purpose microprocessor, digital signal processor, or microcontroller and application-specific integrated circuit (ASIC). The Processor 502 can execute sequences of computer program instructions to perform various processes associated with the Control Unit 500. Computer program instructions can be loaded into RAM 504 from the Read-Only Memory 506 or the Memory Device 508 for execution by the Processor 502. The Memory Device 508 can comprise any suitable type of mass storage device provided to store any type of information that the Processor 502 may need to perform the processes. For example, the Memory Device 508 can include one or more hard disk devices, optical disk devices, flash disks, or other storage devices to provide storage space. The display 510 can provide information to one or more users of the control unit 500. The display 510 can include any suitable type of computer display or electronic display device (e.g., CRT- or LCD-based devices). The input / output interface 512 can be provided to allow users to input information into the control unit 500 or to allow users to receive information from the control unit 500. For example, the input / output interface 512 can include any suitable input device, such as a keyboard, mouse, electronic tablet, voice communication devices, touchscreens, or any other optical or wireless input devices. Furthermore, the input / output interface 512 can receive from and / or send to other external devices.In some embodiments, the input / output interface 512 may include a detector to collect the spatial parameters of the local space of the electronic device. Furthermore, the database 514 can comprise any type of commercially available or custom-designed database and can also include analysis tools for analyzing the information in the databases. The database 514 can be used to store information to create a model for a virtual environment. The communication interface 516 can provide communication links so that the control unit 500 can be accessed remotely and / or communicate with other systems via computer networks or other communication networks using various communication protocols, such as Transmission Control Protocol / Internet Protocol (TCP / IP), Hypertext Transfer Protocol (HTTP), etc. In one embodiment, a user can put on the electronic device and begin displaying an image of a virtual environment in a first room. The user can press a button on the electronic device to select the display of an image of a virtual environment that corresponds to the spatial parameters of the current local space. The electronic device can first collect the spatial parameters of the first room via the input / output interface 512, which receives the spatial parameters from the detector, and send the spatial parameters to the processor 502. The processor 502 can then execute certain predefined programs from the storage device or RAM and display an image of a virtual environment that corresponds to the spatial parameters of the first room.When the user moves from the first room to a second room, the electronic device can collect the spatial parameters of the second room via the input / output interface 512 and the detector, and send these spatial parameters to the processor 502. The processor 502 can compare the spatial parameters of the second room with those of the first room to determine whether the local space of the electronic device has changed. Based on this determination, the processor 502 can then decide to start displaying an image of a virtual environment that corresponds to the spatial parameters of the second room. The embodiments described herein are presented step by step, each focusing on the differences compared to other embodiments, and reference may be made to the various embodiments for the same / similar parts between the various embodiments. The description of the disclosed method for displaying an image of a virtual environment is relatively simple, since it corresponds to the electronic device disclosed in the embodiment, and the relevant information is described in the corresponding part of the description of the embodiments of the electronic device. In the description of the embodiments, the terms "first," "second," and the like are used only to distinguish between different objects and are not intended to suggest or indicate any differences in functions or sequences. The foregoing description of the disclosed embodiments enables the person skilled in the art to manufacture or use the device or method that is consistent with this disclosure. Various modifications to these embodiments will be apparent to the person skilled in the art, and the generic principles defined herein may be implemented in other embodiments without departing from the spirit and scope of the disclosure. Accordingly, the disclosure is not limited to the embodiments shown herein, but applies in the broadest sense in accordance with the principles and the novel features disclosed herein.

Claims

Electronic device (10) comprising: a control unit (12); a display unit (13) coupled to the control unit (12), wherein the display unit (13) displays images of a virtual environment; and a detector (11) coupled to the control unit (12), wherein the detector (11) detects a spatial parameter of a local space of the electronic device (10) in which the electronic device (10) is located, wherein the control unit (12) is configured to: receive the spatial parameter; determine, based on the spatial parameter, that the electronic device (10) has moved from a first space having a first spatial parameter to a second space having a second spatial parameter; and control the display unit (13) based on the result of the determination so that it displays an image of a virtual environment corresponding to the first spatial parameter. Electronic device (10) according to claim 1, wherein the control unit (12), in response to the fact that a volume of the first room is smaller than a volume of the second room, controls the display device (13) so that it informs a user of the electronic device (10) that a part of the second room, extending beyond the image of a virtual environment, is unreachable. Electronic device (10) according to claim 1, wherein the control unit (12) controls the display device (13) in response to the fact that a room volume of the first room is larger than a room volume of the second room, so that the display device does not display a part of the image of a virtual environment that extends beyond the second room. Electronic device (10) according to claim 1, wherein the detector (11) comprises an ultrasonic sensor (111), wherein the ultrasonic sensor (111) sends an ultrasonic signal and detects the spatial parameter based on a reflected ultrasonic signal. Electronic device (10) according to claim 4, wherein the control unit (12), in response to the fact that the local space is an open space, which is determined based on a value of the reflected ultrasound signal in a direction, controls the display device (13) so that it displays an image of a virtual environment within a threshold distance in that direction. Electronic device (10) according to claim 4, wherein: the detector (11) further comprises an infrared sensor (112), wherein the infrared sensor (112) detects a biological infrared signal, and the control unit (12) controls the display unit (13) so that the latter displays an image of a virtual environment that corresponds to the biological infrared signal. Electronic device (10) according to claim 1, further comprising a holding device (14), wherein the display device (13), the detector (11) and the control unit (12) are mounted on the holding device (14) and the holding device (14) maintains a relative position between a user of the electronic device (10) and the electronic device (10). A display method comprising the following steps: detecting a spatial parameter of a local space of an electronic device (10) in which the electronic device (10) is located; receiving the spatial parameter; determining, based on the spatial parameter, that the electronic device (10) has moved from a first space having a first spatial parameter to a second space having a second spatial parameter; and controlling a display device (13) of the electronic device (10) based on a result of the determination, so that it displays an image of a virtual environment corresponding to the first spatial parameter. Display method according to claim 8, wherein controlling the display device (13) based on the result of the determination further comprises controlling the display device (13) so that it informs a user of the electronic device (10) that a part of the second space, extending beyond the image of a virtual environment, is unreachable. Display method according to claim 8, wherein controlling the display device (13) based on the result of the determination further comprises controlling the display device (13) so that it does not display a part of the image of a virtual environment that extends beyond the second room, in response to the fact that a spatial volume of the first room is larger than a spatial volume of the second room.