CN115373818A - Application method, device and medium of floating window based on head-mounted device - Google Patents
Application method, device and medium of floating window based on head-mounted device Download PDFInfo
- Publication number
- CN115373818A CN115373818A CN202211019903.5A CN202211019903A CN115373818A CN 115373818 A CN115373818 A CN 115373818A CN 202211019903 A CN202211019903 A CN 202211019903A CN 115373818 A CN115373818 A CN 115373818A
- Authority
- CN
- China
- Prior art keywords
- floating window
- instruction
- application
- user
- window
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/4881—Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/017—Gesture based interaction, e.g. based on a set of recognized hand gestures
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域technical field
本申请涉及头戴式设备技术领域,特别是涉及一种基于头戴式设备的悬浮窗应用方法、装置及其介质。The present application relates to the technical field of head-mounted devices, in particular to a method, device and medium for applying a floating window based on a head-mounted device.
背景技术Background technique
随着头戴式设备的发展,尤其是增强现实(Augmented Reality,AR)/虚拟现实(Virtual Reality,VR)产品,已经能支持多种应用同时进行,通常是将一个应用显示在前端,其余的应用作为后台应用在后台继续运行,但于后台运行的应用不会被用户感知到。用户不能在打开某一应用的前提下,对另一应用进行查看或操作,从而影响了用户的使用体验。With the development of head-mounted devices, especially augmented reality (Augmented Reality, AR)/virtual reality (Virtual Reality, VR) products, it has been able to support multiple applications at the same time, usually one application is displayed on the front, and the rest The application continues to run in the background as a background application, but the application running in the background will not be perceived by the user. The user cannot view or operate another application on the premise of opening a certain application, thereby affecting the user experience.
所以,现在本领域的技术人员亟需要一种基于头戴式设备的悬浮窗应用方法,解决目前的头戴式设备产品不能在打开某一应用的同时对另一应用进行查看或操作的问题。Therefore, those skilled in the art urgently need a method for applying a floating window based on a head-mounted device to solve the problem that current head-mounted device products cannot view or operate another application while opening a certain application.
发明内容Contents of the invention
本申请的目的是提供一种基于头戴式设备的悬浮窗应用方法、装置及其介质,提供一种适用于头戴式设备产品的悬浮窗应用方法。The purpose of this application is to provide a method for applying a floating window based on a head-mounted device, a device and its medium, and to provide a method for applying a floating window suitable for a head-mounted device product.
为解决上述技术问题,本申请提供一种基于头戴式设备的悬浮窗应用方法,包括:In order to solve the above technical problems, this application provides a method for applying a floating window based on a head-mounted device, including:
获取用户指令,并确定用户指令是否为预设指令集中的指令;其中,预设指令集包括:悬浮窗唤出指令和悬浮窗退出指令;Obtaining user instructions, and determining whether the user instructions are instructions in a preset instruction set; wherein, the preset instruction set includes: a floating window calling instruction and a floating window exit instruction;
当用户指令为悬浮窗唤出指令时,将后台应用待显示的图像以悬浮窗口的形式显示在当前窗口中;其中,悬浮窗口的尺寸和位置为预设的尺寸和位置;When the user instructs to invoke an instruction for the floating window, the image to be displayed by the background application is displayed in the current window in the form of a floating window; wherein, the size and position of the floating window are the preset size and position;
当用户指令为悬浮窗退出指令时,关闭悬浮窗口。When the user command is a suspension window exit command, close the suspension window.
优选地,后台应用存在多个时,预设指令集还包括:应用选定指令;Preferably, when there are multiple background applications, the preset instruction set further includes: application selection instructions;
对应的,将后台应用待显示的图像以悬浮窗口的形式显示在当前窗口中包括:Correspondingly, displaying the image to be displayed by the background application in the current window in the form of a floating window includes:
当用户指令为应用选定指令时,根据应用选择指令确定后台应用中唯一的目标应用;When the user instruction is an application selection instruction, determine the only target application in the background application according to the application selection instruction;
将目标应用的图像作为待显示图像以悬浮窗口的形式显示在当前窗口中。The image of the target application is displayed in the current window in the form of a floating window as the image to be displayed.
优选地,预设指令集还包括:权限选择指令;Preferably, the preset instruction set further includes: a permission selection instruction;
对应的,将后台应用待显示的图像以悬浮窗口的形式显示在当前窗口中包括:Correspondingly, displaying the image to be displayed by the background application in the current window in the form of a floating window includes:
当用户指令为权限选择指令时,根据权限选择指令将后台应用待显示的图像以对应权限的悬浮窗口形式显示在当前窗口中;其中,权限包括:查看权限和操作权限。When the user instruction is a permission selection instruction, according to the permission selection instruction, the image to be displayed by the background application is displayed in the current window in the form of a floating window corresponding to the permission; wherein, the permission includes: viewing permission and operation permission.
优选地,预设指令集还包括:应用切换指令;Preferably, the preset instruction set further includes: an application switching instruction;
对应的,本方法还包括:Correspondingly, this method also includes:
当用户指令为应用切换指令时,根据应用切换指令重新确定后台应用待显示的图像,并显示在悬浮窗口中。When the user instruction is an application switching instruction, the image to be displayed by the background application is re-determined according to the application switching instruction, and displayed in the floating window.
优选地,预设指令集还包括:权限切换指令;Preferably, the preset instruction set further includes: a permission switching instruction;
对应的,本方法还包括:Correspondingly, this method also includes:
当用户指令为权限切换指令时,切换当前悬浮窗口的权限为另一权限。When the user command is a permission switching command, switch the permission of the current floating window to another permission.
优选地,预设指令集还包括:浮窗缩放指令;Preferably, the preset instruction set further includes: a floating window scaling instruction;
对应的,本方法还包括:Correspondingly, this method also includes:
当用户指令为浮窗缩放指令时,根据浮窗缩放指令调整悬浮窗口的大小。When the user command is a floating window scaling command, the size of the floating window is adjusted according to the floating window scaling command.
优选地,获取用户指令包括:Preferably, obtaining user instructions includes:
通过手势识别模块获取用户指令,对应的,用户指令为手势指令。The user instruction is obtained through the gesture recognition module, and correspondingly, the user instruction is a gesture instruction.
为解决上述技术问题,本申请还提供一种基于头戴式设备的悬浮窗应用装置,包括:In order to solve the above technical problems, this application also provides a floating window application device based on a head-mounted device, including:
指令获取模块,用于获取用户指令,并确定用户指令是否为预设指令集中的指令;其中,预设指令集包括:悬浮窗唤出指令和悬浮窗退出指令;The instruction acquisition module is used to obtain user instructions and determine whether the user instructions are instructions in the preset instruction set; wherein, the preset instruction set includes: floating window calling instruction and floating window exit instruction;
浮窗唤出模块,用于当用户指令为悬浮窗唤出指令时,将后台应用待显示的图像以悬浮窗口的形式显示在当前窗口中;其中,悬浮窗口的尺寸和位置为预设的尺寸和位置;The floating window calling module is used to display the image to be displayed in the background application in the current window in the form of a floating window when the user's instruction is a floating window calling instruction; wherein, the size and position of the floating window are preset sizes and location;
浮窗退出模块,用于当用户指令为悬浮窗退出指令时,关闭悬浮窗口。The floating window exit module is used to close the floating window when the user command is a floating window exit command.
优选地,还包括:Preferably, it also includes:
应用选定模块,用于当用户指令为应用选定指令时,根据应用选择指令确定后台应用中唯一的目标应用。The application selection module is configured to determine the unique target application in the background application according to the application selection instruction when the user instruction is an application selection instruction.
权限选择模块,用于当用户指令为权限选择指令时,根据权限选择指令将后台应用待显示的图像以对应权限的悬浮窗口形式显示在当前窗口中;其中,权限包括:查看权限和操作权限。The authority selection module is used to display the image to be displayed by the background application in the current window in the form of a floating window corresponding to the authority according to the authority selection instruction when the user instruction is an authority selection instruction; wherein, the authority includes: viewing authority and operation authority.
应用切换模块,用于当用户指令为应用切换指令时,根据应用切换指令重新确定后台应用待显示的图像,并显示在悬浮窗口中。The application switching module is configured to re-determine the image to be displayed by the background application according to the application switching instruction when the user instruction is an application switching instruction, and display it in the floating window.
权限切换模块,用于当用户指令为权限切换指令时,切换当前悬浮窗口的权限为另一权限。The authority switching module is used to switch the authority of the current floating window to another authority when the user instruction is an authority switching instruction.
浮窗缩放模块,用于当用户指令为浮窗缩放指令时,根据浮窗缩放指令调整悬浮窗口的大小。The floating window scaling module is configured to adjust the size of the floating window according to the floating window scaling command when the user command is a floating window scaling command.
为解决上述技术问题,本申请还提供一种基于头戴式设备的悬浮窗应用装置,包括:In order to solve the above technical problems, this application also provides a floating window application device based on a head-mounted device, including:
存储器,用于存储计算机程序;memory for storing computer programs;
处理器,用于执行计算机程序时实现如上述的基于头戴式设备的悬浮窗应用方法的步骤。The processor is configured to implement the steps of the above method for applying a floating window based on a head-mounted device when executing a computer program.
为解决上述技术问题,本申请还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现如上述的基于头戴式设备的悬浮窗应用方法的步骤。In order to solve the above-mentioned technical problems, the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned floating window application method based on a head-mounted device is realized. A step of.
本申请提供的一种基于头戴式设备的悬浮窗应用方法,根据预设的指令集确定不同用户指令对应的操作行为,从而实现当头戴式设备产品通过内置的指令采集模块采集用户的指令,并在用户指令为悬浮窗唤出指令时,将后台应用以悬浮窗口的形式显示在当前窗口中,且悬浮窗口的尺寸小于当前窗口的尺寸,进而可在保持打开当前应用的同时,对另一应用进行查看或操作,提供了一种适用于头戴式设备产品的悬浮窗应用方法,进一步提高了用户使用头戴式设备产品的操作体验。The application method of a floating window based on a head-mounted device provided by this application determines the operation behavior corresponding to different user instructions according to the preset instruction set, so that when the head-mounted device product collects the user's instructions through the built-in instruction collection module , and when the user command calls out the command for the floating window, the background application is displayed in the current window in the form of a floating window, and the size of the floating window is smaller than the size of the current window, so that while keeping the current application open, other To view or operate an application, a floating window application method suitable for head-mounted device products is provided, which further improves the user's operating experience of using the head-mounted device product.
本申请提供的基于头戴式设备的悬浮窗应用装置、及计算机可读存储介质,与上述方法对应,效果同上。The head-mounted device-based floating window application device and the computer-readable storage medium provided by the present application correspond to the above method, and the effect is the same as above.
附图说明Description of drawings
为了更清楚地说明本申请实施例,下面将对实施例中所需要使用的附图做简单的介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the embodiments of the present application more clearly, the following will briefly introduce the accompanying drawings used in the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. As far as people are concerned, other drawings can also be obtained based on these drawings on the premise of not paying creative work.
图1为本发明提供的一种基于头戴式设备的悬浮窗应用方法的流程图;FIG. 1 is a flow chart of a method for applying a floating window based on a head-mounted device provided by the present invention;
图2为本发明提供的一种AR设备投射真实场景的流程图;FIG. 2 is a flowchart of an AR device projecting a real scene provided by the present invention;
图3为本发明提供的一种基于头戴式设备的悬浮窗应用装置的结构图;Fig. 3 is a structural diagram of a floating window application device based on a head-mounted device provided by the present invention;
图4为本发明提供的另一种基于头戴式设备的悬浮窗应用装置的结构图。FIG. 4 is a structural diagram of another head-mounted device-based floating window application device provided by the present invention.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下,所获得的所有其他实施例,都属于本申请保护范围。The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of this application.
本申请的核心是提供一种基于头戴式设备的悬浮窗应用方法、装置及其介质。The core of the present application is to provide a method, device and medium for applying a floating window based on a head-mounted device.
为了使本技术领域的人员更好地理解本申请方案,下面结合附图和具体实施方式对本申请作进一步的详细说明。In order to enable those skilled in the art to better understand the solution of the present application, the present application will be further described in detail below in conjunction with the drawings and specific implementation methods.
目前,以AR/VR为代表的头戴式设备发展迅速,无论从硬件还是软件上都有着很大的改善,但相比于手机、个人计算机(Personal Computer,PC)、平板电脑等移动终端来说,还有所不足。在某些应用场景下,例如对于文件下载过程的查看、歌词提示的悬浮等这种用户需要在对一个应用进行操作的同时还关注另一个应用的情况,悬浮功能尤为重要。At present, head-mounted devices represented by AR/VR are developing rapidly, and both hardware and software have been greatly improved. However, compared with mobile terminals such as mobile phones, personal computers (PC), and tablets, Said, there are still some deficiencies. In some application scenarios, such as viewing the file download process and hovering lyrics prompts, etc., the user needs to focus on another application while operating one application, the suspension function is particularly important.
对于现有的AR/VR设备,并没有悬浮窗功能的应用,若要强行实现只能通过软件插件的形式将手机、PC等移动终端上的操作系统移植到VR/AR设备中,通过控制移植过来的系统对AR/VR设备本身的应用进行悬浮窗的操作,这种方式在极其不便利的同时,还会占用AR/VR设备的处理器等硬件装置的大量运行资源,影响设备性能的同时也额外增加了成本。For existing AR/VR devices, there is no floating window application. If you want to forcibly realize it, you can only transplant the operating systems on mobile terminals such as mobile phones and PCs to VR/AR devices in the form of software plug-ins. The previous system operates the floating window for the application of the AR/VR device itself. This method is extremely inconvenient, and at the same time, it will occupy a large amount of operating resources of hardware devices such as the processor of the AR/VR device, affecting the performance of the device. It also increases the cost.
基于上述原因,如图1所示,本申请提供一种基于头戴式设备的悬浮窗应用方法,包括:Based on the above reasons, as shown in Figure 1, the present application provides a method for applying a floating window based on a head-mounted device, including:
S11:获取用户指令,并确定用户指令是否为预设指令集中的指令。S11: Obtain a user instruction, and determine whether the user instruction is an instruction in a preset instruction set.
其中,预设指令集包括:悬浮窗唤出指令和悬浮窗退出指令。但实际上,上述预设指令集中所包含的指令仅为一种可能的实施方式,本申请并未限制于预设指令集中仅包含悬浮窗唤出指令和悬浮窗退出指令,在后续的优选方案中,预设指令集还可以包括:用于选定具体唤出某一个后台应用悬浮窗的应用选定指令、用于确定悬浮窗权限的权限选择指令、用于切换当前悬浮窗显示应用的应用切换指令、用于切换当前悬浮窗权限的权限切换指令、以及用于调整悬浮窗大小的浮窗缩放指令等。Wherein, the preset instruction set includes: a floating window calling instruction and a floating window exit instruction. But in fact, the instructions contained in the above-mentioned preset instruction set are only one possible implementation mode. Among them, the preset instruction set may also include: an application selection instruction for selecting a specific background application floating window, a permission selection instruction for determining the permission of the floating window, and an application for switching the application displayed in the current floating window. A switching instruction, a permission switching instruction for switching the permission of the current floating window, and a floating window zooming instruction for adjusting the size of the floating window, etc.
而对于获取用户指令的方式,可根据AR/VR设备配置有的信息采集模块而定,通常来说,由于AR/VR设备的特性,都会配置有手势识别模块,用于采集用户的手势动作。具体的,手势识别模块可以是图像识别模块,采集用户的动作图像信息,进行图像识别解析出用户的手势动作,对应于不同的用户指令,以对AR/VR设备进行相应的操作;信息采集模块还可以是语音识别模块,采集用户的语音信息,以实现相应的操控;另外,信息采集模块还可以是超声波检测模块,通过检测用户的手或其他部位的位置变化,确定用户的手势,进而对应于不同的用户指令,完成对AR/VR设备的操作。本申请不限制于对用户指令采集的具体途径,但提供一种优选的实施方案,获取用户指令包括:The method of obtaining user instructions can be determined according to the information collection module configured in the AR/VR device. Generally speaking, due to the characteristics of the AR/VR device, a gesture recognition module will be configured to collect user gestures. Specifically, the gesture recognition module may be an image recognition module, which collects the user's action image information, performs image recognition and analyzes the user's gestures, and corresponds to different user instructions to perform corresponding operations on the AR/VR device; the information collection module It can also be a voice recognition module, which collects the user's voice information to achieve corresponding manipulation; in addition, the information collection module can also be an ultrasonic detection module, which determines the user's gesture by detecting the position change of the user's hand or other parts, and then corresponds to Based on different user instructions, complete the operation of the AR/VR device. This application is not limited to the specific way of collecting user instructions, but provides a preferred implementation solution, obtaining user instructions includes:
通过手势识别模块获取用户指令。Obtain user instructions through the gesture recognition module.
对应的,用户指令为手势指令。Correspondingly, the user instruction is a gesture instruction.
本实施例通过AR/VR设备中最常配置的手势识别模块,实现对于用户指令的采集,无需额外的硬件装置,且适应于AR/VR设备的特征,进一步提高了用户的使用体验。In this embodiment, the most commonly configured gesture recognition module in AR/VR equipment realizes the collection of user instructions without requiring additional hardware devices, and adapts to the characteristics of AR/VR equipment, further improving user experience.
S12:当用户指令为悬浮窗唤出指令时,将后台应用待显示的图像以悬浮窗口的形式显示在当前窗口中。S12: When the user's instruction is to invoke an instruction for the floating window, display the image to be displayed by the background application in the current window in the form of a floating window.
其中,悬浮窗口的尺寸和位置为预设的尺寸和位置。对于悬浮窗口来说,可以以预设的大小显示在当前窗口中,且预设的大小小于当前窗口的大小。也可以根据后续的用户指令对悬浮窗口的大小进行调整。而对于悬浮窗口的显示位置,一般而言设置在当前显示区域的上方或者下方。Wherein, the size and position of the floating window are preset size and position. For the floating window, it can be displayed in the current window with a preset size, and the preset size is smaller than the size of the current window. The size of the floating window may also be adjusted according to subsequent user instructions. As for the display position of the floating window, generally speaking, it is set above or below the current display area.
但在部分特定的应用场景下,悬浮窗口也可以叠加在真实场景中,此时悬浮窗口的位置和尺寸由实际环境所决定。更具体的,例如悬浮窗口可以设置在真实物件的非遮挡区域,也即用户可以直观、毫无阻碍看到的区域。或者,悬浮窗口的位置可以根据用户注视区域进行调整,对于用户的注视区域可通过AR/VR设备中设置有的眼动仪等装置实现,眼动仪等眼球追踪装置追踪用户的眼动轨迹,从而确定用户当前的注视区域,将悬浮窗口投射到注视区域中,便于用户直观的看到悬浮窗所显示的内容和信息。However, in some specific application scenarios, the floating window can also be superimposed on the real scene. At this time, the position and size of the floating window are determined by the actual environment. More specifically, for example, the floating window can be set in the non-occluded area of the real object, that is, the area that the user can see intuitively and without hindrance. Or, the position of the floating window can be adjusted according to the user's gaze area, and the user's gaze area can be realized by an eye tracker and other devices installed in the AR/VR device, and the eye tracker and other eye tracking devices track the user's eye movement trajectory, In this way, the user's current gaze area is determined, and the floating window is projected into the gaze area, so that the user can intuitively see the content and information displayed on the floating window.
另外,若用户当前的注视区域中存在别的窗口,则可根据预先配置调整悬浮窗口的尺寸和位置,例如,悬浮窗口的尺寸小于当前用户的整个注视区域,位置处于当前注视区域的偏上部分区域、或偏下部分区域。更进一步的,若注视区域存在其他窗口,且该窗口未覆盖完整的注视区域,则悬浮窗口可显示在注视区域中其他窗口所覆盖不到的位置,以此实现既能满足用户直观、便捷地查看到悬浮窗所显示内容、又不会影响用户其它视觉观感的效果。In addition, if there are other windows in the user's current gaze area, the size and position of the floating window can be adjusted according to the pre-configuration, for example, the size of the floating window is smaller than the entire gaze area of the current user, and the position is in the upper part of the current gaze area area, or the lower part of the area. Furthermore, if there are other windows in the gaze area, and the window does not cover the complete gaze area, the floating window can be displayed in a position that cannot be covered by other windows in the gaze area, so as to satisfy the user's intuitive and convenient View the content displayed in the floating window without affecting the user's other visual perception.
另外,对于AR设备来说,若AR设备悬浮窗显示的是真实场景(也即采集真实的场景信息再通过光机等装置投射出来),且该真实场景于云端处有备份数据时,可直接通过下载云端数据进行悬浮窗内容的投射,从而有效地降低延迟。这种真实场景于云端处有备份数据的情况具体可能是本次进行投影的真实场景信息相较于上次进行采集时无变化,也可能是多个设备对同一场景进行投射,此时仅需一个设备采集现场真实的场景信息,再上传至云端,其他设备便无需自己采集,通过云端的数据即可实现对真实场景的投射。具体的应用场景如图2所示,包括:AR设备21、云端服务器22、用户23和真实场景24。In addition, for AR devices, if the floating window of the AR device displays the real scene (that is, the real scene information is collected and then projected through devices such as optical machines), and the real scene has backup data in the cloud, you can directly By downloading cloud data to project the content of the floating window, the delay can be effectively reduced. This kind of real scene has backup data on the cloud. Specifically, it may be that the real scene information projected this time has not changed compared with the previous collection, or it may be that multiple devices are projecting the same scene. At this time, only One device collects the real scene information on site, and then uploads it to the cloud. Other devices do not need to collect it themselves, and can realize the projection of the real scene through the data in the cloud. A specific application scenario is shown in FIG. 2 , including: an AR device 21 , a cloud server 22 , a user 23 and a real scene 24 .
S13:当用户指令为悬浮窗退出指令时,关闭悬浮窗口。S13: When the user instruction is an instruction to exit the floating window, close the floating window.
本申请提供了一种基于头戴式设备的悬浮窗应用方法,通过预设的指令集,比对采集到的用户指令,从而将后台应用以悬浮窗口的形式显示在当前窗口中,实现悬浮窗的唤出,以及在相应的用户指令下,关闭当前悬浮窗口,实现于AR/VR设备中,在打开当前应用的情况下,也能对其他应用进行查看或操作,进一步提高用户的使用体验。This application provides a floating window application method based on a head-mounted device. Through the preset instruction set, the collected user instructions are compared, so that the background application is displayed in the current window in the form of a floating window, and the floating window is realized. Call out, and close the current floating window under the corresponding user instruction, which is implemented in the AR/VR device. When the current application is opened, other applications can also be viewed or operated, further improving the user experience.
由上述可知,预设指令集中还可以包括其他指令,以更好地实现悬浮功能的应用。因此,本实施例提供一种优选的实施方案,预设指令集还包括:应用选定指令;It can be known from the above that the preset instruction set may also include other instructions to better realize the application of the hovering function. Therefore, this embodiment provides a preferred implementation solution, and the preset instruction set further includes: applying a selected instruction;
对应的,将后台应用待显示的图像以悬浮窗口的形式显示在当前窗口中包括:Correspondingly, displaying the image to be displayed by the background application in the current window in the form of a floating window includes:
当用户指令为应用选定指令时,根据应用选择指令确定后台应用中唯一的目标应用;When the user instruction is an application selection instruction, determine the only target application in the background application according to the application selection instruction;
将目标应用的图像作为待显示图像以悬浮窗口的形式显示在当前窗口中。The image of the target application is displayed in the current window in the form of a floating window as the image to be displayed.
容易理解的是,在AR/VR设备的实际使用时,后台应用不一定唯一,所以当需要唤出后台应用的悬浮窗口时,需要确定选中某一个或某几个后台应用,由于选中一个后台应用和选中多个后台应用的原理相同,下面以选中某一个后台应用为例进行说明:It is easy to understand that in the actual use of AR/VR devices, the background application is not necessarily unique, so when it is necessary to call out the floating window of the background application, it is necessary to select one or several background applications, because selecting a background application The principle is the same as selecting multiple background applications. The following uses selecting a background application as an example to illustrate:
一种可能的实施方式为:应用选定指令包括多条子指令,每条子指令对应于不同的后台应用,当判断出当前用户指令为某一子指令时,唤出对应的后台应用悬浮窗口。A possible implementation manner is: the application selection command includes multiple sub-commands, each sub-command corresponds to a different background application, and when it is determined that the current user command is a certain sub-command, the corresponding background application floating window is invoked.
这种实施方式的优势在于唤出悬浮窗口所需输入的用户指令少,仅需检测到一个对应的子指令即可唤出对应的后台应用悬浮窗口。The advantage of this embodiment is that few user commands are required to call out the floating window, and only one corresponding sub-command needs to be detected to call out the corresponding background application floating window.
另一种可能的实施方式为:应用选定指令包括至少一个用于切换选定目标的子指令,和用于确定当前选定目标为目标应用的子指令。Another possible implementation manner is that: the application selection instruction includes at least one sub-instruction for switching the selected target, and a sub-instruction for determining that the currently selected target is the target application.
当用于切换选定目标的子指令为一个时,后台应用应根据预设的顺序进行排列(可以是应用打开的先后顺序,也可是最近一次应用打开的先后顺序),然后当用户指令为上述用于切换选定目标的子指令时,根据顺序切换下一后台应用为选定目标,直至切换到预期的后台应用后,可通过输入确定当前选定目标为目标应用的子指令进行选定,以便于后续的悬浮窗口唤出。When there is only one sub-command for switching the selected target, the background applications should be arranged according to the preset order (it can be the order in which the applications were opened, or the order in which the most recent applications were opened), and then when the user command is the above When the sub-command used to switch the selected target, switch the next background application as the selected target according to the order, until after switching to the expected background application, it can be selected by inputting a sub-command to confirm that the currently selected target is the target application, In order to call out the subsequent floating window.
这种实施方式的优势在于:对应的选定目标应用的指令数量不受后台应用数量的限制,可以简单地通过用于切换选定目标的子指令和用于确定当前选定目标为目标应用的子指令对任意多的后台应用进行选取。The advantage of this implementation is that the number of instructions for the corresponding selected target application is not limited by the number of background applications, and the sub-instruction for switching the selected target and the instruction for determining the currently selected target as the target application can be simply used. Subcommands select any number of background applications.
于实际应用中可根据后台应用的数量选择合适的应用选定的实施方式,本实施例对此不做限制。通过上述的应用选定指令,支持存在多个后台应用时,仍能准确地唤出目标后台应用的悬浮窗口,以对其进行查看或操作,进一步提高了用户的使用体验。In an actual application, an appropriate application selection implementation may be selected according to the number of background applications, which is not limited in this embodiment. Through the above-mentioned application selection instruction, when there are multiple background applications, the floating window of the target background application can still be accurately called out to view or operate it, further improving the user experience.
同样的,本实施例还提供一种优选的实施方案,预设指令集还包括:权限选择指令;Similarly, this embodiment also provides a preferred implementation solution, the preset instruction set also includes: permission selection instruction;
对应的,将后台应用待显示的图像以悬浮窗口的形式显示在当前窗口中包括:Correspondingly, displaying the image to be displayed by the background application in the current window in the form of a floating window includes:
当用户指令为权限选择指令时,根据权限选择指令将后台应用待显示的图像以对应权限的悬浮窗口形式显示在当前窗口中;其中,权限包括:查看权限和操作权限。When the user instruction is a permission selection instruction, according to the permission selection instruction, the image to be displayed by the background application is displayed in the current window in the form of a floating window corresponding to the permission; wherein, the permission includes: viewing permission and operation permission.
查看权限指当前悬浮窗正常显示内容,用户可以通过悬浮窗查看相应应用的情况,但不能对其进行操作,也即唤出悬浮窗的应用不响应用户的操作指令。View permission refers to the normal display content of the current floating window. The user can view the status of the corresponding application through the floating window, but cannot operate it, that is, the application that invokes the floating window does not respond to the user's operation instructions.
操作权限指当前悬浮窗正常显示内容,且相应用户的操作指令,用户除去可以通过悬浮窗查看应用情况外,还可以通过操作指令对应用进行相应的操作。Operation authority refers to the normal display content of the current floating window, and corresponding to the user's operation instructions, the user can not only view the application status through the floating window, but also perform corresponding operations on the application through the operation instructions.
由上述可知,悬浮窗的权限可以分为查看权限以及操作权限,所以一种优选的实施方案为权限选择指令包括两个子指令,分别表示查看权限和操作权限,当用户的操作指令为对应权限的子指令时,赋予当前悬浮窗口对应的权限。From the above, it can be seen that the permissions of the floating window can be divided into viewing permissions and operating permissions, so a preferred embodiment is that the permission selection command includes two sub-commands, which respectively represent viewing permissions and operating permissions. When the user's operation command is the corresponding permission When subcommand, grant the corresponding permission to the current floating window.
本实施例所提供的一种优选方案通过预设指令集中的权限选择指令,实现对于悬浮窗口权限的控制,使得用户在唤出悬浮窗时,可以选择合适的操作权限,例如当用户在进行游戏的游玩时,通常不希望被其他应用打扰,如果用户在操作时因为唤出的悬浮窗而造成误操作,会极大的影响用户的使用体验,所以在这种应用场景下,应设置悬浮窗的权限为查看权限,用户仅能查看悬浮窗口所显示的图像,但无法对其进行操作。基于相同的道理,在例如阅读、观影等场景下,悬浮窗口的权限可以为操作权限,除去可以查看悬浮窗口所显示图像之外,还可以对其进行操作。本实施例所提供的优选方案通过对于悬浮窗权限的选定,使悬浮窗功能更好地适应于用户的个性化需求,进一步提高了AR/VR设备的使用体验。A preferred solution provided by this embodiment realizes the control of the floating window permission through the permission selection instruction in the preset instruction set, so that the user can select the appropriate operation permission when calling the floating window, for example, when the user is playing a game When playing, you usually don’t want to be disturbed by other applications. If the user misuses the floating window during operation, it will greatly affect the user’s experience. Therefore, in this application scenario, a floating window should be set. The permission of is the viewing permission, the user can only view the image displayed in the floating window, but cannot operate it. Based on the same principle, in scenarios such as reading and watching movies, the permission of the floating window can be the operation permission, in addition to being able to view the images displayed on the floating window, it can also be operated. The preferred solution provided by this embodiment makes the function of the floating window better adapt to the individual needs of the user through the selection of the permission of the floating window, and further improves the experience of using the AR/VR device.
同样的,由上述可知,虽然上述实施例提供了一种唤出悬浮窗时对于后台应用的选定方法,但其为在悬浮窗唤出过程中的方法,当悬浮窗已经唤出时,用户仍有切换当前悬浮窗所显示的后台应用的需求。因此,本实施例为解决上述问题,还提供一种优选的实施方案,预设指令集还包括:应用切换指令;Similarly, it can be seen from the above that although the above embodiment provides a method for selecting background applications when calling out the floating window, it is a method during the calling out process of the floating window. When the floating window has been called out, the user There is still a need to switch the background application displayed in the current floating window. Therefore, in order to solve the above problem, this embodiment also provides a preferred implementation solution, the preset instruction set further includes: an application switching instruction;
对应的,本方法还包括:Correspondingly, this method also includes:
当用户指令为应用切换指令时,根据应用切换指令重新确定后台应用待显示的图像,并显示在悬浮窗口中。When the user instruction is an application switching instruction, the image to be displayed by the background application is re-determined according to the application switching instruction, and displayed in the floating window.
容易理解的是,应用切换指令本质上与应用选定指令相同,都是用于从众多后台应用中选取所需的目标应用,区别在于应用选定指令是在悬浮窗唤出过程中被使用的,而应用切换指令则是在悬浮窗已经被唤出的情况下被使用的,所以应用切换指令在选择目标应用时,也可以存在上述应用选定指令的两种可能的实施方式:应用切换指令存在多个与后台应用一一对应的子指令,以及应用切换指令存在至少一个用于切换选定目标的子指令和一个用于确定当前选定目标为目标应用的子指令。具体的实施方式已在上述实施例中说明,本实施例在此不做赘述。It is easy to understand that the application switching command is essentially the same as the application selection command, which is used to select the desired target application from many background applications. The difference is that the application selection command is used in the process of calling out the floating window , and the application switching command is used when the floating window has been called out, so when the application switching command selects the target application, there may also be two possible implementations of the above application selection command: application switching command There are multiple sub-instructions one-to-one corresponding to background applications, and the application switching instruction has at least one sub-instruction for switching the selected target and one sub-instruction for determining the currently selected target as the target application. Specific implementation manners have been described in the foregoing embodiments, and details are not described in this embodiment here.
本实施例所提供的一种优选的实施方案提供了一种在悬浮窗口被唤出时,悬浮窗口所显示应用的切换方法,用户可以在悬浮窗口已被唤出的情况下,根据需要切换所需的后台应用显示在悬浮窗口中,无需关闭当前悬浮窗口再重新打开所需后台应用的悬浮窗口,简化了用户操作。A preferred implementation solution provided in this embodiment provides a method for switching applications displayed in the floating window when the floating window is called out. The required background application is displayed in the floating window, and there is no need to close the current floating window and reopen the floating window of the required background application, which simplifies the user operation.
同样的,当悬浮窗口被唤出后,用户对于悬浮窗口权限的需求也可能发生变化,例如,在用户玩游戏时唤出的悬浮窗口通常需要权限为查看权限,而当用户退出游玩后,可能会进行阅读或者播放音乐,此时存在用户需要对悬浮窗口进行操作的需求,也就需要悬浮窗口的权限切换。因此,本实施例提供另一种优选的实施方案,预设指令集还包括:权限切换指令;Similarly, when the floating window is called out, the user's requirements for the permission of the floating window may also change. For example, the floating window called out when the user is playing a game usually requires the permission to view, but after the user quits the game, it may be It will read or play music. At this time, there is a need for the user to operate the floating window, which requires the permission switch of the floating window. Therefore, this embodiment provides another preferred implementation solution, and the preset instruction set further includes: a permission switching instruction;
对应的,本方法还包括:Correspondingly, this method also includes:
当用户指令为权限切换指令时,切换当前悬浮窗口的权限为另一权限。When the user command is a permission switching command, switch the permission of the current floating window to another permission.
在悬浮窗被唤出后,若用户指令为权限切换指令,当前悬浮窗口的权限为查看权限时,切换为操作权限;当前悬浮窗口的权限为操作权限时,切换为查看权限。After the floating window is called out, if the user command is a permission switching command, if the current permission of the floating window is the viewing permission, switch to the operation permission; if the current floating window permission is the operation permission, switch to the viewing permission.
本实施例所提供的优选方案实现了悬浮窗被唤出后的权限切换,使得用户对于悬浮窗的操作更加灵活,当需要切换悬浮窗口的权限时,也无需关闭悬浮窗口再重新打开,简化了操作流程,优化了悬浮功能的使用体验。The preferred solution provided by this embodiment realizes the permission switching after the floating window is called out, which makes the user's operation of the floating window more flexible. When the permission of the floating window needs to be switched, there is no need to close the floating window and reopen it, which simplifies The operation process has optimized the experience of using the suspension function.
此外,不同用户在不同时刻对于不同应用的悬浮窗口尺寸大小的要求也不一样,所以,本实施例还提供另一种优选的实施方案,预设指令集还包括:浮窗缩放指令;In addition, different users have different requirements for the size of the floating window of different applications at different times, so this embodiment also provides another preferred implementation solution, and the preset instruction set also includes: a floating window scaling instruction;
对应的,本方法还包括:Correspondingly, this method also includes:
当用户指令为浮窗缩放指令时,根据浮窗缩放指令调整悬浮窗口的大小。When the user command is a floating window scaling command, the size of the floating window is adjusted according to the floating window scaling command.
容易理解的是,在悬浮窗被唤出时,是以预设的大小显示在当前窗口中,后续可根据浮窗切换指令进行悬浮窗的缩放。例如,在一种可能的实施方式中,用户选定某个窗口(VR设备可由手柄控制将光标放置在对应窗口处,AR设备则可将手指放在投射出的图像中,对应窗口所在位置处),将手指或光标置于悬浮窗口的边缘处进行拖动,悬浮窗口的尺寸随之变大或缩小,从而实现悬浮窗口的缩放。It is easy to understand that when the floating window is invoked, it is displayed in the current window with a preset size, and the floating window can be subsequently scaled according to the floating window switching instruction. For example, in a possible implementation, the user selects a certain window (the VR device can be controlled by the handle to place the cursor on the corresponding window, and the AR device can place the finger on the projected image at the position of the corresponding window. ), place your finger or cursor on the edge of the floating window and drag, the size of the floating window will increase or decrease accordingly, so as to realize the zooming of the floating window.
需要进行说明的是,应用切换指令、权限切换指令以及浮窗缩放指令是应用在悬浮窗口已经唤出的情况下,具体步骤的实现应在悬浮窗唤出指令之后、悬浮窗退出指令之前,彼此之间则无先后顺序,而使根据用户指令触发。It should be noted that the application switching command, permission switching command, and floating window zooming command are applied when the floating window has been invoked, and the specific steps should be implemented after the floating window invoke command and before the floating window exit command There is no sequence between them, and they are triggered according to user instructions.
同样的,对于应用选定指令和权限选定指令而言,是在悬浮窗口唤出过程中的进行的,实施步骤包含于悬浮窗唤出的过程中,所以对于指令的接收应在悬浮窗唤出指令之后,应用选定指令和权限选定指令之间并无先后顺序限制。Similarly, for the application selection command and permission selection command, it is carried out in the process of calling out the floating window, and the implementation steps are included in the process of calling out the floating window, so the receiving of the command should be done in the floating window After the command is issued, there is no sequence restriction between the application selection command and the permission selection command.
本实施例提供一种悬浮窗口在被唤出后调整尺寸大小的方法,进一步提高了基于AR/VR设备的悬浮窗功能的灵活性,也进一步提高了用户的使用体验。This embodiment provides a method for adjusting the size of the floating window after being called out, which further improves the flexibility of the floating window function based on the AR/VR device and further improves the user experience.
在上述实施例中,对于一种基于头戴式设备的悬浮窗应用方法进行了详细描述,本申请还提供一种基于头戴式设备的悬浮窗应用装置对应的实施例。需要说明的是,本申请从两个角度对装置部分的实施例进行描述,一种是基于功能模块的角度,另一种是基于硬件的角度。In the foregoing embodiments, a method for applying a floating window based on a head-mounted device is described in detail, and the present application also provides a corresponding embodiment of a device for applying a floating window based on a head-mounted device. It should be noted that this application describes the embodiments of the device part from two perspectives, one is based on the perspective of functional modules, and the other is based on the perspective of hardware.
基于功能模块的角度,如图3所示,本实施例提供一种基于头戴式设备的悬浮窗应用装置,包括:Based on the perspective of functional modules, as shown in Figure 3, this embodiment provides a floating window application device based on a head-mounted device, including:
指令获取模块31,用于获取用户指令,并确定用户指令是否为预设指令集中的指令;其中,预设指令集包括:悬浮窗唤出指令和悬浮窗退出指令;The
浮窗唤出模块32,用于当用户指令为悬浮窗唤出指令时,将后台应用待显示的图像以悬浮窗口的形式显示在当前窗口中;其中,悬浮窗口的尺寸和位置为预设的尺寸和位置;The floating
浮窗退出模块33,用于当用户指令为悬浮窗退出指令时,关闭悬浮窗口。The floating
优选地,还包括:Preferably, it also includes:
应用选定模块,用于当用户指令为应用选定指令时,根据应用选择指令确定后台应用中唯一的目标应用。The application selection module is configured to determine the unique target application in the background application according to the application selection instruction when the user instruction is an application selection instruction.
权限选择模块,用于当用户指令为权限选择指令时,根据权限选择指令将后台应用待显示的图像以对应权限的悬浮窗口形式显示在当前窗口中;其中,权限包括:查看权限和操作权限。The authority selection module is used to display the image to be displayed by the background application in the current window in the form of a floating window corresponding to the authority according to the authority selection instruction when the user instruction is an authority selection instruction; wherein, the authority includes: viewing authority and operation authority.
应用切换模块,用于当用户指令为应用切换指令时,根据应用切换指令重新确定后台应用待显示的图像,并显示在悬浮窗口中。The application switching module is configured to re-determine the image to be displayed by the background application according to the application switching instruction when the user instruction is an application switching instruction, and display it in the floating window.
权限切换模块,用于当用户指令为权限切换指令时,切换当前悬浮窗口的权限为另一权限。The authority switching module is used to switch the authority of the current floating window to another authority when the user instruction is an authority switching instruction.
浮窗缩放模块,用于当用户指令为浮窗缩放指令时,根据浮窗缩放指令调整悬浮窗口的大小。The floating window scaling module is configured to adjust the size of the floating window according to the floating window scaling command when the user command is a floating window scaling command.
由于装置部分的实施例与方法部分的实施例相互对应,因此装置部分的实施例请参见方法部分的实施例的描述,这里暂不赘述。Since the embodiment of the device part corresponds to the embodiment of the method part, please refer to the description of the embodiment of the method part for the embodiment of the device part, and details will not be repeated here.
本实施例提供了一种基于头戴式设备的悬浮窗应用装置,通过指令获取模块获取用户指令,从而根据预设的指令集比对采集到的用户指令,通过浮窗唤出模块将后台应用以悬浮窗口的形式显示在当前窗口中,实现悬浮窗的唤出,以及在相应的用户指令下,通过浮窗退出模块关闭当前悬浮窗口,实现于AR/VR设备中,在打开当前应用的情况下,也能对其他应用进行查看或操作,进一步提高用户的使用体验。This embodiment provides a floating window application device based on a head-mounted device, which acquires user instructions through an instruction acquisition module, compares the collected user instructions according to a preset instruction set, and calls the background application through the floating window module. It is displayed in the current window in the form of a floating window, and the floating window is called out, and under the corresponding user instruction, the current floating window is closed through the floating window exit module, which is implemented in the AR/VR device. When the current application is opened Under this mode, other applications can also be viewed or operated, further improving the user experience.
图4为本申请另一实施例提供的一种基于头戴式设备的悬浮窗应用装置的结构图,如图4所示,一种基于头戴式设备的悬浮窗应用装置包括:存储器40,用于存储计算机程序;FIG. 4 is a structural diagram of a head-mounted device-based floating window application device provided by another embodiment of the present application. As shown in FIG. 4 , a head-mounted device-based floating window application device includes: a memory 40, for storing computer programs;
处理器41,用于执行计算机程序时实现如上述实施例一种基于头戴式设备的悬浮窗应用方法的步骤。The processor 41 is configured to implement the steps of a method for applying a floating window based on a head-mounted device as in the above-mentioned embodiment when executing a computer program.
本实施例提供的一种基于头戴式设备的悬浮窗应用装置可以包括但不限于VR头盔、AR交互台、智能手机、平板电脑、笔记本电脑或台式电脑等。A floating window application device based on a head-mounted device provided in this embodiment may include but not limited to a VR helmet, an AR interactive platform, a smart phone, a tablet computer, a notebook computer or a desktop computer, and the like.
其中,处理器41可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器41可以采用数字信号处理器(Digital Signal Processor,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable LogicArray,PLA)中的至少一种硬件形式来实现。处理器41也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称中央处理器(CentralProcessing Unit,CPU);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器41可以集成有图像处理器(Graphics Processing Unit,GPU),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器41还可以包括人工智能(Artificial Intelligence,AI)处理器,该AI处理器用于处理有关机器学习的计算操作。Wherein, the processor 41 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. Processor 41 can adopt at least one hardware form in Digital Signal Processor (Digital Signal Processor, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), Programmable Logic Array (Programmable LogicArray, PLA) accomplish. The processor 41 may also include a main processor and a coprocessor, the main processor is a processor for processing data in the wake-up state, and is also called a central processing unit (Central Processing Unit, CPU); Low-power processor for processing data in standby state. In some embodiments, the processor 41 may be integrated with a graphics processor (Graphics Processing Unit, GPU), and the GPU is used for rendering and drawing the content that needs to be displayed on the display screen. In some embodiments, the processor 41 may also include an artificial intelligence (Artificial Intelligence, AI) processor, and the AI processor is used to process computing operations related to machine learning.
存储器40可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是非暂态的。存储器40还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。本实施例中,存储器40至少用于存储以下计算机程序401,其中,该计算机程序被处理器41加载并执行之后,能够实现前述任一实施例公开的一种基于头戴式设备的悬浮窗应用方法的相关步骤。另外,存储器40所存储的资源还可以包括操作系统402和数据403等,存储方式可以是短暂存储或者永久存储。其中,操作系统402可以包括Windows、Unix、Linux等。数据403可以包括但不限于一种基于头戴式设备的悬浮窗应用方法等。Memory 40 may include one or more computer-readable storage media, which may be non-transitory. The memory 40 may also include high-speed random access memory, and non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 40 is at least used to store the following computer program 401, wherein, after the computer program is loaded and executed by the processor 41, a floating window application based on a head-mounted device disclosed in any of the above-mentioned embodiments can be realized relevant steps of the method. In addition, the resources stored in the memory 40 may also include an operating system 402 and data 403, etc., and the storage method may be temporary storage or permanent storage. Wherein, the operating system 402 may include Windows, Unix, Linux and so on. The data 403 may include, but is not limited to, a method for applying a floating window based on a head-mounted device, and the like.
在一些实施例中,一种基于头戴式设备的悬浮窗应用装置还可包括有显示屏42、输入输出接口43、通信接口44、电源45以及通信总线46。In some embodiments, a floating window application device based on a head-mounted device may further include a display screen 42 , an input/output interface 43 , a communication interface 44 , a power supply 45 and a communication bus 46 .
本领域技术人员可以理解,图4中示出的结构并不构成对一种基于头戴式设备的悬浮窗应用装置的限定,可以包括比图示更多或更少的组件。Those skilled in the art can understand that the structure shown in FIG. 4 does not constitute a limitation to a head-mounted device-based floating window application device, and may include more or less components than those shown in the illustration.
本申请实施例提供的一种基于头戴式设备的悬浮窗应用装置,包括存储器和处理器,处理器在执行存储器存储的程序时,能够实现如下方法:一种基于头戴式设备的悬浮窗应用方法。A floating window application device based on a head-mounted device provided in an embodiment of the present application includes a memory and a processor. When the processor executes a program stored in the memory, the following method can be implemented: A floating window based on a head-mounted device application method.
本实施例提供了一种基于头戴式设备的悬浮窗应用装置,通过处理器执行保存在存储其中的计算机程序,实现获取用户指令,并根据预设的指令集比对采集到的用户指令以确定要执行的操作;当用户指令为悬浮窗唤出指令时将后台应用以悬浮窗口的形式显示在当前窗口中,实现悬浮窗的唤出;当用户指令为悬浮窗退出指令时,则关闭当前悬浮窗口;实现于AR/VR设备中,在打开当前应用的情况下,也能对其他应用进行查看或操作,进一步提高用户的使用体验。This embodiment provides a floating window application device based on a head-mounted device. A processor executes a computer program stored therein to obtain user instructions, and compares the collected user instructions according to a preset instruction set to obtain Determine the operation to be performed; when the user command is a floating window call command, display the background application in the current window in the form of a floating window to realize the call of the floating window; when the user command is a floating window exit command, close the current window Floating window: implemented in AR/VR devices, when the current application is opened, other applications can also be viewed or operated, further improving the user experience.
最后,本申请还提供一种计算机可读存储介质对应的实施例。计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现如上述方法实施例中记载的步骤。Finally, the present application also provides an embodiment corresponding to a computer-readable storage medium. A computer program is stored on a computer-readable storage medium, and when the computer program is executed by a processor, the steps described in the foregoing method embodiments are implemented.
可以理解的是,如果上述实施例中的方法以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。It can be understood that if the methods in the above embodiments are implemented in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , executing all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other various media that can store program codes. .
本实施例提供了一种计算机可读存储介质,当其中存储的计算机程序被执行时,可以获取用户指令,并比对该用户指令为预设指令集中的何种指令;悬浮窗唤出指令用于将后台应用以悬浮窗口的形式显示在当前窗口中,实现悬浮窗的唤出;悬浮窗退出指令则用于关闭当前悬浮窗口;以此实现于AR/VR设备中,在打开当前应用的情况下,也能对其他应用进行查看或操作,从而进一步提高用户的使用体验。This embodiment provides a computer-readable storage medium. When the computer program stored therein is executed, user instructions can be obtained, and the user instructions are compared to which instructions in the preset instruction set; It is used to display the background application in the current window in the form of a floating window to realize the calling of the floating window; the floating window exit command is used to close the current floating window; this is implemented in the AR/VR device, when the current application is opened In this case, other applications can also be viewed or operated, thereby further improving the user experience.
以上对本申请所提供的一种基于头戴式设备的悬浮窗应用方法、装置及其介质进行了详细介绍。说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以对本申请进行若干改进和修饰,这些改进和修饰也落入本申请权利要求的保护范围内。The method, device and medium for applying a floating window based on a head-mounted device provided in this application have been introduced in detail above. Each embodiment in the description is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for the related information, please refer to the description of the method part. It should be pointed out that those skilled in the art can make some improvements and modifications to the application without departing from the principles of the application, and these improvements and modifications also fall within the protection scope of the claims of the application.
还需要说明的是,在本说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that in this specification, relative terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or operations There is no such actual relationship or order between the operations. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211019903.5A CN115373818A (en) | 2022-08-24 | 2022-08-24 | Application method, device and medium of floating window based on head-mounted device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211019903.5A CN115373818A (en) | 2022-08-24 | 2022-08-24 | Application method, device and medium of floating window based on head-mounted device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN115373818A true CN115373818A (en) | 2022-11-22 |
Family
ID=84068129
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211019903.5A Pending CN115373818A (en) | 2022-08-24 | 2022-08-24 | Application method, device and medium of floating window based on head-mounted device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115373818A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117032462A (en) * | 2023-08-16 | 2023-11-10 | 歌尔股份有限公司 | Method, device, equipment and medium for providing demand functions |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20140351729A1 (en) * | 2013-05-21 | 2014-11-27 | Samsung Electronics Co., Ltd. | Method of operating application and electronic device implementing the same |
| KR20140136854A (en) * | 2013-05-21 | 2014-12-01 | 삼성전자주식회사 | Application operating method and electronic device implementing the same |
| WO2020024692A1 (en) * | 2018-08-02 | 2020-02-06 | 阿里巴巴集团控股有限公司 | Man-machine interaction method and apparatus |
| US20210247847A1 (en) * | 2020-02-11 | 2021-08-12 | Samsung Electronics Co., Ltd. | Method of operating function based on gesture recognition and electronic device supporting same |
| CN114879880A (en) * | 2021-02-05 | 2022-08-09 | 华为技术有限公司 | Electronic device, display method and medium for application thereof |
-
2022
- 2022-08-24 CN CN202211019903.5A patent/CN115373818A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20140351729A1 (en) * | 2013-05-21 | 2014-11-27 | Samsung Electronics Co., Ltd. | Method of operating application and electronic device implementing the same |
| KR20140136854A (en) * | 2013-05-21 | 2014-12-01 | 삼성전자주식회사 | Application operating method and electronic device implementing the same |
| WO2020024692A1 (en) * | 2018-08-02 | 2020-02-06 | 阿里巴巴集团控股有限公司 | Man-machine interaction method and apparatus |
| US20210247847A1 (en) * | 2020-02-11 | 2021-08-12 | Samsung Electronics Co., Ltd. | Method of operating function based on gesture recognition and electronic device supporting same |
| CN114879880A (en) * | 2021-02-05 | 2022-08-09 | 华为技术有限公司 | Electronic device, display method and medium for application thereof |
| WO2022166713A1 (en) * | 2021-02-05 | 2022-08-11 | 华为技术有限公司 | Electronic device and display method for application thereof, and medium |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117032462A (en) * | 2023-08-16 | 2023-11-10 | 歌尔股份有限公司 | Method, device, equipment and medium for providing demand functions |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11323756B2 (en) | Annotating extended reality presentations | |
| US10082886B2 (en) | Automatic configuration of an input device based on contextual usage | |
| CN107924282A (en) | For the dynamic control scheme of application program in acting at the same time | |
| CN107977141B (en) | Interaction control method and device, electronic equipment and storage medium | |
| CN110663018A (en) | Application launch in a multi-display device | |
| US20210200391A1 (en) | Interacting Method for Sidebar Menu, Apparatus and Computer-readable Storage Medium | |
| US20230325062A1 (en) | Method for adjusting interface display state, and electronic device | |
| KR20140027353A (en) | Desktop as immersive application | |
| CN108549575B (en) | Processing method and device for quitting split screen, storage medium and electronic equipment | |
| US9262042B2 (en) | File transfer applications | |
| US20180181263A1 (en) | Uninterruptable overlay on a display | |
| TW201617839A (en) | Light dismiss manager | |
| CN108776544B (en) | Interaction method and device in augmented reality, storage medium and electronic equipment | |
| CN113110779B (en) | A map display control method, device, equipment and medium | |
| CN110471587A (en) | Interactive method, interactive device, terminal, and computer-readable storage medium | |
| CN115373818A (en) | Application method, device and medium of floating window based on head-mounted device | |
| CN113191184A (en) | Real-time video processing method and device, electronic equipment and storage medium | |
| US9001061B2 (en) | Object movement on small display screens | |
| KR20250174703A (en) | Adaptive video conference user interfaces | |
| US9990117B2 (en) | Zooming and panning within a user interface | |
| US12014019B2 (en) | Display method, apparatus and computer readable storage medium | |
| US10416759B2 (en) | Eye tracking laser pointer | |
| WO2026000825A1 (en) | Control method and apparatus, and head-mounted display device and medium | |
| CN117687508A (en) | Interactive control method, device, electronic equipment and computer readable storage medium | |
| CN113873480A (en) | Interactive control method, device, terminal and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |