Method, apparatus and device for determining a safety area

CN115731371BActive Publication Date: 2026-10-30VIVO MOBILE COMM CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211516943.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-30
Publication Date
2026-10-30
Estimated Expiration
2042-11-30

AI Technical Summary

Technical Problem

[0003]用户在体验XR游戏时,容易触碰到虚拟场景中的安全边界线,如此会中断用户的游戏体验,重新设置安全边界线操作繁琐

Benefits of technology

[0015]在本申请实施例中,通过在检测到用户在虚拟场景中触碰到安全区域的边界的情况下,若识别出用户所处的现实场景中无障碍物,则可直接将目标区域并入安全区域内,形成目标安全区域,如此可直接快速的得到新的安全区域,无需用户重新划定安全区域,且在用户触碰到安全区域的边界时,自动更新安全区域,不会中断用户的XR体验。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115731371B_ABST
    Figure CN115731371B_ABST
Patent Text Reader

Abstract

The application discloses a method, device and equipment for determining a safety area, and belongs to the technical field of extended reality. The method comprises the following steps: in the case that it is detected that a user touches the boundary of a safety area in a virtual scene, a real scene in which the user is located is identified; in the case that it is determined that there is no obstacle in the real scene, a target area is incorporated into the safety area to obtain a target safety area; wherein the target area is an area within a preset range outside the safety area, or a hotspot space area outside the safety area.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of extended reality technology, specifically relating to a method, apparatus, and device for determining a safe area. Background Technology

[0002] With the popularization of Extended Reality (XR) smart terminal devices, more and more users are experiencing the fun of XR all-in-one machines. Their immersive effect has become a standard feature, but it also brings security constraints to users. The conventional method is to set a security boundary line and regard the area within the security boundary line as the user's safe zone.

[0003] When users are playing XR games, they may accidentally touch the safety boundary lines in the virtual scene, which will interrupt their gaming experience. Resetting the safety boundary lines is a cumbersome process. Summary of the Invention

[0004] The purpose of this application is to provide a method, apparatus, and device for determining a safe area, so as to quickly redefine the safe boundary area.

[0005] In a first aspect, embodiments of this application provide a method for determining a secure area, the method comprising:

[0006] When a user is detected touching the boundary of a safe area in a virtual scene, the real-world scene in which the user is located is identified.

[0007] If it is determined that there are no obstacles in the real-world scenario, the target area is incorporated into the safe area to obtain the target safe area; wherein, the target area is an area within a preset range outside the safe area, or a hotspot space area outside the safe area.

[0008] Secondly, embodiments of this application provide a device for determining a safe area, the device comprising:

[0009] The recognition module is used to identify the real-world scene in which the user is located when the user is detected to be in a virtual scene and has touched the boundary of a safe area.

[0010] The first determining module is used to incorporate the target area into the safe area to form a target safe area when it is determined that there are no obstacles in the real scene; wherein the target area is an area within a preset range outside the safe area, or a hotspot space area outside the safe area.

[0011] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first aspect.

[0012] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.

[0013] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.

[0014] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.

[0015] In this embodiment of the application, if it is detected that the user touches the boundary of the safe area in the virtual scene and it is recognized that there are no obstacles in the real scene where the user is located, the target area can be directly merged into the safe area to form a target safe area. In this way, a new safe area can be obtained directly and quickly without the user having to redefine the safe area. Moreover, when the user touches the boundary of the safe area, the safe area is automatically updated without interrupting the user's XR experience. Attached Figure Description

[0016] Figure 1 This is one of the flowcharts illustrating a method for determining a safe area in an exemplary embodiment;

[0017] Figure 2 This is one of the schematic diagrams illustrating a method for determining a target security area in an exemplary embodiment;

[0018] Figure 3 This is a second schematic diagram illustrating a method for determining a target security area, as shown in an exemplary embodiment.

[0019] Figure 4 This is a second schematic flowchart illustrating a method for determining a safe area, as shown in an exemplary embodiment.

[0020] Figure 5 This is a schematic diagram illustrating the structure of a safety area determination device according to an exemplary embodiment;

[0021] Figure 6 This is a schematic diagram illustrating the structure of an electronic device in an exemplary embodiment;

[0022] Figure 7 This is a schematic diagram of the hardware structure of an electronic device shown in an embodiment of this application. Detailed Implementation

[0023] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0024] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0025] The method for determining the security area provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.

[0026] Figure 1 This is a flowchart illustrating a method for determining a secure area according to an embodiment of this application. The entity executing this method can be an electronic device. It should be noted that the aforementioned entity does not constitute a limitation on the embodiments of this application.

[0027] In embodiments of this application, the electronic device may be, but is not limited to, a personal computer (PC), a smartphone, a tablet computer, or a personal digital assistant (PDA).

[0028] like Figure 1 As shown, the method for determining the security area provided in this application embodiment may include steps 110-120.

[0029] Step 110: If it is detected that the user in the virtual scene has touched the boundary line of the safe area, identify the real scene in which the user is located.

[0030] Among them, the virtual scene can be the scene that the user sees in their field of vision when wearing an XR device.

[0031] In some embodiments of this application, the XR device can be any XR device worn by the user, specifically a virtual reality (VR) device, an augmented reality (AR) device, or a mixed reality (MR) device.

[0032] A safe zone is an area where users can move around safely.

[0033] In some embodiments of this application, the safe area exists both in a virtual scene and in a real scene because there is a mapping relationship between the virtual scene and the real scene when the user wears the XR device. In other words, the safe area is a mapping from the area in the real scene where the user can safely move around to the virtual scene.

[0034] In some embodiments of this application, when a user is wearing an XR device, if it is detected that the user (here, the user is a physical user, that is, a real user who is simply wearing an XR device and placed in a virtual scene) touches the boundary of the safe area, the user will be prompted that they have touched the boundary of the safe area, and the real scene will be shown to the user so that the user can observe the external environment to determine whether it is safe. At the same time, the XR content experience will not be interrupted, that is, the user will continue to be in the virtual scene.

[0035] In one example, refer to Figure 2 Area 21 is a safe area, and the boundary line 22 of area 21 is the boundary of the safe area. If it is detected that user 23 touches the boundary line 22, the camera of the electronic device can be used to obtain the real scene where the user is located, and then the camera detection algorithm can be used to automatically identify the real scene.

[0036] Step 120: If there are no obstacles in the real scene, merge the target area into the safe area to form the target safe area.

[0037] The target area can be a region within a preset range outside the safe zone, or a hotspot area outside the safe zone.

[0038] The preset range can be a pre-defined area, such as a 1-square-meter area outside the safe zone. This preset range can be set by the user according to their needs; there are no restrictions here.

[0039] In some embodiments of this application, the hotspot space area may be in a virtual scene where the user has important interactive needs and cannot interrupt the virtual scene, otherwise it will have a significant impact on the experience of the extended reality scene. This area is located outside the safe area in step 110.

[0040] The target safe zone can be the area formed by incorporating the target area into the safe zone.

[0041] In some embodiments of this application, "no obstacles in a real-world scenario" can be understood as the absence of objects or people in the user's real-world scenario that would impede the user's movement.

[0042] It is understandable that when a user wears an XR device, the user will move in the real scene. Correspondingly, the user's movement trajectory in the real scene can be mapped to the virtual scene. During the user's movement in the real scene, the user is required to be able to move without obstacles. If there are obstacles in the real scene, it will hinder the user's movement, and thus the user will also be unable to move in the virtual scene.

[0043] In this embodiment of the application, if it is detected that the user touches the boundary of the safe area in the virtual scene and it is recognized that there are no obstacles in the real scene where the user is located, the target area can be directly merged into the safe area to form a target safe area. In this way, a new safe area can be obtained directly and quickly without the user having to redefine the safe area. Moreover, when the user touches the boundary of the safe area, the safe area is automatically updated without interrupting the user's XR experience.

[0044] In some embodiments of this application, to further enhance the user experience, before incorporating the target area into the security area to form the target security area, the method for determining the security area may further include:

[0045] Based on the spatial layout in the virtual scene and the user's movement trajectory, hotspot spatial areas are identified.

[0046] In some embodiments of this application, since the hotspot area is a virtual scene where the user has important interactive needs that cannot be interrupted, otherwise it will have a significant impact on the experience of the extended reality scene, the hotspot area can be determined in advance based on the spatial layout of the virtual scene and the user's movement trajectory before the XR experience. In this way, the hotspot area can be directly incorporated into the safe area later.

[0047] In the embodiments of this application, hotspot areas are determined based on the spatial layout of the virtual scene and the user's movement trajectory. These hotspot areas can then be directly incorporated into the safe area, thereby ensuring that the user's experience is not interrupted in the hotspot areas when experiencing the extended reality scene, thus improving the user experience.

[0048] In some embodiments of this application, to further improve the user experience, the method for determining the security area mentioned above may further include, before incorporating the target area into the security area:

[0049] Determine the attribute information of the target region.

[0050] The attribute information can be related attributes of the target area, such as, but not limited to, the shape and size of the target area.

[0051] In the embodiments of this application, by determining the attribute information of the target area, a target area that meets the requirements can be obtained, thereby improving the user experience.

[0052] In some embodiments of this application, the following two methods can be used to determine the attribute information of the target region:

[0053] (1) Automatic determination

[0054] The attribute information for determining the target region may include:

[0055] Determine the attribute information of the target area based on the virtual scene in which the user is currently located.

[0056] In the embodiments of this application, the system can automatically determine the attribute information of the target area based on the virtual scene in which the user is currently located, thereby improving the efficiency of target area determination.

[0057] (2) User-defined

[0058] The attribute information for determining the target region may include:

[0059] Receive the user's first input regarding setting the attribute information of the target area;

[0060] In response to the first input, determine the attribute information of the target region.

[0061] The first input can be attribute information used to determine the target area. Specifically, the first input can be a setting operation for the attribute information of the target area. For example, it can be a pop-up window that allows setting the attribute information of the target area. The first input can be, but is not limited to, clicking, double-clicking, typing, voice input, or gesture input on the pop-up window, or it can be a combination of at least two of the above inputs. There is no limitation here.

[0062] In the embodiments of this application, by responding to the user's setting operation on the attribute information of the target area, the attribute information of the target area can be determined. In this way, the target area required by the user can be obtained according to the user's needs, satisfying the user's personalized needs and improving the user experience.

[0063] In some embodiments of this application, to avoid accidental operations and further improve the user experience, the method for determining the security area mentioned above may further include the following before incorporating the target area into the security area to form the target security area:

[0064] Display a prompt message;

[0065] Receive the user's second input;

[0066] The process of incorporating the target area into the safe area to form a target safe area may include:

[0067] In response to the second input, the target area is incorporated into the safe area to form the target safe area.

[0068] The prompt information can be used to alert the user, specifically to alert the user that they have touched the boundary of a safe area, or to alert the user to the location of a target area.

[0069] In some embodiments of this application, the notification that the user has touched the boundary of the safe area can be made in the form of a pop-up window, which can display the text message "You have touched the boundary of the safe area". Alternatively, it can be made by voice broadcasting the notification that the user has touched the boundary of the safe area. Or, the boundary of the safe area can be highlighted by flashing when the user touches it. Or, it can be a combination of at least two of the above methods. The specific notification method can be set according to the user's needs and is not limited here.

[0070] In some embodiments of this application, highlighting the location of the user's target area can be achieved by flashing and highlighting the target area. The specific prompting method can be set according to the user's needs and is not limited here.

[0071] The second input can be used to incorporate the target area into the safe area to form the target safe area. The second input can be, but is not limited to, user click input, double click input, voice input or gesture input, etc., or it can be a combination of at least two of the above inputs. There are no restrictions here.

[0072] In one example, if the system detects that there are no obstacles in the user's real-world environment, a prompt message can pop up indicating that the user has touched the boundary of a safe area in the virtual scene. The prompt message asks the user whether they want to expand the safe area. If the user selects yes, the target area can be displayed, and the user can be asked whether they want to merge the target area into the safe area. If the user selects yes, the target area can be merged into the safe area.

[0073] In the embodiments of this application, by displaying prompt information, users can intuitively see that they have touched the boundary of the safe area and can intuitively see the location of the target area. Then, in response to the user's second input, the target area can be merged into the safe area to form a target safe area. In this way, after the user executes the second input, the target area can be directly merged into the safe area to form a target safe area, without the need for the user to manually draw lines, which improves the efficiency and accuracy of determining the target safe area. In addition, the target area is merged into the safe area only after the user executes the second input, which avoids user misoperation and further improves the user experience.

[0074] In some embodiments of this application, different methods can be used to incorporate the target area into the safe area, depending on the target area. Specific implementation methods are as follows:

[0075] (1) When the target area is a pre-defined area outside the safe zone.

[0076] In one example, continue to refer to Figure 2 Taking a target area of ​​1m2 as an example, and a target area of ​​circular shape as an example, if there are no obstacles in the real scene where the user is located, a circular area of ​​1m2 is added outward to the original safe area 21 to obtain the target safe area (the sum of area 21 and area 24).

[0077] This solves the problem that XR all-in-one terminal users are forced to return to the center of the scene after temporarily touching the boundary of the safe area, otherwise the image will be lost.

[0078] (2) When the target area is a hotspot space outside the safe zone.

[0079] In one example, reference Figure 3 Region 31 is a safe zone, and boundary line 32 of region 31 is the boundary of the safe zone. Region 34 is a pre-defined hotspot space region located outside the safe zone. If user 33 is detected touching boundary 32, and the user moves closer to hotspot space region 34, and the electronic device automatically observes that there are no obstacles in the user's real-world scene, then calculations and line drawing are performed. Specifically, hotspot space region 34 can be drawn into safe zone 31 to obtain the target safe zone (the sum of region 34 and region 31).

[0080] This solves the problem of having to reset the security zone when there are slight, local differences between the original security zone settings and the user's game area requirements, which would interrupt the experience and incur high costs.

[0081] In some embodiments of this application, to further enhance the user experience, after step 120, the method for determining the security area mentioned above may further include:

[0082] Receive third input from the user;

[0083] In response to the third input, the target safe area is applied to the virtual scene.

[0084] The third input can be the application of the target safe area into the virtual scene. This third input can be, but is not limited to, user click input, double-click input, voice input, or gesture input, or it can be a combination of at least two of the above inputs. There are no restrictions on this.

[0085] In one example, after obtaining the target safe area, a prompt window can be displayed to ask the user to confirm whether the current target safe area is the final safe area. If the user selects yes, the target safe area can be applied to the virtual scene.

[0086] In another example, when the user confirms whether to apply the determined target security area to the virtual scene, a selection time can be preset for the user to confirm. This time can be set according to the user's needs and is not limited here.

[0087] In the embodiments of this application, the target safe area is applied to the virtual scene in response to the user's third input. This way, the target safe area is applied to the virtual scene only after the user performs the third input, avoiding user misoperation and further improving the user experience.

[0088] In some embodiments of this application, to more clearly understand the technical solution of this application, the embodiments of this application also provide another possible implementation of the method for determining the security area, such as... Figure 4 As shown, the method for determining the security area provided in this application embodiment may include steps 410-480.

[0089] Step 410: If the user is detected touching the boundary of the safe area in the virtual scene, identify the real scene in which the user is located.

[0090] Step 410 is the same as step 110 in the above embodiment, and will not be described again here.

[0091] Step 420: Determine if there are any obstacles in the real-world scene. If not, proceed to step 430.

[0092] Step 430: A prompt message will pop up.

[0093] The prompt message can be used to alert the user that they have touched the boundary of a safe area, or to indicate the location of the target area.

[0094] Step 440: Determine whether the user confirms merging the target area into the safe area. If yes, proceed to steps 450 and 460.

[0095] Step 450: Quickly expand the area in place.

[0096] In step 450, the in-situ rapid expansion of the area can be achieved by referring to the above method of merging the target area into the safe area when the target area is within the preset range of the safe area, thus obtaining the target safe area.

[0097] Step 460: Customize the line-filled area.

[0098] In step 460, the custom line-filling area can be expanded by referring to the above method of merging the target area into the safe area when the target area is a hotspot space outside the safe area, thus obtaining the target safe area.

[0099] Step 470: Update the security zone.

[0100] In step 470, updating the security region means updating the target security region to the latest security region.

[0101] Step 480: Continuously monitor the boundaries of the secure area.

[0102] In the above embodiments, regardless of which method is used to determine the target safe area, the target safe area is refreshed. At this time, the user is within the normal safe range, turns off perspective, the original XR scene is restored, and the original immersive experience continues. Simultaneously, the electronic device will continue to monitor the refreshed target safe area.

[0103] In the embodiments of this application, users can combine the perspective effect when touching the boundary to confirm the safe area and simultaneously expand the safe area appropriately. The expansion of the safe area occurs during the XR scene runtime, thus not interrupting the XR experience and improving the user experience.

[0104] The method for determining a safe area provided in this application can be executed by a device for determining a safe area. This application uses an example of a device for determining a safe area executing the method to illustrate the device for determining a safe area provided in this application.

[0105] Figure 5 This is a schematic diagram of a device for determining a safe area according to an exemplary embodiment.

[0106] like Figure 5 As shown, the device 500 for determining the safe area may include:

[0107] The identification module 510 is used to identify the real-world scene in which the user is located when the user is detected touching the boundary of a safe area in a virtual scene.

[0108] The first determining module 520 is used to incorporate the target area into the safe area to form a target safe area when it is determined that there are no obstacles in the real scene; wherein the target area is an area within a preset range outside the safe area, or a hotspot space area outside the safe area.

[0109] In the embodiments of this application, when the recognition module detects that the user has touched the boundary of the safe area in the virtual environment, it identifies the real environment in which the user is located. Based on the first determination module determining that there are no obstacles in the real environment in which the user is located, the target area can be directly merged into the safe area to form a target safe area. In this way, a new safe area can be obtained directly and quickly without the user having to redefine the safe area. Moreover, when the user touches the boundary of the safe area, the safe area is automatically updated without interrupting the user's XR experience.

[0110] In some embodiments of this application, to further enhance the user experience, the aforementioned security area determination device may further include:

[0111] The second determining module is used to determine the hotspot spatial area based on the spatial layout in the virtual scene and the user's movement trajectory.

[0112] In some embodiments of this application, to further enhance the user experience, the aforementioned security area determination device may further include:

[0113] The fourth determining module is used to determine the attribute information of the target area; wherein the attribute information includes shape and size.

[0114] In some embodiments of this application, to further enhance the user experience, the fourth determining module may specifically include:

[0115] The first receiving unit is used to receive a first input from the user to set the attribute information of the target area;

[0116] The first determining unit is configured to determine the attribute information of the target region in response to the first input.

[0117] In some embodiments of this application, to further enhance the user experience, the aforementioned security area determination device may further include:

[0118] The display module is used to display prompt information, which is used to prompt the user that the user has touched the boundary of the safe area and to prompt the user the location of the target area;

[0119] The receiving module is used to receive the user's second input;

[0120] The first determining module is specifically used for:

[0121] In response to the second input, the target area is incorporated into the safe area to obtain the target safe area.

[0122] The device for determining the secure area in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or any other device besides a terminal.

[0123] For example, electronic devices can be mobile phones, tablets, laptops, handheld computers, in-vehicle electronic devices, mobile internet devices (MID), augmented reality (AR) / virtual reality (VR) devices, robots, wearable devices, ultra-mobile personal computers (UMPCs), netbooks, or personal digital assistants (PDAs), etc. They can also be servers, network attached storage (NAS), personal computers (PCs), televisions (TVs), ATMs, or self-service machines, etc. The embodiments of this application do not impose specific limitations.

[0124] The device for determining the safe area in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit it.

[0125] The device for determining a safe area provided in this application embodiment can achieve... Figure 1 and Figure 4 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.

[0126] Optionally, such as Figure 6As shown, this application embodiment also provides an electronic device 600, including a processor 601 and a memory 602. The memory 602 stores a program or instructions that can run on the processor 601. When the program or instructions are executed by the processor 601, they implement the various steps of the above-mentioned method embodiment for determining the security area and can achieve the same technical effect. To avoid repetition, they will not be described again here.

[0127] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.

[0128] Figure 7 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.

[0129] The electronic device 700 includes, but is not limited to, components such as: radio frequency unit 701, network module 702, audio output unit 703, input unit 704, sensor 705, display unit 706, user input unit 707, interface unit 708, memory 709, and processor 710.

[0130] Those skilled in the art will understand that the electronic device 700 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 710 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 7 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0131] The processor 710 is configured to identify the real-world scene in which the user is located when the user is detected touching the boundary of the safe area in the virtual scene; and to merge the target area into the safe area to obtain a target safe area when it is determined that there are no obstacles in the real-world scene; wherein the target area is an area within a preset range outside the safe area, or a hotspot space area outside the safe area.

[0132] Thus, by detecting when a user touches the boundary of a safe area in a virtual scene, if it is determined that there are no obstacles in the user's real-world scene, the target area can be directly merged into the safe area to form a target safe area. This allows for a direct and quick acquisition of a new safe area without requiring the user to redefine it. Furthermore, the safe area is automatically updated when the user touches its boundary, without interrupting the user's XR experience.

[0133] Optionally, the processor 710 is also used to determine the hotspot spatial region based on the spatial layout in the virtual scene and the user's movement trajectory.

[0134] In this way, by using the spatial layout of the virtual scene and the user's movement trajectory, hotspot areas can be identified. These hotspot areas can then be directly incorporated into the safe area, ensuring that the user experience is not interrupted in the hotspot areas when experiencing extended reality scenes, thus improving the user experience.

[0135] Optionally, the processor 710 is further configured to determine attribute information of the target region; wherein the attribute information includes shape and size.

[0136] In this way, by determining the attribute information of the target area, the target area that meets the requirements can be obtained, thus improving the user experience.

[0137] Optionally, the user input unit 707 is used to receive a first input from the user to set the attribute information of the target area;

[0138] The processor 710 is also configured to determine attribute information of the target region in response to the first input.

[0139] In this way, by responding to the user's setting operation of the target area's attribute information, the attribute information of the target area is determined. Thus, the target area required by the user can be obtained according to the user's needs, satisfying the user's personalized needs and improving the user experience.

[0140] Optionally, the display unit 706 is used to display prompt information, which is used to prompt the user that the user has touched the boundary of the safe area and to prompt the user the location of the target area;

[0141] User input unit 707 is also used to receive a second input from the user;

[0142] The processor 710 is also configured to, in response to the second input, incorporate the target region into the safe region to obtain the target safe region.

[0143] In this way, by displaying prompts, users can intuitively see that they have touched the boundary of the safe area and can also intuitively see the location of the target area. Then, in response to the user's second input, the target area can be merged into the safe area to form a target safe area. Thus, after the user executes the second input, the target area can be directly merged into the safe area to form a target safe area, without the need for the user to manually draw lines, which improves the efficiency and accuracy of determining the target safe area. In addition, the target area is merged into the safe area only after the user executes the second input, which avoids user misoperation and further improves the user experience.

[0144] It should be understood that, in this embodiment, the input unit 704 may include a graphics processing unit (GPU) 7041 and a microphone 7042. The GPU 7041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 706 may include a display panel 7061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 707 includes at least one of a touch panel 7071 and other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 may include a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.

[0145] The memory 709 can be used to store software programs and various data. The memory 709 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 709 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 709 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.

[0146] Processor 710 may include one or more processing units; optionally, processor 710 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 710.

[0147] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described method for determining the security area and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0148] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0149] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described method embodiment for determining the security area, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0150] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0151] This application provides a computer program product stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-described method embodiment for determining a secure area, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0152] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0153] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0154] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A method for determining a safe area, characterized in that, The method includes: When a user is detected touching the boundary of a safe area in a virtual scene, the real-world scene in which the user is located is identified. If it is determined that there are no obstacles in the real scene, the target area is incorporated into the safe area to obtain the target safe area; wherein, the target area is an area within a preset range outside the safe area, or a hotspot space area outside the safe area, and the hotspot space area is an area in the virtual scene where the user has interactive needs; Before incorporating the target area into the safe area to obtain the target safe area, the method further includes: Display prompt information, which is used to indicate to the user that they have touched the boundary of the safe area, and to indicate to the user the location of the target area; Receive the user's second input; The step of incorporating the target region into the safe region to obtain the target safe region includes: In response to the second input, the target region is incorporated into the safe region to obtain the target safe region; After incorporating the target area into the safe area to obtain the target safe area, the method further includes: Receive third input from the user; In response to the third input, the target safe area is applied to the virtual scene.

2. The method according to claim 1, characterized in that, Before incorporating the target area into the safe area to obtain the target safe area, the method further includes: Based on the spatial layout in the virtual scene and the user's movement trajectory, the hotspot spatial area is determined.

3. The method according to claim 1, characterized in that, Before incorporating the target area into the safe area, the method further includes: Determine the attribute information of the target region; wherein the attribute information includes: shape and size.

4. The method according to claim 3, characterized in that, The determination of the attribute information of the target region includes: Receive the first input from the user regarding setting the attribute information of the target area; In response to the first input, the attribute information of the target region is determined.

5. A device for determining a safe area, characterized in that, The device includes: The recognition module is used to identify the real-world scene in which the user is located when the user is detected to be in a virtual scene and has touched the boundary of a safe area. The first determining module is used to incorporate the target area into the safe area to form a target safe area when it is determined that there are no obstacles in the real scene; wherein, the target area is an area within a preset range outside the safe area, or a hotspot space area outside the safe area, and the hotspot space area is an area in the virtual scene where the user has interactive needs; The device further includes: The display module is used to display prompt information, which is used to prompt the user that the user has touched the boundary of the safe area and to prompt the user the location of the target area; The receiving module is used to receive the user's second input; The first determining module is specifically used for: In response to the second input, the target region is incorporated into the safe region to obtain the target safe region; The receiving module is also used to receive a third input from the user; The device further includes: The application module is used to apply the target security area to the virtual scene in response to a third input.

6. The apparatus according to claim 5, characterized in that, The device further includes: The second determining module is used to determine the hotspot spatial area based on the spatial layout in the virtual scene and the user's movement trajectory.

7. The apparatus according to claim 5, characterized in that, The device further includes: The fourth determining module is used to determine the attribute information of the target area; wherein the attribute information includes shape and size.

8. The apparatus according to claim 7, characterized in that, The fourth determining module includes: The first receiving unit is used to receive a first input from the user to set the attribute information of the target area; The first determining unit is configured to determine the attribute information of the target region in response to the first input.

9. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the method for determining a security area as described in any one of claims 1-4.

Citation Information

Patent Citations

  • Updating method and device of security area, equipment and medium

    CN115098524A