Device control method and apparatus, and electronic device

By detecting the contact risk value between the target device and obstacles in the virtual reality device, if the preset conditions are met, the perspective function is turned on to prompt the user to approach the obstacle, which solves the potential safety hazards caused by the user approaching obstacles in the virtual reality device and improves the improve the security and usage experience of the device.

WO2024188103A1PCT designated stage expired Publication Date: 2024-09-19BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/080075
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-14
Filing Date
2024-03-05
Publication Date
2024-09-19

AI Technical Summary

Technical Problem

In virtual reality and mixed reality devices, users may be in danger when approaching obstacles in the virtual environment. Existing technologies fail to effectively prompt users, leading to safety hazards.

Method used

By determining the contact risk value between the target device (such as a headset and handle) and obstacles, if the contact risk value meets the preset conditions, the perspective function is turned on so that the user can see real objects in the virtual environment, thereby prompting User avoids danger.

Benefits of technology

It improves the safety of users when using virtual reality equipment. The perspective function prompts users to approach obstacles to avoid potential dangers, which improves the safety and use experience of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024080075_19092024_PF_FP_ABST
    Figure CN2024080075_19092024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed are a device control method and apparatus, and an electronic device. The device control method comprises: determining a contact risk value between a target device and a target obstacle, the target device comprising a head-mounted device and / or a handle; and activating, in response to the detection that the contact risk value between the target device and the target obstacle meets a first preset condition, a see-through function of the target device.
Need to check novelty before this filing date? Find Prior Art

Description

Device control method, apparatus, and electronic device

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is based on the Chinese application with application number 202310262977.X and application date March 14, 2023, and claims its priority. The disclosed content of the Chinese application is hereby introduced as a whole into this application. Technical Field

[0003] The present disclosure relates to the field of device control technology, and in particular to a device control method, apparatus, and electronic device. Background Art

[0004] With the development of computer technology, VR (Virtual Reality) devices, MR (Mixed Reality) devices, etc. can build virtual environments such as virtual scenes and virtual characters for users, allowing users to immerse themselves in the virtual environment.

[0005] Summary of the Invention

[0006] This disclosure section is provided to briefly introduce concepts that will be described in detail in the detailed description section below. This disclosure section is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

[0007] The embodiments of the present disclosure provide a device control method, apparatus, and electronic device, which provide prompts to users through a perspective function, thereby improving the safety of device use.

[0008] In a first aspect, an embodiment of the present disclosure provides a device control method, including: determining a contact risk value between a target device and a target obstacle; the target device includes a head-mounted device and / or a handle; in response to detecting that the contact risk value between the target device and the target obstacle meets a first preset condition, turning on a perspective function of the target device.

[0009] In second aspect, an embodiment of the present disclosure provides a device control device, comprising: a determination unit for determining a contact risk value between a target device and a target obstacle; the target device comprises a head-mounted device and / or a handle; and a control unit for turning on a perspective function of the target device in response to detecting that the contact risk value between the target device and the target obstacle meets a first preset condition.

[0010] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the device control method as described in the first aspect.

[0011] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the device control method as described in the first aspect.

[0012] The device control method, apparatus, and electronic device provided by the embodiments of the present disclosure determine a contact risk value between a target device and a target obstacle, and enable a perspective function of the target device when it is detected that the contact risk value meets a first preset condition. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale.

[0014] FIG1 is a flow chart of an embodiment of a device control method according to the present disclosure;

[0015] FIG2 is a schematic structural diagram of an embodiment of a device control apparatus according to the present disclosure;

[0016] FIG3 is an exemplary system architecture in which the device control method according to an embodiment of the present disclosure may be applied;

[0017] FIG4 is a schematic diagram of a basic structure of an electronic device provided according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0018] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.

[0019] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0020] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "based, at least in part, on." The term "one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one additional embodiment," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.

[0021] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0022] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".

[0023] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0024] The technical solutions provided by the embodiments of the present disclosure can be applied to various devices that can realize the construction and interaction of virtual scenes, such as VR devices, MR devices, etc.

[0025] For these devices, virtual environments such as virtual scenes and virtual characters can be built for users, and interactive functions of these virtual scenes and virtual characters can be realized, allowing users to immerse themselves in the virtual environment.

[0026] However, the virtual environment constructed by these devices may have obstacles, which may be the boundaries of the virtual environment or obstacles in the real environment. When the user approaches these obstacles, if the user is not prompted, dangerous situations may occur.

[0027] Based on this, embodiments of the present disclosure provide a device control solution that determines a contact risk value between a target device and a target obstacle. Upon detecting that the contact risk value satisfies a first preset condition, the target device's perspective function is activated. It will be appreciated that the perspective function enables a user to see real objects in a virtual environment. Thus, when there is a risk of contact between the target device and the target obstacle, activating the perspective function can serve as a user alert, improving safety for the user when using the target device.

[0028] The target device can be understood as a device related to realizing virtual reality functions, such as a head-mounted device, a controller, etc.

[0029] Please refer to Figure 1, which shows a process flow of an embodiment of a device control method according to the present disclosure. The device control method can be applied to a terminal device, which can be the target device itself or a control device corresponding to the target device. As shown in Figure 1, the device control method includes the following steps:

[0030] Step 101: Determine the contact risk value between the target device and the target obstacle, wherein the target device includes a head-mounted device and / or a handle.

[0031] Therefore, in some embodiments, both the head-mounted device and the handle can be controlled according to the technical solutions of the embodiments of the present disclosure. In other embodiments, either the head-mounted device or the handle can be controlled according to the technical solutions of the embodiments of the present disclosure.

[0032] In some embodiments, step 101 includes determining a contact risk value based on movement data of the target device and / or a distance between the target device and a target obstacle.

[0033] In some embodiments, the distance between the target device and the target obstacle is determined as the contact risk value.

[0034] In other embodiments, the contact risk value includes: distance and movement data between the target device and the target obstacle.

[0035] The movement data may include at least one of movement direction, movement speed and movement acceleration.

[0036] In some other embodiments, the contact risk value is an integrated value of the distance and movement data between the target device and the target obstacle.

[0037] In some embodiments, the integrated value may be expressed as: distance*distance weight value+mobility data*mobility data weight value.

[0038] The distance weight value and the mobile data weight value can be configured in combination with different application scenarios, and the specific values ​​are not limited here.

[0039] In some embodiments, the distance detection process between the target device and the target obstacle includes: tracking the motion state of the target device, including position and posture; detecting the target obstacle; and calculating the distance between the target device and the target obstacle in real time.

[0040] Therefore, in order to determine the distance between the target device and the target obstacle, it is necessary to detect the target device and the target obstacle separately, and then calculate the distance between the two based on the detection results.

[0041] In some embodiments, the target obstacle includes: a virtual object in a virtual scene; and / or a real object in a real scene.

[0042] Virtual objects, such as safety fences, can be understood as the boundaries of virtual scenes. Real objects, such as human bodies and pets, can be understood as the boundaries of virtual scenes.

[0043] In some embodiments, the distance between the target device and the target obstacle is: the distance between the target device and the target obstacle in the moving direction.

[0044] For example, when the target device moves forward, the distance between the target obstacle in front and the target device is detected.

[0045] In some embodiments, the distance between the target device and the target obstacle may be a direct distance between the two or an indirect distance between the two.

[0046] For example, the distance between the handle and the safety fence can be not only the distance between the handle and the safety fence, but also the distance between the hand and the safety fence; the distance between the head-mounted device and the safety fence can be not only the distance between the head-mounted device and the safety fence, but also the distance between the head or neck and the safety fence.

[0047] In some embodiments, the detection of the target obstacle is achieved by detecting the surface of the target obstacle.

[0048] In some embodiments, detection of the target device can be achieved by sensors on the head-mounted device and the handle, by other sensors and tracking kits worn by the user, or by motion capture using a camera as a visual solution.

[0049] In some embodiments, surface detection of real obstacles can be achieved through automatic detection (visual solutions, ToF (Time of Flight), structured light, etc.) or manual calibration (drawing a cube, free-form surface, or sculpture, clay sculpture, etc.). That is, a spatial surface of the obstacle is created (calibrated) through user interaction. This spatial surface can be scanned and stored, scanned in real time, or scanned and updated intermittently.

[0050] In some embodiments, if the obstacle is an obstacle in a virtual scene, the obstacle is known relative to the virtual scene and no special detection is required.

[0051] Thus, after tracking the target device and detecting the surface of the obstacle, the distance between the target device and the obstacle can be calculated in real time. The distance calculation method can refer to the well-established distance calculation methods in the art and will not be described in detail here.

[0052] In some embodiments, the moving direction of the target device can be realized through the aforementioned tracking process of the target device, that is, the moving direction can be detected while detecting the position and posture.

[0053] In some embodiments, the moving speed and the moving acceleration of the target device can be calculated in real time during the movement of the target device based on the moving distance and the moving time of the target device.

[0054] In some embodiments, the target device includes a head-mounted device and a handle, and the contact risk value is determined for the head-mounted device and the handle respectively.

[0055] In other embodiments, the target device includes a head-mounted device or a handle, and the contact risk value may be determined for the head-mounted device or the handle.

[0056] Step 102 : In response to detecting that a contact risk value between the target device and the target obstacle satisfies a first preset condition, enabling a perspective function of the target device.

[0057] In some embodiments, the contact risk value includes the distance between the target device and the target obstacle. The first preset condition may include: the distance is less than a preset distance value. When this first preset condition is met, it indicates that there is a contact risk between the target device and the target obstacle. The preset distance value can be set based on different obstacles and is not limited to a specific value.

[0058] In some embodiments, the contact risk value includes movement data and the distance between the target device and the target obstacle. The first preset condition may include: the distance is less than a preset distance value, and / or the movement data is greater than a preset movement data value. When this first preset condition is met, it indicates that there is a contact risk between the target device and the target obstacle. The preset distance value and the preset movement data value can be set based on different obstacles and are not limited to specific values.

[0059] In some embodiments, the contact risk value includes movement data, and the first preset condition may include: the movement data is greater than a preset movement data value; when this first preset condition is met, it indicates that there is a contact risk between the target device and the target obstacle. The preset movement data value can be set based on different obstacles and is not limited to a specific value.

[0060] In some embodiments, the contact risk value is an integrated risk value corresponding to the movement data and the distance between the target device and the target obstacle. The first preset condition may include: the integrated risk value is greater than a preset risk value; when this first preset condition is met, it indicates that there is a contact risk between the target device and the target obstacle. The preset risk value can be set based on different obstacles and is not limited to a specific value.

[0061] Furthermore, when it is detected that the contact risk value between the target device and the target obstacle meets the first preset condition, the perspective function of the target device can be turned on, so that the user can see the real environment, which serves as a prompt.

[0062] In some embodiments, the perspective range of the perspective function can be a preset perspective range, which can be configured in combination with different obstacles. For example, if the obstacle is large, the perspective range will be larger; if the obstacle is small, the perspective range can be smaller.

[0063] In some embodiments, the device control method further includes: after turning on the perspective function of the target device, controlling the perspective range according to a change in the contact risk value between the target device and the target obstacle.

[0064] In some embodiments, the contact risk value is determined in real time during the movement of the target device, and the perspective range may be changed accordingly as the contact risk value changes.

[0065] For example, assuming that the contact risk refers to a distance value, as the distance decreases, the perspective range increases; as the distance increases, the perspective range decreases, and so on.

[0066] In some embodiments, the device control method further includes: in response to detecting that the target device is in a stationary state for a preset time period, turning off the perspective function of the target device.

[0067] In some embodiments, after the clairvoyance feature is enabled, a prompt or warning may have already been issued to the user. At this point, if the user perceives danger, they may not continue the activity or interaction. Therefore, when the target device is detected to be stationary for a predetermined period of time, the clairvoyance feature of the target device may be disabled.

[0068] The preset duration can be configured based on different application scenarios or determined based on the aforementioned exposure risk value. For example, if the distance is large, the preset duration can be shorter; if the distance is small, the preset duration can be longer.

[0069] In some embodiments, the perspective function of the target device may be turned off when it is detected that a change in the contact risk value between the target device and the target obstacle meets a condition.

[0070] For example, if the contact risk value is a distance value, the perspective function of the target device may be disabled after detecting that the target device exceeds a certain distance from the target obstacle.

[0071] For another example, if the contact risk value includes a distance value and movement data, when it is detected that the target device exceeds a certain distance from the target obstacle and the movement data changes significantly, the perspective function of the target device can be turned off.

[0072] Alternatively, the perspective function of the target device may be turned off in other situations where the risk of contact between the target device and the obstacle to the target device is reduced.

[0073] In some embodiments, the target device's perspective function can be turned off directly or by gradually reducing the perspective range. That is, as the risk of contact decreases, the perspective range is gradually reduced until the perspective function is turned off.

[0074] In the embodiments of the present disclosure, by disabling the perspective function of the target device, excessive disturbance to the user can be avoided, thereby improving the user's device usage experience and interactive experience.

[0075] As an optional implementation, the device control method further includes: in response to detecting that a contact risk value between the target device and the target obstacle satisfies a second preset condition, controlling the target device to provide a prompt.

[0076] In this embodiment, when it is detected that the contact risk value between the target device and the target obstacle meets the second preset condition, a prompt may also be given to the user.

[0077] In some embodiments, the target device may be configured with two risk warning functions, one is to enable the perspective function, and the other is to enable the warning function; therefore, before the user uses the target device, the user may configure which risk warning function to use.

[0078] The configuration method may be, for example, configuring a function selection button on the target device, and selecting a risk warning mode through the function selection button to achieve switching between the two risk warning functions.

[0079] In other embodiments, both risk warning functions may be implemented, that is, since the first preset condition and the second preset condition are different, the two risk warning functions may be independent, and when different conditions are met, different risk warning methods are executed without conflict.

[0080] Then, in some embodiments, the user may not configure which risk warning function to use; or, in other embodiments, the user may configure a risk warning mode that uses two risk warning functions together, which is not limited here.

[0081] In some embodiments, the method for determining the contact risk value between the target device and the target obstacle can refer to the introduction in the above embodiments.

[0082] In some embodiments, referring to the implementation of the aforementioned first preset condition, the distance preset value, movement data preset value, preset risk value, etc. in the second preset condition may be correspondingly different from those in the first preset condition.

[0083] Furthermore, the implementation of the second preset condition may refer to the implementation of the first preset condition, but some preset values ​​therein are different.

[0084] In some embodiments, controlling the target device to provide a prompt includes: controlling the target device to output prompt information; the prompt information includes: a vibration prompt.

[0085] In some embodiments, the target device is a handle. When it is determined that the contact risk value meets the second preset condition, the handle can be controlled to vibrate to provide a user prompt.

[0086] In some embodiments, the target device is a head-mounted device. When it is determined that the contact risk value meets the second preset condition, the head-mounted device can be controlled to vibrate to provide a user prompt.

[0087] In some embodiments, the vibration intensity of the handle can be greater than the vibration intensity of the head-mounted device.

[0088] In some embodiments, the prompt information may also include: voice prompt information, special prompt information in the virtual scene.

[0089] The special prompt information includes, for example, generating a special virtual object in a virtual scene. The virtual object may be in various forms and is not limited here.

[0090] As an optional implementation, the device control method further includes: in response to detecting that the target device is in a stationary state for a preset time period, controlling the target device to cancel the prompt.

[0091] In some embodiments, after the target device is controlled to issue a prompt, a prompt or warning may have already been issued to the user. At this point, if the user perceives danger, they may not continue the activity or interaction. Therefore, when it is detected that the target device has been stationary for a predetermined period of time, the target device may be controlled to cancel the prompt.

[0092] The preset duration can be configured based on different application scenarios or determined based on the aforementioned exposure risk value. For example, if the distance is large, the preset duration can be shorter; if the distance is small, the preset duration can be longer.

[0093] In some embodiments, the target device may be controlled to cancel the prompt when it is detected that the change in the contact risk value between the target device and the target obstacle meets a condition.

[0094] For example, if the contact risk value is a distance value, the target device may be controlled to cancel the prompt after detecting that the target device exceeds a certain distance from the target obstacle.

[0095] For another example, if the contact risk value includes a distance value and movement data, when it is detected that the target device exceeds a certain distance from the target obstacle and the movement data changes significantly, the target device can be controlled to cancel the prompt.

[0096] Alternatively, the target device may be controlled to cancel the prompt in other situations where the risk of contact between the target device and the target device obstacle is reduced.

[0097] In some embodiments, the target device may be controlled to cancel the prompt directly or by gradually reducing the prompt intensity. That is, as the contact risk decreases, the prompt intensity is gradually reduced until the prompt is cancelled.

[0098] In the embodiments of the present disclosure, by controlling the target device to cancel the prompt, excessive disturbance to the user can be avoided, and the user's device usage experience and interaction experience can be improved.

[0099] In some embodiments, after the target device is controlled to provide a prompt, the prompt intensity is controlled according to a change in the contact risk value between the target device and the target obstacle.

[0100] In some embodiments, the contact risk value is determined in real time during the movement of the target device, and the prompt intensity can be changed accordingly as the contact risk value changes.

[0101] For example, assuming that the contact risk index includes a distance value, as the distance decreases, the prompt intensity increases; as the distance increases, the prompt intensity decreases, and so on.

[0102] As described in the preceding embodiments, the device control solution provided by the disclosed embodiments determines a contact risk value between a target device and a target obstacle, and activates the target device's see-through function when it is detected that the contact risk value satisfies a first preset condition. It will be understood that the see-through function enables a user to see real objects in a virtual environment. Thus, when there is a risk of contact between the target device and the target obstacle, activating the see-through function can serve as a user alert, improving the safety of the user's use of the target device.

[0103] Further referring to FIG2 , as an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a device control apparatus. The embodiment of the apparatus corresponds to the embodiment of the device control method shown in FIG1 , and the apparatus can be specifically applied to various electronic devices.

[0104] As shown in Figure 2, the device control device of this embodiment includes: a determination unit 201, used to determine the contact risk value between the target device and the target obstacle; the target device includes a head-mounted device and / or a handle; a control unit 202, used to turn on the perspective function of the target device in response to detecting that the contact risk value between the target device and the target obstacle meets a first preset condition.

[0105] In some embodiments, the control unit 202 is further configured to: after the perspective function of the target device is enabled, control the perspective range according to a change in the contact risk value between the target device and the target obstacle.

[0106] In some embodiments, the control unit 202 is further configured to: in response to detecting that the target device is in a stationary state for a preset time period, disable the perspective function of the target device.

[0107] In some embodiments, the determining unit 201 is further configured to: determine the contact risk value based on movement data of the target device and / or the distance between the target device and the target obstacle.

[0108] In some embodiments, the movement data includes at least one of movement direction, movement speed, and movement acceleration.

[0109] In some embodiments, the control unit 202 is further configured to: in response to detecting that a contact risk value between the target device and the target obstacle satisfies a second preset condition, control the target device to issue a prompt.

[0110] In some embodiments, the control unit 202 is further configured to: after controlling the target device to provide a prompt, control the prompt intensity according to a change in the contact risk value between the target device and the target obstacle.

[0111] In some embodiments, the control unit 202 is further configured to: in response to detecting that the target device is in a stationary state for a preset time period, control the target device to cancel the prompt.

[0112] In some embodiments, the control unit 202 is further configured to: control the target device to output prompt information; the prompt information includes: a vibration prompt.

[0113] In some embodiments, the target obstacle includes: a virtual object in a virtual scene; and / or a real object in a real scene.

[0114] Please refer to FIG. 3 , which shows an exemplary system architecture in which the device control method according to an embodiment of the present disclosure can be applied.

[0115] As shown in Figure 3, the system architecture may include terminal devices 301, 302, and 303, a network 304, and a server 305. The network 304 may be used as a medium to provide a communication link between the terminal devices 301, 302, and 303 and the server 305. The network 304 may include various connection types, such as wired or wireless communication links or fiber optic cables.

[0116] Terminal devices 301, 302, and 303 can interact with server 305 via network 304 to receive or send messages, etc. Various client applications can be installed on terminal devices 301, 302, and 303, such as web browser applications, search applications, and news and information applications. The client applications in terminal devices 301, 302, and 303 can receive user instructions and perform corresponding functions based on the user instructions, such as adding corresponding information to the message based on the user's instructions.

[0117] Terminal devices 301, 302, 303 can be hardware or software. When terminal devices 301, 302, 303 are hardware, they can be various electronic devices with display screens and support web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4) players, laptop computers and desktop computers, etc. When terminal devices 301, 302, 303 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, software or software modules used to provide distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.

[0118] The server 305 may be a server that provides various services, such as receiving information acquisition requests sent by the terminal devices 301, 302, and 303, acquiring display information corresponding to the information acquisition requests through various means according to the information acquisition requests, and sending relevant data of the display information to the terminal devices 301, 302, and 303.

[0119] It should be noted that the device control method provided in the embodiment of the present disclosure can be executed by a terminal device, and accordingly, the device control apparatus can be provided in the terminal devices 301, 302, and 303. In addition, the device control method provided in the embodiment of the present disclosure can also be executed by the server 305, and accordingly, the device control apparatus can be provided in the server 305.

[0120] It should be understood that the number of terminal devices, networks and servers in Figure 3 is only illustrative and any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0121] Reference is now made to FIG4 , which illustrates a schematic diagram of the structure of an electronic device suitable for implementing an embodiment of the present disclosure (e.g., a terminal device or server in FIG4 ). The terminal device in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device illustrated in FIG4 is merely an example and should not limit the functionality and scope of use of the embodiment of the present disclosure.

[0122] As shown in Figure 4, the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage device 408 into a random access memory (RAM) 403. Various programs and data required for the operation of the electronic device 400 are also stored in the RAM 403. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.

[0123] Typically, the following devices may be connected to I / O interface 405: input device 406 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output device 407 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage device 408 including, for example, a magnetic tape, hard disk, etc.; and communication device 409. Communication device 409 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although FIG4 illustrates an electronic device with various devices, it should be understood that not all of the devices shown are required to be implemented or present. More or fewer devices may alternatively be implemented or present.

[0124] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 409, or installed from the storage device 408, or installed from the ROM 402. When the computer program is executed by the processing device 401, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.

[0125] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0126] In some embodiments, the client and server can communicate using any currently known or later developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or later developed network.

[0127] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0128] The computer-readable medium carries one or more programs, which, when executed by the electronic device, causes the electronic device to: determine a contact risk value between a target device and a target obstacle; the target device includes a head-mounted device and / or a handle;

[0129] In response to detecting that a contact risk value between the target device and the target obstacle meets a first preset condition, enabling a perspective function of the target device.

[0130] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0131] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0132] The units involved in the embodiments described in this disclosure may be implemented in software or hardware. The name of a unit does not, in some cases, limit the unit itself. For example, the determination unit 401 may also be described as a "unit for determining a contact risk value between a target device and a target obstacle."

[0133] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0134] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0135] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also encompasses other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in the present disclosure.

[0136] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0137] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims

1. A device control method, comprising: determining a contact risk value between a target device and a target obstacle; The target device includes a head mounted device and / or a handle; In response to detecting that a contact risk value between the target device and the target obstacle satisfies a first preset condition, enabling a perspective function of the target device.

2. The device control method according to claim 1, wherein: The device control method further includes: After the perspective function of the target device is turned on, the perspective range is controlled according to the change of the contact risk value between the target device and the target obstacle.

3. The device control method according to any one of claims 1 to 2, wherein: The device control method further includes: In response to detecting that the target device is in a stationary state for a preset time period, turning off the perspective function of the target device.

4. The device control method according to any one of claims 1 to 3, wherein: The step of determining a contact risk value between the target device and the target obstacle includes: The contact risk value is determined based on movement data of the target device and / or a distance between the target device and the target obstacle.

5. The device control method according to claim 4, wherein: The movement data includes at least one of a movement direction, a movement speed and a movement acceleration.

6. The device control method according to any one of claims 1 to 5, wherein: The device control method further includes: In response to detecting that the contact risk value between the target device and the target obstacle meets a second preset condition, controlling the target device to give a prompt.

7. The device control method according to claim 6, wherein: The device control method further includes: After the target device is controlled to give a prompt, the prompt intensity is controlled according to a change in a contact risk value between the target device and the target obstacle.

8. The device control method according to any one of claims 6 to 7, wherein: The device control method further includes: In response to detecting that the target device is in a stationary state for a preset time period, the target device is controlled to cancel the prompt.

9. The device control method according to any one of claims 6 to 8, wherein: The controlling the target device to provide a prompt includes: Control the target device to output prompt information; the prompt information includes: vibration prompt.

10. The device control method according to any one of claims 1 to 9, wherein: The target obstacles include: virtual objects in a virtual scene; and / or real objects in a real scene.

11. A device control apparatus, comprising: a determination unit, used to determine a contact risk value between a target device and a target obstacle; The target device includes a head mounted device and / or a handle; The control unit is configured to enable a perspective function of the target device in response to detecting that a contact risk value between the target device and the target obstacle satisfies a first preset condition.

12. An electronic device comprising: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 10.

13. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.

14. A computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Virtual reality device, and control method and apparatus for virtual reality device

    CN108614635A

  • VR display method and device, and VR equipment

    CN108960008A

  • Obstacle avoidance method, virtual reality head-mounted device and storage medium

    CN111260789A

  • Obstacle prompting method in AR (Augmented Reality) guide, head-mounted display equipment and readable medium

    CN114647305A

  • Method for automatically adjusting virtual protection area of VR equipment and electronic equipment

    CN115167660A