[go: up one dir, main page]

CN110442245A - Display methods, device, terminal device and storage medium based on physical keyboard - Google Patents

Display methods, device, terminal device and storage medium based on physical keyboard Download PDF

Info

Publication number
CN110442245A
CN110442245A CN201910684470.7A CN201910684470A CN110442245A CN 110442245 A CN110442245 A CN 110442245A CN 201910684470 A CN201910684470 A CN 201910684470A CN 110442245 A CN110442245 A CN 110442245A
Authority
CN
China
Prior art keywords
virtual
physical keyboard
key
keys
terminal device
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
Application number
CN201910684470.7A
Other languages
Chinese (zh)
Inventor
卢智雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Virtual Reality Technology Co Ltd
Original Assignee
Guangdong Virtual Reality Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Virtual Reality Technology Co Ltd filed Critical Guangdong Virtual Reality Technology Co Ltd
Priority to CN201910684470.7A priority Critical patent/CN110442245A/en
Publication of CN110442245A publication Critical patent/CN110442245A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/0202Constructional details or processes of manufacture of the input device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

本申请实施例公开了一种基于物理键盘的显示方法、装置、终端设备及存储介质,该基于物理键盘的显示方法包括:获取终端设备与物理键盘之间的第一相对空间位置信息,所述物理键盘包括多个按键;确定所述物理键盘中具有控制功能的一个或多个按键;根据确定的每个按键所对应的控制功能,分别获取与所述每个按键对应的虚拟指示内容;根据所述第一相对空间位置信息,分别获取所述终端设备与所述每个按键之间的第二相对空间位置信息;基于所述每个按键对应的第二相对空间位置信息和虚拟指示内容,生成与确定的各个按键分别匹配的虚拟指示,所述虚拟指示的显示位置与匹配的按键对应。本方法可以方便用户通过物理键盘进行控制,实现用户需求的控制功能。

The embodiment of the present application discloses a display method, device, terminal device and storage medium based on a physical keyboard. The display method based on a physical keyboard includes: acquiring first relative spatial position information between the terminal device and the physical keyboard, the The physical keyboard includes a plurality of keys; one or more keys with a control function in the physical keyboard are determined; according to the determined control function corresponding to each key, the virtual indication content corresponding to each key is obtained respectively; For the first relative spatial position information, obtain the second relative spatial position information between the terminal device and each button respectively; based on the second relative spatial position information corresponding to each button and the virtual indication content, A virtual indication matching each of the determined keys is generated, and the display position of the virtual indication corresponds to the matched key. The method can facilitate the user to control through the physical keyboard, and realize the control function required by the user.

Description

基于物理键盘的显示方法、装置、终端设备及存储介质Display method, device, terminal device and storage medium based on physical keyboard

技术领域technical field

本申请涉及显示技术领域,更具体地,涉及一种基于物理键盘的显示方法、装置、终端设备及存储介质。The present application relates to the field of display technology, and more particularly, to a display method, device, terminal device and storage medium based on a physical keyboard.

背景技术Background technique

目前,物理键盘常被用于输入信息和指令。在物理键盘的使用中,用户通常根据物理键盘的键帽上印刷的内容进行输入。但用户在利用键盘输入信息和指令时,存在不清楚或者忘记按键功能的情况,而不便于用户操作。Currently, physical keyboards are often used to enter information and commands. In the use of the physical keyboard, the user usually inputs according to the content printed on the keycap of the physical keyboard. However, when the user uses the keyboard to input information and instructions, there is a situation in which the key function is unclear or forgotten, which is inconvenient for the user to operate.

发明内容SUMMARY OF THE INVENTION

本申请实施例提出了一种基于物理键盘的显示方法、装置、终端设备及存储介质,能方便用户通过物理键盘进行控制。The embodiments of the present application propose a display method, device, terminal device and storage medium based on a physical keyboard, which can facilitate the user to control through the physical keyboard.

第一方面,本申请实施例提供了一种基于物理键盘的显示方法,所述方法包括:获取终端设备与物理键盘之间的第一相对空间位置信息,所述物理键盘包括多个按键;确定所述物理键盘中具有控制功能的一个或多个按键;根据确定的每个按键所对应的控制功能,分别获取与所述每个按键对应的虚拟指示内容;根据所述第一相对空间位置信息,分别获取所述终端设备与所述每个按键之间的第二相对空间位置信息;基于所述每个按键对应的第二相对空间位置信息和虚拟指示内容,生成与确定的各个按键分别匹配的虚拟指示,所述虚拟指示的显示位置与匹配的按键对应。In a first aspect, an embodiment of the present application provides a display method based on a physical keyboard, the method comprising: acquiring first relative spatial position information between a terminal device and a physical keyboard, the physical keyboard including a plurality of keys; determining One or more keys with a control function in the physical keyboard; according to the determined control function corresponding to each key, the virtual indication content corresponding to each key is obtained respectively; according to the first relative spatial position information , respectively obtain the second relative spatial position information between the terminal device and each key; The virtual indication of the virtual indication, the display position of the virtual indication corresponds to the matched key.

第二方面,本申请实施例提供了一种基于物理键盘的显示装置,所述装置包括:第一位置获取模块、按键确定模块、内容获取模块、第二位置获取模块以及内容生成模块,其中,所述第一位置获取模块用于获取终端设备与物理键盘之间的第一相对空间位置信息,所述物理键盘包括多个按键;所述按键确定模块用于确定所述物理键盘中具有控制功能的一个或多个按键;所述内容获取模块用于根据确定的每个按键所对应的控制功能,分别获取与所述每个按键对应的虚拟指示内容;所述第二位置获取模块用于根据所述第一相对空间位置信息,分别获取所述终端设备与所述每个按键之间的第二相对空间位置信息;所述内容生成模块用于基于所述每个按键对应的第二相对空间位置信息和虚拟指示内容,生成与确定的各个按键分别匹配的虚拟指示,所述虚拟指示的显示位置与匹配的按键对应。In a second aspect, an embodiment of the present application provides a display device based on a physical keyboard, the device includes: a first position acquisition module, a key determination module, a content acquisition module, a second position acquisition module, and a content generation module, wherein, The first position acquisition module is used to acquire the first relative spatial position information between the terminal device and a physical keyboard, and the physical keyboard includes a plurality of keys; the key determination module is used to determine that the physical keyboard has a control function one or more keys; the content acquisition module is used to obtain virtual indication content corresponding to each key according to the determined control function corresponding to each key; the second position acquisition module is used to obtain the virtual indication content corresponding to each key; For the first relative spatial position information, the second relative spatial position information between the terminal device and each key is obtained respectively; the content generation module is configured to based on the second relative space corresponding to each key The position information and the virtual instruction content are used to generate virtual instructions respectively matched with the determined keys, and the display positions of the virtual instructions correspond to the matched keys.

第三方面,本申请实施例提供了一种终端设备,包括:一个或多个处理器;存储器;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述第一方面提供的基于物理键盘的显示方法。In a third aspect, embodiments of the present application provide a terminal device, including: one or more processors; a memory; and one or more application programs, wherein the one or more application programs are stored in the memory and The one or more programs are configured to be executed by the one or more processors, and the one or more programs are configured to execute the display method based on the physical keyboard provided in the first aspect.

第四方面,本申请实施例提供了一种存储介质,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述第一方面提供的基于物理键盘的显示方法。In a fourth aspect, an embodiment of the present application provides a storage medium, where program codes are stored in the computer-readable storage medium, and the program codes can be invoked by a processor to execute the display based on the physical keyboard provided in the first aspect above method.

本申请提供的方案,通过获取终端设备与物理键盘之间的第一相对空间位置信息,物理键盘包括多个按键,确定物理键盘中具有控制功能的一个或多个按键,根据确定的每个按键所对应的控制功能,分别获取与每个按键对应的虚拟指示内容,根据第一相对空间位置信息,分别获取终端设备与每个按键之间的第二相对空间位置信息,基于每个按键对应的第二相对空间位置信息和虚拟指示内容,生成与确定的各个按键分别匹配的虚拟指示,虚拟指示的显示位置与匹配的按键对应,从而用户可以根据虚拟指示,对具有控制功能的按键进行操作,实现对虚拟内容的控制功能,方便用户与虚拟内容进行交互。In the solution provided by the present application, by obtaining the first relative spatial position information between the terminal device and the physical keyboard, the physical keyboard includes a plurality of keys, one or more keys with a control function in the physical keyboard are determined, and each key is determined according to The corresponding control function obtains the virtual indication content corresponding to each key, respectively obtains the second relative spatial position information between the terminal device and each key according to the first relative spatial position information, and based on the corresponding information of each key The second relative spatial position information and the virtual indication content generate virtual indications that are respectively matched with the determined buttons, and the display positions of the virtual indications correspond to the matched keys, so that the user can operate the keys with control functions according to the virtual indications, Realize the control function of virtual content, which is convenient for users to interact with virtual content.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained from these drawings without creative effort.

图1示出了一种适用于本申请实施例的应用场景的示意图。FIG. 1 shows a schematic diagram of an application scenario applicable to this embodiment of the present application.

图2示出了根据本申请一个实施例的基于物理键盘的显示方法流程图。FIG. 2 shows a flowchart of a display method based on a physical keyboard according to an embodiment of the present application.

图3示出了根据本申请一个实施例提供的一种显示效果示意图。FIG. 3 shows a schematic diagram of a display effect provided according to an embodiment of the present application.

图4示出了根据本申请另一个实施例的基于物理键盘的显示方法流程图。FIG. 4 shows a flowchart of a display method based on a physical keyboard according to another embodiment of the present application.

图5示出了根据本申请又一个实施例的基于物理键盘的显示方法流程图。FIG. 5 shows a flowchart of a display method based on a physical keyboard according to yet another embodiment of the present application.

图6示出了根据本申请再一个实施例的基于物理键盘的显示方法流程图。FIG. 6 shows a flowchart of a display method based on a physical keyboard according to yet another embodiment of the present application.

图7示出了根据本申请再一个实施例提供的一种显示效果示意图。FIG. 7 shows a schematic diagram of a display effect provided according to another embodiment of the present application.

图8示出了根据本申请再一个实施例提供的另一种显示效果示意图。FIG. 8 shows a schematic diagram of another display effect provided according to still another embodiment of the present application.

图9示出了根据本申请还一个实施例的基于物理键盘的显示方法流程图。FIG. 9 shows a flowchart of a display method based on a physical keyboard according to still another embodiment of the present application.

图10示出了根据本申请还一个实施例提供的一种显示效果示意图。FIG. 10 shows a schematic diagram of a display effect provided according to another embodiment of the present application.

图11示出了根据本申请实施例提供的基于物理键盘的显示装置的结构框图。FIG. 11 shows a structural block diagram of a display device based on a physical keyboard provided according to an embodiment of the present application.

图12是本申请实施例的用于执行根据本申请实施例的基于物理键盘的显示方法的终端设备的框图。FIG. 12 is a block diagram of a terminal device for executing the display method based on a physical keyboard according to an embodiment of the present application.

图13是本申请实施例的用于保存或者携带实现根据本申请实施例的基于物理键盘的显示方法的程序代码的存储单元。FIG. 13 is a storage unit for storing or carrying a program code for implementing a display method based on a physical keyboard according to an embodiment of the present application according to an embodiment of the present application.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to make those skilled in the art better understand the solutions of the present application, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application.

下面对本申请实施例提供的虚拟内容的显示方法的应用场景进行介绍。The following describes application scenarios of the virtual content display method provided by the embodiments of the present application.

请参见图1,示出了一个实施例中提供的增强现实系统10。该增强现实系统10包括:终端设备100以及物理键盘200,其中,终端设备100与物理键盘200连接。Referring to FIG. 1, an augmented reality system 10 provided in one embodiment is shown. The augmented reality system 10 includes: a terminal device 100 and a physical keyboard 200 , wherein the terminal device 100 is connected to the physical keyboard 200 .

在一些实施方式中,终端设备100可以是头戴显示装置,也可以是手机、平板等移动设备。终端设备100为头戴显示装置时,头戴显示装置可以为一体式头戴显示装置,也可以是与外置电子设备连接的头戴显示装置。终端设备100也可以是与外接式/接入式头戴显示装置连接的手机等智能终端,即终端设备100可作为头戴显示装置的处理和存储设备,插入或者接入外接式头戴显示装置,在头戴显示装置中对虚拟内容进行显示。In some embodiments, the terminal device 100 may be a head-mounted display device, or a mobile device such as a mobile phone or a tablet. When the terminal device 100 is a head-mounted display device, the head-mounted display device may be an integrated head-mounted display device, or may be a head-mounted display device connected to an external electronic device. The terminal device 100 can also be a smart terminal such as a mobile phone connected to an external/accessible head-mounted display device, that is, the terminal device 100 can be used as a processing and storage device of the head-mounted display device, and can be inserted into or connected to the external head-mounted display device. , the virtual content is displayed on the head-mounted display device.

在一些实施方式中,物理键盘上可设置有标记物201。其中,标记物201可以粘贴附着或集成于物理键盘200上,在此不做限定。设置于物理键盘200上的标记物201的数量可以不作为限定,标记物201的数量可以为一个或者多个。作为一种实施方式,标记物201的数量为4,4个标记物201可以分别设置于物理键盘200的四个边角所在区域,以提升通过标记物201对物理键盘200及其按键进行定位的准确度。In some embodiments, markers 201 may be provided on the physical keyboard. Wherein, the marker 201 may be attached to or integrated on the physical keyboard 200, which is not limited herein. The number of markers 201 provided on the physical keyboard 200 may not be limited, and the number of markers 201 may be one or more. As an embodiment, the number of markers 201 is 4, and the 4 markers 201 can be respectively disposed in the areas where the four corners of the physical keyboard 200 are located, so as to improve the ability to locate the physical keyboard 200 and its keys through the markers 201 Accuracy.

在一些实施方式中,终端设备100与物理键盘200可以通过蓝牙、WiFi(Wireless-Fidelity,无线保真)、ZigBee(紫峰技术)等通信方式连接,也可以通过数据线等有线通信连接,在此不做限定。In some embodiments, the terminal device 100 and the physical keyboard 200 can be connected by communication methods such as Bluetooth, WiFi (Wireless-Fidelity, wireless fidelity), ZigBee (Zifeng technology), etc., or can be connected by wired communication such as data lines. Not limited.

在终端设备100与物理键盘200被共同使用时,可使标记物201位于终端设备100的视觉范围内,进而使得终端设备100可以采集到包含标记物201的图像,以对标记物201进行识别追踪,得到标记物201相对终端设备100的位置、姿态等空间位置信息,以及标记物201的身份信息等识别结果,进而得到物理键盘200相对终端设备100的位置、姿态等空间位置信息,实现对物理键盘200及其包含的各个按键的定位追踪。终端设备100可根据与物理键盘200之间的相对位置及姿态信息,显示相应的虚拟内容。When the terminal device 100 and the physical keyboard 200 are used together, the marker 201 can be located within the visual range of the terminal device 100 , so that the terminal device 100 can capture an image containing the marker 201 to identify and track the marker 201 , obtain the spatial position information such as the position and posture of the marker 201 relative to the terminal device 100, and the identification results such as the identity information of the marker 201, and then obtain the spatial position information such as the position and posture of the physical keyboard 200 relative to the terminal device 100, so as to realize the physical Location tracking of the keyboard 200 and the various keys it contains. The terminal device 100 can display corresponding virtual content according to the relative position and posture information with the physical keyboard 200 .

在一些实施方式中,标记物201为具有拓扑结构的图案,拓扑结构是指标记物中的子标记物和特征点等之间连通关系。在一些实施方式中,标记物201还可以为光点式的标记,终端设备通过对光点追踪以相对位置、姿态等空间位置信息。在一个具体的实施方式中,可在物理键盘200上设置光点和惯性测量单元(Inertial measurement unit,IMU),终端设备可以通过图像传感器采集物理键盘200上的光点图像,并通过惯性测量单元获取测量数据,根据该光点图像和测量数据即可确定物理键盘200与终端设备100之间的相对空间位置信息,实现对物理键盘200的定位及追踪。其中,物理键盘200上设置的光点可以是可见光点或者红外光点,光点的数量可以是一个或者由多个光点组成的光点序列。In some embodiments, the marker 201 is a pattern with a topology structure, and the topology structure refers to the connectivity between sub-markers and feature points in the marker. In some embodiments, the marker 201 may also be a light-spot mark, and the terminal device can obtain spatial position information such as relative position and attitude by tracking the light spot. In a specific embodiment, a light spot and an inertial measurement unit (IMU) can be set on the physical keyboard 200, and the terminal device can collect an image of the light spot on the physical keyboard 200 through an image sensor, and use the inertial measurement unit The measurement data is acquired, and the relative spatial position information between the physical keyboard 200 and the terminal device 100 can be determined according to the light spot image and the measurement data, so as to realize the positioning and tracking of the physical keyboard 200 . The light spots set on the physical keyboard 200 may be visible light spots or infrared light spots, and the number of light spots may be one or a light spot sequence composed of multiple light spots.

在一些实施方式中,物理键盘200上可以包括多个按键202。物理键盘可以根据用户对按键202的操作,生成操作数据,并将操作数据发送至终端设备100,终端设备100在接收到操作数据后,可以执行相应的操作,例如对显示的虚拟内容进行控制等。In some implementations, a plurality of keys 202 may be included on the physical keyboard 200 . The physical keyboard can generate operation data according to the user's operation on the keys 202, and send the operation data to the terminal device 100. After receiving the operation data, the terminal device 100 can perform corresponding operations, such as controlling the displayed virtual content, etc. .

在一些实施方式中,物理键盘200还可以包括触控板,触控板可以设置于物理键盘200的表面,以便用户通过触控板进行操作和控制。In some embodiments, the physical keyboard 200 may further include a touchpad, and the touchpad may be disposed on the surface of the physical keyboard 200 so that the user can operate and control through the touchpad.

在一些实施方式中,物理键盘200还可以连接其他外部设备,其他外设可以生成操作数据并通过物理键盘200发送至终端设备,实现通过其他外设进行操作和控制。其他外设可以包括鼠标、手柄等,在此不做限定。其中,物理键盘200与其他外设可以通过有线方式连接,例如,其他外设通过连接线接入物理键盘200的外设接口;物理键盘200与其他外设也可以通过无线方式连接,例如,通过蓝牙、ZigBee等无线通信方式连接。In some embodiments, the physical keyboard 200 can also be connected to other peripheral devices, and other peripheral devices can generate operation data and send it to the terminal device through the physical keyboard 200, so as to realize operation and control through other peripheral devices. Other peripheral devices may include a mouse, a handle, etc., which are not limited here. The physical keyboard 200 and other peripherals can be connected in a wired manner, for example, other peripherals are connected to the peripheral interface of the physical keyboard 200 through a connecting line; the physical keyboard 200 and other peripherals can also be connected wirelessly, for example, by Bluetooth, ZigBee and other wireless communication methods are connected.

在一些实施方式中,物理键盘200可以为可折叠的便携式键盘,用户通过折叠物理键盘200,使物理键盘200占用面积减小,从而方便用户进行携带。In some embodiments, the physical keyboard 200 may be a foldable portable keyboard, and the user can fold the physical keyboard 200 to reduce the occupied area of the physical keyboard 200, thereby facilitating the user to carry.

需要说明的是,物理键盘200并不局限于实体键盘的形式,在一些实施方式中,物理键盘200也可以是移动终端(例如平板电脑、手机等)的触摸屏所显示的虚拟键盘。It should be noted that the physical keyboard 200 is not limited to the form of a physical keyboard. In some embodiments, the physical keyboard 200 may also be a virtual keyboard displayed on a touch screen of a mobile terminal (eg, a tablet computer, a mobile phone, etc.).

下面对具体的基于物理键盘的显示方法进行介绍。A specific display method based on a physical keyboard will be introduced below.

请参阅图2,本申请一个实施例提供了一种基于物理键盘的显示方法,可应用于上述增强现实系统中的终端设备,该方法可以包括:Referring to FIG. 2, an embodiment of the present application provides a display method based on a physical keyboard, which can be applied to a terminal device in the above-mentioned augmented reality system. The method may include:

步骤S110:获取终端设备与物理键盘之间的第一相对空间位置信息,物理键盘包括多个按键。Step S110: Obtain first relative spatial position information between the terminal device and a physical keyboard, where the physical keyboard includes a plurality of keys.

在一些实施方式中,物理键盘可以用于实现控制功能的场景,例如物理键盘用于玩电子游戏、被用于控制视频画面、被用于输入内容等场景。In some embodiments, the physical keyboard may be used in scenarios where a control function is implemented, such as scenarios where the physical keyboard is used to play electronic games, used to control video images, and used to input content.

物理键盘被用于实现控制功能时,终端设备与物理键盘可以处于同一现场环境,并且物理键盘上的标记物处于终端设备的图像采集装置的视野范围内,从而终端设备可以通过识别标记物而追踪到物理键盘。When the physical keyboard is used to realize the control function, the terminal device and the physical keyboard can be in the same on-site environment, and the markers on the physical keyboard are within the field of view of the image acquisition device of the terminal device, so that the terminal device can track the markers by identifying the markers. to the physical keyboard.

在一些实施方式中,终端设备可以获取终端设备与物理键盘之间的第一相对空间位置信息,以便终端设备根据第一相对空间位置信息生成相关的虚拟内容进行显示。具体地,终端设备可以识别物理键盘上的标记物,以根据识别标记物的识别结果,获取终端设备与物理键盘之间的第一相对空间位置信息。In some implementations, the terminal device may acquire first relative spatial position information between the terminal device and the physical keyboard, so that the terminal device generates and displays related virtual content according to the first relative spatial position information. Specifically, the terminal device can identify the marker on the physical keyboard, so as to obtain the first relative spatial position information between the terminal device and the physical keyboard according to the recognition result of the identified marker.

终端设备识别标记物的识别结果至少包括标记物相对终端设备的位置信息、姿态信息等,以及标记物的身份信息,每个标记物可具备不同的身份信息,从而终端设备可以根据标记物在物理键盘上设置的位置以及上述识别结果,获取终端设备与物理键盘之间的第一相对空间位置信息。终端设备与物理键盘之间的第一相对空间位置信息可以包括:终端设备与物理键盘之间的相对位置信息以及姿态信息等,姿态信息可以为物理键盘相对终端设备的朝向及旋转角度等。The identification result of the terminal device identifying the marker includes at least the position information, posture information, etc. of the marker relative to the terminal device, as well as the identity information of the marker. Each marker can have different identity information, so that the terminal device can physically The first relative spatial position information between the terminal device and the physical keyboard is obtained from the position set on the keyboard and the above identification result. The first relative spatial position information between the terminal device and the physical keyboard may include relative position information and attitude information between the terminal device and the physical keyboard, and the attitude information may be the orientation and rotation angle of the physical keyboard relative to the terminal device.

当然,获取终端设备与物理键盘之间的第一相对空间位置信息的具体方式在本申请实施例中可以不作为限定。Certainly, the specific manner of acquiring the first relative spatial position information between the terminal device and the physical keyboard may not be limited in this embodiment of the present application.

步骤S120:确定物理键盘中具有控制功能的一个或多个按键。Step S120: Determine one or more keys having a control function in the physical keyboard.

在一些实施方式中,物理键盘的一个或多个按键可具有控制功能,即这些按键可以被配置有相应的控制功能,具有控制功能的按键与其具体控制功能的对应关系可以存储于终端设备。例如,在游戏场景中,物理键盘上的至少部分按键可以被配置为技能按键、物品按键、游戏参数的调整按键等;又例如,在视频或者音乐播放的场景中,物理键盘上的至少部分按键可以被配置为播放控制、暂停控制、音量控制、播放进度控制等功能;还例如,在文字内容输入的场景中,物理键盘上的至少部分按键可以被配置为复制、粘贴等快捷功能而起到快捷键的作用。In some embodiments, one or more keys of the physical keyboard may have control functions, that is, these keys may be configured with corresponding control functions, and the correspondence between keys with control functions and their specific control functions may be stored in the terminal device. For example, in a game scenario, at least part of the keys on the physical keyboard can be configured as skill keys, item keys, game parameter adjustment keys, etc.; for another example, in a video or music playback scenario, at least part of the keys on the physical keyboard Can be configured as playback control, pause control, volume control, playback progress control and other functions; also for example, in the scenario of text content input, at least some of the keys on the physical keyboard can be configured as shortcut functions such as copy and paste. The role of shortcut keys.

在一些实施方式中,物理键盘在用于实现控制功能时,终端设备可以确定物理键盘包括的所有按键中具有控制功能的一个或多个按键,具有控制功能的按键的数量不作为限定,可以根据实际场景和需求而定。具体的,终端设备可以根据本地存储的按键与控制功能的对应关系,获取物理键盘上具有控制功能的一个或多个按键。该对应关系可以以物理键盘的配置文件的形式存储于终端设备,配置文件的类型可以为表格等类型,在此不做限定。具有控制功能的按键以及按键与控制功能的对应关系可以由用户根据需求和喜好配置,也可以由厂商预先设置,在此不做限定。In some embodiments, when the physical keyboard is used to implement the control function, the terminal device may determine one or more keys with the control function among all the keys included in the physical keyboard. It depends on the actual situation and needs. Specifically, the terminal device may acquire one or more keys with control functions on the physical keyboard according to the locally stored correspondence between keys and control functions. The corresponding relationship may be stored in the terminal device in the form of a configuration file of the physical keyboard, and the type of the configuration file may be a table or the like, which is not limited herein. The buttons with control functions and the corresponding relationship between the buttons and the control functions may be configured by the user according to requirements and preferences, or may be preset by the manufacturer, which is not limited herein.

例如,在音乐播放控制的场景中,物理键盘的部分按键具有播放控制功能,按键与播放控制功能的对应关系可以为按键F5对应暂停播放的控制功能,按键F6对应下一首的控制功能,按键F7对应上一首的控制功能,按键F8对应倍速播放的功能,终端设备可以根据该对应关系,确定出物理键盘上具有播放控制功能的按键为F5、F6、F7及F8,以上音乐播放控制的场景中按键与控制功能的对应关系仅为举例,并不用于限定。For example, in the scene of music playback control, some keys of the physical keyboard have playback control functions, and the corresponding relationship between the keys and the playback control functions may be the control function of the button F5 corresponding to the pause playback, the button F6 corresponding to the control function of the next song, and the corresponding relationship between the buttons and the playback control function. F7 corresponds to the control function of the previous song, and the button F8 corresponds to the function of double-speed playback. According to the corresponding relationship, the terminal device can determine that the buttons with the playback control function on the physical keyboard are F5, F6, F7 and F8. The above music playback control The corresponding relationship between the buttons and the control functions in the scene is only an example, and is not intended to be limiting.

步骤S130:根据确定的每个按键所对应的控制功能,分别获取与每个按键对应的虚拟指示内容。Step S130: According to the determined control function corresponding to each key, obtain the virtual indication content corresponding to each key respectively.

终端设备可以获取具有控制功能的一个或多个按键中每个按键对应的虚拟指示内容,虚拟指示内容用于终端设备生成与具有控制功能的按键对应的虚拟指示,虚拟指示可以用于指示按键的控制功能。其中,虚拟指示内容可以包括用于生成虚拟指示的三维模型数据,该三维模型数据可以包括用于构建三维模型对应的模型的颜色、模型顶点坐标、模型轮廓数据等。作为一种实施方式,虚拟指示内容可以为图标内容,图标内容用于表征具体的控制功能;作为另一种实施方式,虚拟指示内容也可以为文字内容,文字内容可以为概括控制功能的描述性文字,例如名称等;作为又一种实施方式,虚拟指示内容也可以为图标与文字结合的内容,具体的虚拟指示内容可以不做限定。The terminal device can obtain the virtual indication content corresponding to each key in the one or more keys with control function, the virtual indication content is used for the terminal device to generate a virtual indication corresponding to the key with control function, and the virtual indication can be used to indicate the key of the key. control function. The virtual indication content may include 3D model data for generating the virtual indication, and the 3D model data may include the color, model vertex coordinates, model outline data and the like for constructing a model corresponding to the 3D model. As an embodiment, the virtual indication content may be icon content, and the icon content is used to represent a specific control function; as another embodiment, the virtual indication content may also be text content, and the text content may be descriptive that summarizes the control function Text, such as a name, etc.; as another embodiment, the virtual indication content may also be a combination of icons and text, and the specific virtual indication content may not be limited.

在一些实施方式中,终端设备获取每个具有控制功能的按键对应的虚拟指示内容时,可以根据确定的每个按键所对应的控制功能,确定与每个按键的控制功能所对应的虚拟指示内容。其中,不同控制功能所对应的虚拟指示内容可以不同,虚拟指示内容与控制功能的对应关系可以存储于终端设备,终端设备可以根据虚拟指示内容与控制功能的对应关系,确定与每个按键的控制功能所对应的虚拟指示内容,并将与每个按键的控制功能所对应的虚拟指示内容,作为每个按键对应的虚拟指示内容。In some embodiments, when the terminal device acquires the virtual indication content corresponding to each key with a control function, it can determine the virtual indication content corresponding to the control function of each key according to the determined control function corresponding to each key . The virtual indication content corresponding to different control functions may be different, the corresponding relationship between the virtual indication content and the control function may be stored in the terminal device, and the terminal device may determine the control corresponding to each button according to the corresponding relationship between the virtual indication content and the control function. The virtual instruction content corresponding to the function, and the virtual instruction content corresponding to the control function of each key is used as the virtual instruction content corresponding to each key.

步骤S140:根据第一相对空间位置信息,分别获取终端设备与每个按键之间的第二相对空间位置信息。Step S140: Acquire second relative spatial position information between the terminal device and each key, respectively, according to the first relative spatial position information.

终端设备可以根据获得的终端设备与物理键盘之间的第一相对空间位置信息,确定终端设备与每个具有控制功能的按键之间的第二相对空间位置信息,以便后续生成的虚拟指示与按键对应。The terminal device can determine the second relative spatial position information between the terminal device and each key with a control function according to the obtained first relative spatial position information between the terminal device and the physical keyboard, so that the virtual indication and the key can be generated subsequently. correspond.

在一些实施方式中,终端设备可以根据物理键盘上所有按键中每个按键的位置(即按键相对物理键盘整体的相对位置),以及终端设备与物理键盘之间的第一相对空间位置信息,确定终端设备与每个具有控制功能的按键之间的第二相对空间位置信息。作为一种具体实施方式,终端设备可以根据物理键盘上每个按键与标记物之间的位置关系,以及终端设备与物理键盘之间的第一相对空间位置信息,确定终端设备与每个具有控制功能的按键之间的第二相对空间位置信息。In some embodiments, the terminal device may determine the position of each key in all keys on the physical keyboard (that is, the relative position of the key relative to the physical keyboard as a whole) and the first relative spatial position information between the terminal device and the physical keyboard. The second relative spatial position information between the terminal device and each key with a control function. As a specific implementation manner, the terminal device may determine, according to the positional relationship between each key on the physical keyboard and the marker, and the first relative spatial position information between the terminal device and the physical keyboard, The second relative spatial position information between the keys of the function.

在一些实施方式中,物理键盘为移动终端的触控屏所显示的虚拟键盘时,由于不同类型或格式的虚拟键盘中的按键在触控屏上显示的位置不同,因此则终端设备可以根据移动终端显示的虚拟键盘的类型或者格式,确定虚拟键盘的各个按键在触控屏上的位置,例如,虚拟键盘可以是9键类型,也可以是26键类型等,再根据各个按键在触控屏上的位置,以及第一相对空间位置信息,确定终端设备与每个按键之间的第二相对空间位置信息。In some embodiments, when the physical keyboard is a virtual keyboard displayed on the touch screen of the mobile terminal, since the positions of the keys in the virtual keyboards of different types or formats are displayed on the touch screen are different, the terminal device can The type or format of the virtual keyboard displayed by the terminal determines the position of each key of the virtual keyboard on the touch screen. For example, the virtual keyboard can be a 9-key type or a 26-key type, etc. and the first relative spatial position information to determine the second relative spatial position information between the terminal device and each key.

在本申请实施例中,终端设备获取每个按键对应的虚拟指示内容,与终端设备获取与每个按键之间的第二相对空间位置信息的先后顺序可以不作为限定,例如,步骤S140可以在步骤S130之前执行,步骤S140也可以在步骤S130之后执行。In this embodiment of the present application, the order in which the terminal device acquires the virtual indication content corresponding to each button and the sequence in which the terminal device acquires the second relative spatial position information between each button may not be limited. For example, step S140 may be performed in Step S130 is performed before step S130, and step S140 may also be performed after step S130.

步骤S150:基于每个按键对应的第二相对空间位置信息和虚拟指示内容,生成与确定的各个按键分别匹配的虚拟指示,虚拟指示的显示位置与匹配的按键对应。Step S150: Based on the second relative spatial position information corresponding to each key and the virtual indication content, generate virtual indications respectively matching the determined keys, and the display positions of the virtual indications correspond to the matched keys.

终端设备在获取到终端设备与每个具有控制功能的按键之间的第二相对空间位置信息,以及每个具有控制功能的按键所对应的虚拟指示内容后,则可以生成与各个具有控制功能的按键匹配的虚拟指示,并将生成的虚拟指示进行显示,以便用户察看到与每个具有控制功能的按键匹配的虚拟指示。After the terminal device obtains the second relative spatial position information between the terminal device and each button with control function, and the virtual indication content corresponding to each button with control function, it can generate a corresponding information about each button with control function. The virtual indications matched with the keys are displayed, and the generated virtual indications are displayed, so that the user can see the virtual indications matched with each key having a control function.

在一些实施方式中,终端设备可以根据与每个具有控制功能的按键之间的第二相对空间位置信息,获取虚拟指示内容在虚拟空间中的渲染位置,再根据渲染位置生成并渲染出三维的虚拟指示,并显示渲染的虚拟指示。显示的虚拟指示的位置与虚拟指示对应的按键对应,该虚拟指示的位置指的是终端设备通过增强现实的方式将虚拟指示叠加显示到真实环境中的位置,也可以理解为用户通过终端设备看到的虚拟指示在真实环境中的位置。In some embodiments, the terminal device can obtain the rendering position of the virtual indication content in the virtual space according to the second relative spatial position information with each key having a control function, and then generate and render a three-dimensional image according to the rendering position. Virtual instructions, and display rendered virtual instructions. The position of the displayed virtual indication corresponds to the button corresponding to the virtual indication. The position of the virtual indication refers to the position where the terminal device superimposes and displays the virtual indication in the real environment by means of augmented reality. The virtual indication to the location in the real environment.

在一些实施方式中,终端设备可以根据每个具有控制功能的按键之间的第二相对空间位置信息,以及每个具有控制功能的按键与对应虚拟指示之间的相对位置关系,获取现实空间中的每个虚拟指示需要叠加显示的位置的空间位置坐标,并将获得的每个空间位置坐标转换为虚拟空间中的空间坐标,从而得到每个虚拟指示在虚拟空间中的渲染坐标,即得到了每个虚拟指示的渲染位置。其中,该渲染位置可用作虚拟指示的渲染坐标,以实现虚拟指示渲染于渲染位置处,渲染坐标指的是虚拟指示在虚拟空间中以预设原点(例如世界坐标原点、虚拟摄像头原点等)的三维空间坐标。作为一种实施方式,每个虚拟指示需要叠加显示的位置与每个具有控制功能的按键之间的相对位置关系可以为,虚拟指示需要叠加显示的位置处于具有控制功能的按键的位置处。In some embodiments, the terminal device may obtain information about the second relative spatial position between each key with a control function and the relative positional relationship between each key with a control function and the corresponding virtual indication Each virtual indication needs to superimpose the spatial position coordinates of the displayed position, and convert each obtained spatial position coordinate into the spatial coordinates in the virtual space, so as to obtain the rendering coordinates of each virtual indication in the virtual space, that is, get The rendering position of each virtual indication. Wherein, the rendering position can be used as the rendering coordinates of the virtual indication, so as to realize the rendering of the virtual indication at the rendering position, and the rendering coordinates refer to the virtual indication in the virtual space with a preset origin (for example, the origin of the world coordinates, the origin of the virtual camera, etc.) 3D space coordinates. As an embodiment, the relative positional relationship between the position where each virtual indication needs to be superimposed and displayed and each key with control function may be that the position where the virtual indication needs to be superimposed and displayed is at the position of the key with control function.

终端设备在得到虚拟空间中每个虚拟指示的渲染坐标之后,终端设备可以根据每个虚拟指示内容构建每个虚拟指示,以及根据每个虚拟指示的渲染坐标渲染每个虚拟指示,其中,渲染虚拟指示可以得到虚拟指示中各个顶点的顶点坐标以及颜色值等。After the terminal device obtains the rendering coordinates of each virtual indication in the virtual space, the terminal device can construct each virtual indication according to the content of each virtual indication, and render each virtual indication according to the rendering coordinates of each virtual indication, wherein rendering the virtual indication The instruction can obtain the vertex coordinates and color values of each vertex in the virtual instruction.

在一些实施方式中,终端设备生成每个虚拟指示后,可以对所有虚拟指示进行显示。具体地,终端设备构建并渲染出三维的虚拟指示后,可以将虚拟指示转化为虚拟画面,获取虚拟指示的显示数据,该显示数据可以包括显示画面中各个像素点的RGB值及对应的像素点坐标等,终端设备可根据该显示数据生成显示画面,并将显示画面通过显示屏或投射模组投射到显示镜片上,从而显示出虚拟指示,用户通过头戴显示装置的显示镜片,可以看到虚拟指示叠加显示在真实世界中物理键盘上具有控制功能的按键处,实现增强现实的显示效果,方便用户根据每个按键对应的虚拟指示获知每个按键的控制功能。In some embodiments, after the terminal device generates each virtual indication, it can display all the virtual indications. Specifically, after the terminal device constructs and renders a three-dimensional virtual indication, it can convert the virtual indication into a virtual picture, and obtain display data of the virtual indication, and the display data can include the RGB value of each pixel in the display picture and the corresponding pixel point. Coordinates, etc., the terminal device can generate a display screen according to the display data, and project the display screen onto the display lens through the display screen or the projection module, thereby displaying a virtual instruction. The user can see the display lens through the display lens of the head-mounted display device. The virtual indications are superimposed and displayed on the keys with control functions on the physical keyboard in the real world, to achieve an augmented reality display effect, and it is convenient for users to know the control functions of each key according to the virtual indication corresponding to each key.

在一些实施方式中,当终端设备还显示有虚拟画面时,则用户可以利用物理键盘与虚拟画面进行交互,从而方便用户根据虚拟指示,对具有控制功能的按键进行操作,而实现对虚拟画面的控制。In some embodiments, when the terminal device also displays a virtual screen, the user can use the physical keyboard to interact with the virtual screen, so as to facilitate the user to operate the keys with the control function according to the virtual instructions, thereby realizing the control of the virtual screen. control.

例如,如图3所示,物理键盘200中的按键A具有放大内容的功能,按键D具有缩小内容的功能,则终端设备可以生成与按键A对应的虚拟的放大功能图标301以及与按键D对应的虚拟的缩小功能图标302,并将虚拟的放大功能图标301以及虚拟的缩小功能图标302进行显示,用户可以通过头戴显示装置的显示镜片,察看到位于按键A的位置处的虚拟的放大功能图标301以及位于按键B的位置处的虚拟的缩小功能图标302,从而了解到按键A具有放大内容的功能,按键D具有缩小内容的功能,便于用户利用物理键盘200进行放大内容的控制和缩小内容的控制。For example, as shown in FIG. 3 , the key A in the physical keyboard 200 has the function of zooming in the content, and the key D has the function of reducing the content, then the terminal device can generate a virtual zoom-in function icon 301 corresponding to the key A and corresponding to the key D The virtual zoom-in function icon 302 is displayed, and the virtual zoom-in function icon 301 and the virtual zoom-out function icon 302 are displayed. The user can view the virtual zoom-in function at the position of the button A through the display lens of the head-mounted display device. The icon 301 and the virtual zoom-out function icon 302 located at the position of the button B, thus it is understood that the button A has the function of zooming in the content, and the button D has the function of reducing the content, which is convenient for the user to use the physical keyboard 200 to control the zoom-in content and reduce the content control.

本申请实施例提供的基于物理键盘的显示方法,终端设备可以根据具有控制功能的按键对应的具体控制功能,生成与具有控制功能的按键匹配的虚拟指示,从而用户可以根据虚拟指示,对具有控制功能的按键进行操作,实现对虚拟内容的控制功能,方便用户与虚拟内容进行交互。In the display method based on the physical keyboard provided by the embodiment of the present application, the terminal device can generate virtual instructions matching the keys with control functions according to the specific control functions corresponding to the keys with control functions, so that the user can The function keys are operated to realize the control function of the virtual content, which is convenient for the user to interact with the virtual content.

请参阅图4,本申请另一个实施例提供了一种基于物理键盘的显示方法,可应用于上述显示系统中的终端设备,该方法可以包括:Referring to FIG. 4, another embodiment of the present application provides a display method based on a physical keyboard, which can be applied to a terminal device in the above-mentioned display system. The method may include:

步骤S210:获取终端设备与物理键盘之间的第一相对空间位置信息,物理键盘包括多个按键。Step S210: Obtain first relative spatial position information between the terminal device and a physical keyboard, where the physical keyboard includes a plurality of keys.

在本申请实施例中,步骤S210可以参阅上述实施例的内容,在此不再赘述。In this embodiment of the present application, for step S210, reference may be made to the content of the foregoing embodiment, and details are not described herein again.

步骤S220:确定当前的使用场景。Step S220: Determine the current usage scenario.

在本申请实施例中,由于不同的使用场景需求使用物理键盘的按键以及按键的控制功能不同,因此对于不同的使用场景,可以配置与使用场景相应的具有控制功能的按键以及每个具有控制功能的按键的控制功能。In the embodiments of the present application, since different usage scenarios require different use of the keys of the physical keyboard and the control functions of the keys, for different usage scenarios, the keys with control functions corresponding to the usage scenarios and each of the keys with control functions may be configured button control function.

在一些实施方式中,不同使用场景所需求利用物理键盘进行控制的控制功能的数量可以不同,因此不同使用场景中可以设置不同数量的具有控制功能的按键,例如,在不同游戏的游戏场景中,每个游戏需要用户进行的操作数量不同,因此物理键盘上具有控制功能的按键数量不同。进一步的,可以根据每个使用场景所需求的具有控制功能的按键数量,配置物理键盘上该按键数量的按键,作为与每个使用场景对应的具有控制功能的按键。In some embodiments, the number of control functions required to be controlled by using a physical keyboard may be different for different usage scenarios, so different numbers of keys with control functions may be set in different usage scenarios. For example, in game scenarios of different games, Each game requires a different number of actions from the user, so the number of keys on a physical keyboard with controls varies. Further, according to the number of keys with a control function required by each usage scenario, the number of keys on the physical keyboard can be configured as the keys with a control function corresponding to each usage scenario.

在一些实施方式中,不同的使用场景对应的具有控制功能的按键之间,也可以存在一个或者多个相同的按键。另外,在一些不同的具体使用场景中,这些相同的按键也可以具有相同的功能,例如,在音乐播放场景以及视频播放场景中,具有控制功能的按键可以均设置为F5、F6、F7及F8,并且F5在音乐播放场景以及视频播放场景中均为暂停播放的控制功能,F6在音乐播放场景以及视频播放场景中均为下一节目的控制功能,F7在音乐播放场景以及视频播放场景中均为上一节目的控制功能,F8在音乐播放场景以及视频播放场景中均为倍速播放的控制功能,以上按键以及控制功能仅为举例。In some embodiments, one or more identical keys may also exist between keys with control functions corresponding to different usage scenarios. In addition, in some different specific usage scenarios, these same buttons can also have the same functions. For example, in music playback scenarios and video playback scenarios, the buttons with control functions can all be set to F5, F6, F7 and F8 , and F5 is the control function of pausing playback in the music playback scene and video playback scene, F6 is the control function of the next program in the music playback scene and video playback scene, and F7 is in the music playback scene and the video playback scene. For the control function of the previous program, F8 is the control function of double-speed playback in the music playback scene and the video playback scene. The above buttons and control functions are only examples.

当然,申请实施例中使用场景所对应的具有控制功能的按键及每个按键对应的控制功能,可以根据实际的使用场景、用户需求等配置,在此不做限定。Of course, the keys with control functions corresponding to the usage scenarios in the application embodiments and the control functions corresponding to each key can be configured according to the actual usage scenarios, user requirements, etc., which are not limited herein.

终端设备可以获取当前的使用场景,以便根据当前的使用场景确定物理键盘中具有控制功能的按键以及每个按键的控制功能。作为一种实施方式,终端设备可以根据当前运行的应用而确定当前的使用场景,例如,终端设备当前运行的应用为视频播放程序时,则可以确定当前的使用场景为视频播放场景。作为另一种实施方式,终端设备可以根据用户对多个使用场景中目标使用场景的选择操作,而将目标使用场景确定为当前的使用场景。终端设备获取当前的使用场景的方式可以不作为限定。The terminal device can acquire the current usage scenario, so as to determine the keys with control functions in the physical keyboard and the control function of each key according to the current usage scenario. As an implementation manner, the terminal device may determine the current usage scenario according to the currently running application. For example, when the application currently running on the terminal device is a video playback program, the current usage scenario may be determined as a video playback scenario. As another implementation manner, the terminal device may determine the target usage scenario as the current usage scenario according to the user's selection operation on the target usage scenario among the multiple usage scenarios. The manner in which the terminal device obtains the current usage scenario may not be limited.

步骤S230:根据使用场景确定物理键盘中具有控制功能的一个或多个按键,并确定每个按键所对应的控制功能。Step S230: Determine one or more keys with control functions in the physical keyboard according to the usage scenario, and determine the control function corresponding to each key.

在一些实施方式中,每个使用场景与具有控制功能的按键的对应关系以及每个使用场景中每个按键与具体控制功能的对应关系可以预先配置。终端设备可以根据使用场景与具有控制功能的按键的对应关系,确定物理键盘中与当前的使用场景对对应的控制按键,以及根据每个使用场景中每个按键与具体控制功能的对应关系,确定当前的使用场景中每个按键所对应的控制功能。In some embodiments, the corresponding relationship between each usage scenario and a key with a control function and the corresponding relationship between each key in each usage scenario and a specific control function may be pre-configured. The terminal device can determine the corresponding control key in the physical keyboard corresponding to the current use scenario according to the corresponding relationship between the use scenario and the key with the control function, and determine the corresponding relationship between each key in each use scenario and the specific control function. The control function corresponding to each key in the current usage scene.

作为一种实施方式,终端设备中可以存储有场景标识、具有控制功能的按键以及每个按键的控制功能三者的关系对应表,如表1所示,As an implementation manner, the terminal device may store a relationship correspondence table among scene identifiers, buttons with control functions, and control functions of each button, as shown in Table 1,

表1Table 1

作为另一种实施方式,终端设备中可以存储有每个使用场景的按键配置文件,配置文件可包括用于描述使用场景所对应的具有控制功能的按键的信息以及用于描述每个按键对应的控制功能的信息。终端设备可以根据当前的使用场景,读取与该使用场景对应的配置文件,从而根据配置文件获取物理键盘中与当前的使用场景对应的按键,以及每个按键对应的控制功能。As another implementation manner, a key configuration file for each usage scenario may be stored in the terminal device, and the configuration file may include information used to describe keys with control functions corresponding to the usage scenarios and information used to describe the corresponding keys of each key Information about control functions. The terminal device can read the configuration file corresponding to the usage scenario according to the current usage scenario, so as to obtain the keys on the physical keyboard corresponding to the current usage scenario and the control function corresponding to each key according to the configuration file.

当然,具体确定与当前的使用场景对应的按键以及每个按键的控制功能的实施方式可以不作为限定。Certainly, the implementation manner of specifically determining the key corresponding to the current usage scenario and the control function of each key may not be regarded as a limitation.

步骤S240:根据确定的每个按键所对应的控制功能,分别获取与每个按键对应的虚拟指示内容。Step S240: According to the determined control function corresponding to each key, obtain the virtual indication content corresponding to each key respectively.

步骤S250:根据第一相对空间位置信息,分别获取终端设备与每个按键之间的第二相对空间位置信息。Step S250: Acquire second relative spatial position information between the terminal device and each key, respectively, according to the first relative spatial position information.

步骤S260:基于每个按键对应的第二相对空间位置信息和虚拟指示内容,生成与确定的各个按键分别匹配的虚拟指示,虚拟指示的显示位置与匹配的按键对应。Step S260: Based on the second relative spatial position information corresponding to each key and the virtual indication content, generate virtual indications respectively matching the determined keys, and the display positions of the virtual indications correspond to the matched keys.

在本申请实施例中,步骤S240至步骤S260可以参阅前述实施例的内容,在此不再赘述。In this embodiment of the present application, for steps S240 to S260, reference may be made to the content of the foregoing embodiments, and details are not described herein again.

本申请实施例提供的基于物理键盘的显示方法,根据当前的使用场景确定具有控制功能的按键,并确定每个按键所对应的控制功能,然后生成与这些按键匹配的虚拟指示,从而用户可以根据虚拟指示,对具有控制功能的按键进行操作,实现当前的使用场景所需求的控制功能,方便用户通过物理键盘进行控制。In the display method based on a physical keyboard provided by the embodiment of the present application, keys with control functions are determined according to the current usage scenario, and the control function corresponding to each key is determined, and then virtual instructions matching these keys are generated, so that the user can Virtual instructions, operate the keys with control functions, realize the control functions required by the current usage scene, and facilitate the user to control through the physical keyboard.

请参阅图5,本申请又一个实施例提供了一种基于物理键盘的显示方法,可应用于上述显示系统中的终端设备,该方法可以包括:Referring to FIG. 5, another embodiment of the present application provides a display method based on a physical keyboard, which can be applied to a terminal device in the above-mentioned display system. The method may include:

步骤S310:获取用于选择按键的选择指令,并基于选择指令选择物理键盘的一个或多个按键。Step S310: Obtain a selection instruction for selecting a key, and select one or more keys of the physical keyboard based on the selection instruction.

在一些实施方式中,在使用物理键盘进行控制功能时,物理键盘上具有控制功能的按键,可以由用户设置。终端设备可以显示用于选择按键的虚拟的按键选择画面,然后根据用户输入的选择指令,选择物理键盘的一个或多个按键,将选择的按键配置为具有控制功能的按键。选择指令的输入可以通过物理键盘输入,也可以根据其他交互设备输入,例如鼠标等。In some embodiments, when the physical keyboard is used to perform the control function, the keys on the physical keyboard with the control function can be set by the user. The terminal device may display a virtual key selection screen for selecting keys, and then select one or more keys of the physical keyboard according to a selection instruction input by the user, and configure the selected keys as keys with a control function. The input of the selection instruction can be input through a physical keyboard, or can be input according to other interactive devices, such as a mouse and so on.

通过上述方式,用户可根据个人的需求和喜好,而设置具有控制功能的按键进行控制操作,从而可以满足不同用户的需求和喜好。例如,在相同的游戏场景中,用户1喜欢用W、A、S和D进行方向控制,用户2喜欢用1、2、3和5进行方向控制,从而可以满足不同用户的喜好。In the above manner, users can set buttons with control functions to perform control operations according to personal needs and preferences, so as to meet the needs and preferences of different users. For example, in the same game scene, user 1 likes to use W, A, S, and D for direction control, and user 2 likes to use 1, 2, 3, and 5 for direction control, so that different users' preferences can be met.

步骤S320:获取设置指令,基于设置指令设置每个按键所对应的控制功能。Step S320: Acquire a setting instruction, and set the control function corresponding to each key based on the setting instruction.

在一些实施方式中,终端设备在选择物理键盘中具有控制功能的一个或者多个按键之后,则可以接收对每个按键的控制功能进行设置的设置指令,并根据设置指令,将每个按键对应的控制功能设置为与设置指令匹配的控制功能。In some embodiments, after selecting one or more keys with a control function in the physical keyboard, the terminal device can receive a setting instruction for setting the control function of each key, and according to the setting instruction, assign each key to corresponding The control function is set to the control function that matches the setting instruction.

终端设备在对将每个具有控制功能的按键所对应的控制功能进行设置之后,则可以将每个具有控制功能的按键与控制功能的对应关系进行存储,以便物理键盘用于实现这些控制功能时,终端设备可以根据该对应关系确定具有控制功能的按键以及每个按键对应的控制功能。After setting the control function corresponding to each key with control function, the terminal device can store the corresponding relationship between each key with control function and control function, so that when the physical keyboard is used to realize these control functions , the terminal device can determine the keys with control functions and the control functions corresponding to each key according to the corresponding relationship.

需要说明的是,步骤S310中以及步骤S320中,可以每选择一个具有控制功能的按键,然后设置该按键的控制功能,也可以选择所有具有控制功能的按键之后,再分别设置每个按键对应的控制功能,在此不做限定。It should be noted that, in step S310 and step S320, each time a button with a control function can be selected, and then the control function of the button can be set, or all buttons with a control function can be selected, and then the corresponding button of each button can be set respectively. The control function is not limited here.

步骤S330:获取终端设备与物理键盘之间的第一相对空间位置信息,物理键盘包括多个按键。Step S330: Obtain first relative spatial position information between the terminal device and a physical keyboard, where the physical keyboard includes a plurality of keys.

步骤S340:确定物理键盘中具有控制功能的一个或多个按键。Step S340: Determine one or more keys having a control function in the physical keyboard.

步骤S350:根据确定的每个按键所对应的控制功能,分别获取与每个按键对应的虚拟指示内容。Step S350: According to the determined control function corresponding to each key, obtain the virtual indication content corresponding to each key respectively.

步骤S360:根据第一相对空间位置信息,分别获取终端设备与每个按键之间的第二相对空间位置信息。Step S360: Acquire second relative spatial position information between the terminal device and each key, respectively, according to the first relative spatial position information.

步骤S370:基于每个按键对应的第二相对空间位置信息和虚拟指示内容,生成与确定的各个按键分别匹配的虚拟指示,虚拟指示的显示位置与匹配的按键对应。Step S370: Based on the second relative spatial position information corresponding to each key and the virtual indication content, generate virtual indications respectively matching the determined keys, and the display positions of the virtual indications correspond to the matched keys.

在本申请实施例中,步骤S330至步骤S370可以参阅前述实施例的内容,在此不再赘述。In this embodiment of the present application, for steps S330 to S370, reference may be made to the contents of the foregoing embodiments, and details are not described herein again.

本申请实施例提供的基于物理键盘的显示方法,通过确定具有控制功能的按键所对应的控制功能,然后生成与这些按键匹配的虚拟指示,从而用户可以根据虚拟指示,对具有控制功能的按键进行操作,实现对虚拟内容的控制功能,方便用户与虚拟内容进行交互。另外,具有控制功能的按键以及按键所对应的具体控制功能可以由用户自行设置,因此也满足了用户的需求和喜好。In the display method based on a physical keyboard provided by the embodiment of the present application, by determining the control functions corresponding to the keys with control functions, and then generating virtual instructions matching these keys, the user can perform operations on the keys with control functions according to the virtual instructions. operation to realize the control function of the virtual content, so as to facilitate the user to interact with the virtual content. In addition, the buttons with control functions and the specific control functions corresponding to the buttons can be set by the user, so the needs and preferences of the users are also met.

请参阅图6,本申请再一个实施例提供了一种基于物理键盘的显示方法,可应用于上述显示系统中的终端设备,该方法可以包括:Referring to FIG. 6, another embodiment of the present application provides a display method based on a physical keyboard, which can be applied to a terminal device in the above-mentioned display system. The method may include:

步骤S400:获取终端设备与物理键盘之间的第一相对空间位置信息,物理键盘包括多个按键。Step S400: Obtain first relative spatial position information between the terminal device and a physical keyboard, where the physical keyboard includes a plurality of keys.

步骤S410:确定物理键盘中具有控制功能的一个或多个按键。Step S410: Determine one or more keys having a control function in the physical keyboard.

步骤S420:根据确定的每个按键所对应的控制功能,分别获取与每个按键对应的虚拟指示内容。Step S420: According to the determined control function corresponding to each key, obtain the virtual indication content corresponding to each key respectively.

步骤S430:根据第一相对空间位置信息,分别获取终端设备与每个按键之间的第二相对空间位置信息。Step S430: Acquire second relative spatial position information between the terminal device and each key, respectively, according to the first relative spatial position information.

步骤S440:基于每个按键对应的第二相对空间位置信息和虚拟指示内容,生成与确定的各个按键分别匹配的虚拟指示,虚拟指示的显示位置与匹配的按键对应。Step S440: Based on the second relative spatial position information corresponding to each key and the virtual indication content, generate virtual indications respectively matching the determined keys, and the display positions of the virtual indications correspond to the matched keys.

在本申请实施例中,步骤S410至步骤S440可以参阅前述实施例的内容,在此不再赘述。In this embodiment of the present application, for steps S410 to S440, reference may be made to the contents of the foregoing embodiments, and details are not described herein again.

步骤S450:获取待显示的虚拟画面的第一内容数据。Step S450: Acquire first content data of the virtual screen to be displayed.

在本申请实施例中,终端设备还可以对待显示的虚拟画面进行显示。待显示的虚拟画面可以是操作系统或开启的应用对应的虚拟画面。例如,待显示的虚拟画面可以是虚拟游戏画面;又例如,待显示的虚拟画面可以是虚拟视频画面,再例如;待显示的虚拟画面可以是虚拟的文档画面,以上虚拟画面仅为举例。In this embodiment of the present application, the terminal device may also display the virtual picture to be displayed. The virtual picture to be displayed may be a virtual picture corresponding to an operating system or an opened application. For example, the virtual screen to be displayed may be a virtual game screen; another example, the virtual screen to be displayed may be a virtual video screen, another example; the virtual screen to be displayed may be a virtual document screen, and the above virtual screen is only an example.

在一些实施方式中,终端设备可以获取待显示的虚拟画面的第一内容数据,第一内容数据用于终端设备生成该虚拟画面,第一内容数据可以包括用于生成该虚拟画面的三维模型数据,第一内容数据的具体内容可以参阅前述实施例中虚拟指示内容的描述,在此不再赘述。In some embodiments, the terminal device may acquire first content data of the virtual image to be displayed, the first content data is used by the terminal device to generate the virtual image, and the first content data may include three-dimensional model data used to generate the virtual image , for the specific content of the first content data, reference may be made to the description of the virtual indication content in the foregoing embodiment, which will not be repeated here.

步骤S460:获取第一设定区域与物理键盘之间的第一相对位置关系,第一设定区域为虚拟画面需要叠加于现实场景中的叠加区域,第一设定区域处于物理键盘所在区域以外。Step S460: Obtain the first relative positional relationship between the first setting area and the physical keyboard, where the first setting area is an overlay area where the virtual image needs to be superimposed in the real scene, and the first setting area is outside the area where the physical keyboard is located .

在一些实施方式中,终端设备可以获取虚拟画面需要叠加于现实场景中的叠加位置与物理键盘之间的第一相对位置关系,以便生成虚拟画面进行显示。其中,虚拟画面可显示在一个区域,因此终端设备可以获取虚拟画面需要叠加于现实场景中的叠加区域(第一设定区域)与物理键盘之间的第一相对关系。In some embodiments, the terminal device may acquire the first relative positional relationship between the superimposed position where the virtual image needs to be superimposed in the real scene and the physical keyboard, so as to generate a virtual image for display. The virtual image can be displayed in one area, so the terminal device can obtain the first relative relationship between the superimposed area (the first set area) where the virtual image needs to be superimposed in the real scene and the physical keyboard.

在一些实施方式中,第一设定区域可以处于物理键盘所在区域外,从而虚拟画面在显示后不会与物理键盘所在区域重叠,方便用户同时察看虚拟画面以及物理键盘上的内容,比如,虚拟画面可悬浮叠加显示在终端设备的正前方等。作为一种具体实施方式,第一设定区域可以物理键盘所在区域以外并且与物理键盘的其中一侧边缘区域对应,其中,边缘区域指的是物理键盘的周边所在区域,例如处于物理键盘所在区域以外并且与第一侧边缘区域相邻。In some embodiments, the first setting area may be located outside the area where the physical keyboard is located, so that the virtual image will not overlap with the area where the physical keyboard is located after being displayed, so that the user can view the content on the virtual image and the physical keyboard at the same time. The screen can be suspended and displayed in front of the terminal device, etc. As a specific implementation manner, the first setting area may be outside the area where the physical keyboard is located and correspond to one edge area of the physical keyboard, where the edge area refers to the area around the physical keyboard, such as the area where the physical keyboard is located outside and adjacent to the first side edge region.

在一些实施方式中,第一设定区域还可以与物理键盘所在区域成预设夹角,预设夹角的具体大小可以不作为限定,例如,预设夹角可以为45°~70°,又例如,可以为65°~90°等。从而虚拟画面在显示后可以方便用户察看虚拟画面,提升虚拟画面的显示效果。In some embodiments, the first set area may also form a preset angle with the area where the physical keyboard is located, and the specific size of the preset angle may not be limited, for example, the preset angle may be 45°˜70°, For another example, it may be 65° to 90° or the like. Therefore, after the virtual image is displayed, it is convenient for the user to view the virtual image, and the display effect of the virtual image is improved.

在以上实施方式下,可以使显示的虚拟画面能与物理键盘结合用作电脑的使用,即虚拟画面模拟电脑的显示屏,物理键盘模拟电脑的键盘,用户仅需要携带物理键盘以及终端设备即可实现电脑的使用。In the above implementation manner, the displayed virtual picture can be used as a computer in combination with the physical keyboard, that is, the virtual picture simulates the display screen of the computer, the physical keyboard simulates the keyboard of the computer, and the user only needs to carry the physical keyboard and the terminal device. Realize the use of computer.

步骤S470:根据第一相对空间位置信息、第一相对位置关系以及第一内容数据,生成虚拟画面并将虚拟画面进行显示。Step S470: Generate a virtual image and display the virtual image according to the first relative spatial position information, the first relative position relationship and the first content data.

在本申请实施例中,终端设备可以根据第一相对空间位置信息以及第一相对位置关系,获取虚拟画面的渲染位置,然后根据渲染位置以及第一内容数据渲染虚拟画面后,将虚拟画面进行显示。终端设备生成虚拟画面并将虚拟画面进行显示,可以参阅前述实施例中生成虚拟指示并将虚拟指示进行显示的描述内容。In this embodiment of the present application, the terminal device may acquire the rendering position of the virtual image according to the first relative spatial position information and the first relative position relationship, and then display the virtual image after rendering the virtual image according to the rendering position and the first content data. . The terminal device generates a virtual picture and displays the virtual picture, and can refer to the description content of generating and displaying the virtual instruction in the foregoing embodiment.

需要说明的是,终端设备生成虚拟指示并将虚拟指示进行显示的过程,与终端设备生成虚拟画面并将虚拟画面进行显示的过程的先后顺序可以不作为限定。It should be noted that the sequence of the process of generating and displaying the virtual indication by the terminal device and the process of generating and displaying the virtual picture by the terminal device may not be limited.

步骤S480:当一个或多个按键中存在按键被触发时,获取被触发的按键所对应的显示调整功能。Step S480 : when one or more keys are triggered, acquire the display adjustment function corresponding to the triggered key.

在一些实施方式中,物理键盘中具有控制功能的按键对应的控制功能可以是显示调整功能。其中,显示调整功能可以为对虚拟画面进行显示调整,例如,对虚拟画面进行比例放大、比例缩小、位置移动等控制功能,在此不做限定。In some embodiments, a control function corresponding to a key having a control function in the physical keyboard may be a display adjustment function. The display adjustment function may be display adjustment for the virtual image, for example, control functions such as scale enlargement, scale reduction, and position movement for the virtual image, which are not limited herein.

在一些实施方式中,物理键盘可以检测被触发的按键,并根据被触发的按键生成操作数据,将操作数据发送至终端设备。终端设备可以接收物理键盘生成的操作数据,确定物理键盘中被触发的按键。如果终端设备根据物理键盘发送的操作数据,确定出具有控制功能的按键中存在按键被触发时,则可以确定被触发的按键对应的显示调整功能,以便对虚拟画面进行相应的显示调整。In some embodiments, the physical keyboard can detect a triggered key, generate operation data according to the triggered key, and send the operation data to the terminal device. The terminal device can receive the operation data generated by the physical keyboard, and determine the triggered keys in the physical keyboard. If the terminal device determines, according to the operation data sent by the physical keyboard, that a key is triggered among the keys with control functions, it can determine the display adjustment function corresponding to the triggered key, so as to perform corresponding display adjustment on the virtual screen.

步骤S490:对虚拟画面进行显示调整功能对应的显示调整。Step S490: Perform display adjustment corresponding to the display adjustment function on the virtual screen.

在一些实施方式中,终端设备在确定出被触发的按键所对应的显示调整功能之后,则可以对虚拟画面进行与该显示调整功能相应的显示调整。例如,被触发的按键对应的显示调整功能为对虚拟画面进行比例放大时,则可以根据该按键被触发一次需要进行比例放大的比例大小,将虚拟画面进行该比例大小的比例放大。In some embodiments, after determining the display adjustment function corresponding to the triggered key, the terminal device may perform display adjustment corresponding to the display adjustment function on the virtual screen. For example, when the display adjustment function corresponding to the triggered key is to scale the virtual screen, the virtual screen can be scaled according to the scale that needs to be scaled when the button is triggered once.

例如,物理键盘可以被用于文档编辑的场景,请同时参见图7及图8,终端设备显示的虚拟画面可以为虚拟的文档画面303,在此场景下,物理键盘200中的按键A具有对文档画面303进行比例放大的功能,按键D具有对文档画面303进行比例缩小的功能,与按键A对应的放大功能图标的显示位置与按键A对应,与按键D对应的缩小功能图标的显示位置与按键D对应,当按键D被触发时,则文档画面303的比例大小被缩小。For example, in a scenario where a physical keyboard can be used for document editing, please refer to FIG. 7 and FIG. 8 at the same time, the virtual screen displayed by the terminal device can be a virtual document screen 303. In this scenario, the key A in the physical keyboard 200 has the right pair The document screen 303 has the function of scaling up, and the button D has the function of scaling down the document screen 303. The display position of the zoom function icon corresponding to the button A corresponds to the button A, and the display position of the zoom function icon corresponding to the button D is the same as that of the button D. Corresponding to the button D, when the button D is triggered, the scale of the document screen 303 is reduced.

本申请实施例提供的虚拟键盘的显示方法,终端设备可以根据具有控制功能的按键对应的具体控制功能,生成与具有控制功能的按键匹配的虚拟指示,还可以生成待显示的虚拟画面并将虚拟画面进行显示,用户可以根据虚拟指示,对具有对虚拟画面进行显示调整功能的按键进行操作,实现对虚拟画面的显示调整,方便用户通过物理键盘与虚拟画面进行交互。In the display method of a virtual keyboard provided by the embodiment of the present application, the terminal device can generate a virtual instruction matching the key with a control function according to the specific control function corresponding to the key with a control function, and can also generate a virtual screen to be displayed. The screen is displayed, and the user can operate the keys with the function of adjusting the display of the virtual screen according to the virtual instructions, so as to realize the display adjustment of the virtual screen, and it is convenient for the user to interact with the virtual screen through the physical keyboard.

请参阅图9,本申请还一个实施例提供了一种基于物理键盘的显示方法,可应用于上述显示系统中的终端设备,该方法可以包括:Referring to FIG. 9 , another embodiment of the present application provides a display method based on a physical keyboard, which can be applied to a terminal device in the above-mentioned display system. The method may include:

步骤S500:获取终端设备与物理键盘之间的第一相对空间位置信息,物理键盘包括多个按键。Step S500: Obtain first relative spatial position information between the terminal device and a physical keyboard, where the physical keyboard includes a plurality of keys.

步骤S510:确定物理键盘中具有控制功能的一个或多个按键。Step S510: Determine one or more keys having a control function in the physical keyboard.

步骤S520:根据确定的每个按键所对应的控制功能,分别获取与每个按键对应的虚拟指示内容。Step S520: According to the determined control function corresponding to each key, obtain the virtual indication content corresponding to each key respectively.

步骤S530:根据第一相对空间位置信息,分别获取终端设备与每个按键之间的第二相对空间位置信息。Step S530: Acquire second relative spatial position information between the terminal device and each key, respectively, according to the first relative spatial position information.

步骤S540:基于每个按键对应的第二相对空间位置信息和虚拟指示内容,生成与确定的各个按键分别匹配的虚拟指示,虚拟指示的显示位置与匹配的按键对应。Step S540: Based on the second relative spatial position information corresponding to each key and the virtual indication content, generate virtual indications respectively matching the determined keys, and the display positions of the virtual indications correspond to the matched keys.

在本申请实施例中,步骤S510至步骤S540可以参阅前述实施例的内容,在此不再赘述。In this embodiment of the present application, for steps S510 to S540, reference may be made to the contents of the foregoing embodiments, and details are not described herein again.

步骤S550:获取待显示的虚拟输入框的第二内容数据。Step S550: Acquire second content data of the virtual input box to be displayed.

在本申请实施例中,终端设备还可以对虚拟输入框进行显示,虚拟输入框可以是文本输入场景中用于显示输入字符、候选词等文本内容的文本输入框。例如,虚拟输入框可以用于显示输入法所对应的候选词;又例如,虚拟输入框可以用于显示聊天界面中的文本输入区域的内容,以上虚拟输入框仅为举例。In this embodiment of the present application, the terminal device may also display a virtual input box, and the virtual input box may be a text input box used to display text content such as input characters and candidate words in a text input scenario. For example, the virtual input box may be used to display candidate words corresponding to the input method; for another example, the virtual input box may be used to display the content of the text input area in the chat interface. The above virtual input box is only an example.

在一些实施方式中,终端设备可以获取待显示的虚拟输入框的第二内容数据,第二内容数据用于终端设备生成该虚拟输入框,第二内容数据第一内容数据的具体内容可以参阅前述实施例中虚拟指示内容的描述,在此不再赘述。In some embodiments, the terminal device can obtain the second content data of the virtual input box to be displayed, the second content data is used by the terminal device to generate the virtual input box, and the specific content of the second content data and the first content data can refer to the aforementioned The description of the virtual indication content in the embodiment will not be repeated here.

步骤S560:获取第二设定区域与物理键盘之间的第二相对位置关系,第二设定区域为虚拟输入框需要叠加于现实场景中的叠加区域,第二设定区域位于物理键盘的边缘位置所在区域。Step S560: Obtain the second relative positional relationship between the second setting area and the physical keyboard, the second setting area is the superimposition area where the virtual input box needs to be superimposed in the real scene, and the second setting area is located at the edge of the physical keyboard The region where the location is located.

在本申请实施例中,与前述实施例中第一设定区域不同的是,第二设定区域位于物理键盘的边缘位置所在区域,其中,物理键盘的边缘位置为物理键盘的周边所在位置。例如,第二设定区域可以是贴合物理键盘相对终端设备的上边缘的区域,物理键盘的上边缘可指的是靠近Esc(退出)键的长边缘。In the embodiment of the present application, different from the first setting area in the foregoing embodiments, the second setting area is located in the area where the edge of the physical keyboard is located, where the edge of the physical keyboard is the location of the periphery of the physical keyboard. For example, the second setting area may be an area that fits the upper edge of the physical keyboard opposite to the terminal device, and the upper edge of the physical keyboard may refer to the long edge close to the Esc (escape) key.

步骤S570:根据第一相对空间位置信息、第二相对位置关系以及第二内容数据,生成虚拟输入框并将虚拟输入框进行显示。Step S570: Generate a virtual input box and display the virtual input box according to the first relative spatial position information, the second relative position relationship and the second content data.

在本申请实施例中,步骤S570可以参阅前述实施例中步骤S470的描述内容,在此不再赘述。In this embodiment of the present application, for step S570, reference may be made to the description of step S470 in the foregoing embodiments, and details are not repeated here.

例如,如图10所示,终端设备可以生成虚拟输入框304并将虚拟输入框304进行显示,用户可以通过头戴显示装置的显示镜片,可观察看到虚拟输入框304与物理键盘200的上边缘位置贴合,给用户虚拟输入框304吸附在物理键盘200的视觉效果,便于用户在用物理键盘200进行文字输入时可以同时看到物理键盘200和虚拟输入框304,方便用户进行文字输入。For example, as shown in FIG. 10, the terminal device can generate a virtual input box 304 and display the virtual input box 304. The user can observe the virtual input box 304 and the upper edge of the physical keyboard 200 through the display lens of the head-mounted display device. The position fit gives the user the visual effect that the virtual input box 304 is adsorbed on the physical keyboard 200, so that the user can see the physical keyboard 200 and the virtual input box 304 at the same time when using the physical keyboard 200 for text input, which is convenient for the user to input text.

需要说明的是,终端设备生成虚拟指示并将虚拟指示进行显示的过程,与终端设备生成虚拟输入框并将虚拟输入框进行显示的过程的先后顺序可以不作为限定。It should be noted that the sequence of the process of generating and displaying the virtual instruction by the terminal device and the process of generating and displaying the virtual input box by the terminal device may not be limited.

在一些实施方式中,物理键盘中具有控制功能的按键所对应的控制功能可以为显示调整功能,终端设备可以根据具有控制功能的按键中被触发的按键,对虚拟输入框进行相应的显示调整。In some embodiments, a control function corresponding to a key with a control function in the physical keyboard may be a display adjustment function, and the terminal device may perform corresponding display adjustment on the virtual input box according to a triggered key in the key with a control function.

步骤S580:获取物理键盘中用于输入文本的按键的操作数据。Step S580: Acquire the operation data of the keys used for inputting text in the physical keyboard.

在一些实施方式中,物理键盘中可以包括用于输入文本的按键,用于输入文本的具体按键可以不作为限定。终端设备可以接收物理键盘检测到被触发的按键,而生成的用于输入文本的按键的操作数据。In some embodiments, the physical keyboard may include keys for inputting text, and the specific keys for inputting text may not be limited. The terminal device can receive the operation data of the key for inputting text generated by the physical keyboard detecting the triggered key.

在一些实施方式中,用于输入文本的按键可以与具有控制功能的按键部分相同,在需要进行这部分相同的按键进行输入文本时,可以对这部分按键的模式进行切换,以使这部分按键从用于控制功能的模式切换为输入文本的模式。In some embodiments, the keys used for inputting text can be the same as the part of the keys with control functions. When the same part of keys needs to be used to input text, the mode of this part of the keys can be switched, so that this part of the keys can be switched. Switch from the mode for controlling functions to the mode for entering text.

步骤S590:根据操作数据生成用于在虚拟输入框中显示的虚拟文本信息,并将虚拟文本信息进行显示。Step S590: Generate virtual text information for display in the virtual input box according to the operation data, and display the virtual text information.

在本申请实施例中,终端设备可以根据用于输入文本的按键的操作数据,获取用户输入的文本内容,并根据文本内容生成用于在虚拟输入框中显示的虚拟文本信息,将虚拟文本信息进行显示。In this embodiment of the present application, the terminal device may acquire the text content input by the user according to the operation data of the keys used for inputting text, and generate virtual text information for displaying in the virtual input box according to the text content, and convert the virtual text information into the virtual text information. to display.

在一些实施方式中,本申请实施例中终端设备生成虚拟输入框并将虚拟输入框的实施方式,也可以与前述实施例中终端设备生成虚拟画面并将虚拟画面进行显示的实施方式结合,即终端设备既显示前述实施例中的虚拟画面,也显示虚拟输入框。例如,在前述实施例中终端设备显示虚拟文档内容的场景中,终端设备也还可以显示虚拟输入框,而虚拟输入框可以用于显示输入法对应的内容(例如候选词),从而用户在输入文本内容时能同时看到物理键盘上的按键以及输入法对应的内容,方便用户进行输入文本至虚拟文档内容中。In some implementations, the implementation of the terminal device generating a virtual input box and the virtual input box in the embodiment of the present application may also be combined with the implementation of the terminal device generating a virtual screen and displaying the virtual screen in the foregoing embodiments, that is, The terminal device displays both the virtual screen in the foregoing embodiment and the virtual input box. For example, in the scenario where the terminal device displays the virtual document content in the foregoing embodiment, the terminal device can also display a virtual input box, and the virtual input box can be used to display the content (for example, candidate words) corresponding to the input method, so that the user can input When the text content is used, the keys on the physical keyboard and the corresponding content of the input method can be seen at the same time, which is convenient for the user to input text into the virtual document content.

在一些实施方式中,终端设备还可以生成用于叠加显示于物理键盘的虚拟装饰内容,并将虚拟装饰内容进行显示,从而达到对物理键盘的装饰效果,提升物理键盘的视觉效果。在一种具体的实施方式中,终端设备可以生成带有不同色彩的闪烁虚拟内容,闪烁虚拟内容的显示位置可以与物理键盘的四周的位置对应,并将闪烁虚拟内容进行显示,实现将虚拟的荧光内容叠加显示于物理键盘的四周。对于物理键盘不同的使用情况,可显示不同的虚拟装饰内容,例如,启动时可显示带有不同色彩的闪烁虚拟内容,每个按键上可叠加显示有光晕效果,当按键被按下时,可改变光晕效果的颜色等,但不限于此。作为另一种具体的实施方式,终端设备可以生成与各个按键的键帽内容(键帽上印刷的文字、图案等)所对应的虚拟键帽内容,虚拟键帽内容的显示位置与按键对应,并将虚拟键帽内容进行显示,实现将虚拟键帽内容叠加显示于按键。当然,以上两种具体实施方式也可以结合,从而实现按键四周叠加显示有荧光内容,并且按键上叠加显示由虚拟键帽内容,而达到对物理键盘的装饰效果,提升用户的视觉体验。In some embodiments, the terminal device may also generate virtual decoration content for superimposing and display on the physical keyboard, and display the virtual decoration content, so as to achieve a decoration effect on the physical keyboard and improve the visual effect of the physical keyboard. In a specific implementation, the terminal device can generate flickering virtual content with different colors, and the display position of the flickering virtual content can correspond to the surrounding positions of the physical keyboard, and display the flickering virtual content to realize the virtual Fluorescent content overlays are displayed around the physical keyboard. Different virtual decoration contents can be displayed for different usage conditions of the physical keyboard. For example, flickering virtual contents with different colors can be displayed during startup, and a halo effect can be superimposed on each button. When the button is pressed, The color of the halo effect, etc. may be changed, but not limited thereto. As another specific implementation, the terminal device can generate virtual keycap content corresponding to the keycap content of each key (text, patterns, etc. printed on the keycap), and the display position of the virtual keycap content corresponds to the key, The content of the virtual keycap is displayed, so that the content of the virtual keycap is superimposed and displayed on the keys. Of course, the above two specific embodiments can also be combined, so that fluorescent content is superimposed and displayed around the keys, and the virtual keycap content is superimposed and displayed on the keys, so as to achieve a decorative effect on the physical keyboard and improve the user's visual experience.

本申请实施例提供的基于物理键盘的显示方法,终端设备可以根据具有控制功能的按键对应的具体控制功能,生成与具有控制功能的按键匹配的虚拟指示,方便用户了解按键对应的控制功能。另外,终端设备还可以生成待显示的虚拟输入框并将虚拟输入框进行显示,并且虚拟输入框叠加于现实场景中的位置位于物理键盘所在区域内并靠近物理键盘的边缘位置所在区域,便于用户在用物理键盘进行文字输入时可以同时看到物理键盘和虚拟输入框,方便了用户进行文字输入。In the display method based on the physical keyboard provided by the embodiment of the present application, the terminal device can generate a virtual indication matching the key with the control function according to the specific control function corresponding to the key with the control function, so as to facilitate the user to understand the control function corresponding to the key. In addition, the terminal device can also generate a virtual input box to be displayed and display the virtual input box, and the position where the virtual input box is superimposed in the real scene is located in the area where the physical keyboard is located and is close to the area where the edge of the physical keyboard is located, which is convenient for users When the physical keyboard is used for text input, the physical keyboard and the virtual input box can be seen at the same time, which facilitates the user to input text.

请参见图11,其示出了本申请提供的一种基于物理键盘的显示装置400的结构框图。该基于物理键盘的显示装置400应用于上述显示系统中的终端设备。该基于物理键盘的显示装置400包括:第一位置获取模块410、按键确定模块420、内容获取模块430、第二位置获取模块440以及内容生成模块450。其中,第一位置获取模块410用于获取终端设备与物理键盘之间的第一相对空间位置信息,物理键盘包括多个按键;按键确定模块420用于确定物理键盘中具有控制功能的一个或多个按键;内容获取模块430用于根据确定的每个按键所对应的控制功能,分别获取与每个按键对应的虚拟指示内容;第二位置获取模块440用于根据第一相对空间位置信息,分别获取终端设备与每个按键之间的第二相对空间位置信息;内容生成模块450用于基于每个按键对应的第二相对空间位置信息和虚拟指示内容,生成与确定的各个按键分别匹配的虚拟指示,虚拟指示的显示位置与匹配的按键对应。Please refer to FIG. 11 , which shows a structural block diagram of a display device 400 based on a physical keyboard provided by the present application. The physical keyboard-based display device 400 is applied to the terminal device in the above-mentioned display system. The physical keyboard-based display device 400 includes: a first position acquisition module 410 , a key determination module 420 , a content acquisition module 430 , a second position acquisition module 440 and a content generation module 450 . Wherein, the first position acquisition module 410 is used to acquire the first relative spatial position information between the terminal device and the physical keyboard, and the physical keyboard includes a plurality of keys; the key determination module 420 is used to determine one or more keys with a control function in the physical keyboard The content acquisition module 430 is used for respectively acquiring virtual indication content corresponding to each button according to the determined control function corresponding to each button; the second position acquisition module 440 is used for respectively Obtain the second relative spatial position information between the terminal device and each key; the content generation module 450 is configured to generate virtual corresponding to the determined keys respectively based on the second relative spatial position information corresponding to each key and the virtual indication content. Indication, the display position of the virtual indication corresponds to the matching key.

在一些实施方式中,按键确定模块420可以包括场景确定单元以及按键获取单元。场景确定单用于确定当前的使用场景;按键获取单元用于根据使用场景确定物理键盘中具有控制功能的一个或多个按键,并确定每个按键所对应的控制功能。In some embodiments, the key determination module 420 may include a scene determination unit and a key acquisition unit. The scene determination unit is used to determine the current usage scenario; the key acquisition unit is used to determine one or more keys with control functions in the physical keyboard according to the usage scenario, and determine the control function corresponding to each key.

在一些实施方式中,该基于物理键盘的显示装置400还可以包括指令获取模块以及功能设置模块。指令获取模块用于在获取终端设备与物理键盘之间的第一相对空间位置信息之前,获取用于选择按键的选择指令,并基于选择指令选择物理键盘的一个或多个按键;功能设置模块用于获取设置指令,基于设置指令设置每个按键所对应的控制功能。In some embodiments, the physical keyboard-based display device 400 may further include an instruction acquisition module and a function setting module. The instruction acquisition module is used to acquire a selection instruction for selecting keys before acquiring the first relative spatial position information between the terminal device and the physical keyboard, and select one or more keys of the physical keyboard based on the selection instruction; the function setting module uses For obtaining the setting instruction, the control function corresponding to each key is set based on the setting instruction.

在一些实施方式中,该基于物理键盘的显示装置400还可以包括第一数据获取模块、第一位置关系获取模块以及画面生成模块。第一数据获取模块用于;第一位置关系获取模块用于;画面生成模块用于根据第一相对空间位置信息、第一相对位置关系以及第一内容数据,生成虚拟画面并将虚拟画面进行显示。In some embodiments, the physical keyboard-based display device 400 may further include a first data acquisition module, a first position relationship acquisition module, and a picture generation module. The first data acquisition module is used for; the first position relationship acquisition module is used for; the picture generation module is used for generating a virtual picture and displaying the virtual picture according to the first relative spatial position information, the first relative position relationship and the first content data .

在该实施方式下,该基于物理键盘的显示装置400还可以包括:触发检测模块以及画面调整模块。触发检测模块用于当一个或多个按键中存在按键被触发时,获取被触发的按键所对应的显示调整功能;画面调整模块用于对虚拟画面进行显示调整功能对应的显示调整。In this embodiment, the physical keyboard-based display device 400 may further include: a trigger detection module and a picture adjustment module. The trigger detection module is used to obtain the display adjustment function corresponding to the triggered key when a key in one or more keys is triggered; the image adjustment module is used to perform display adjustment corresponding to the display adjustment function on the virtual screen.

在一些实施方式中,该基于物理键盘的显示装置400还可以包括:第二数据获取模块、第二位置关系获取模块以及输入框生成模块。第二数据获取模块用于获取待显示的虚拟输入框的第二内容数据;第二位置关系获取模块用于获取第二设定区域与物理键盘之间的第二相对位置关系,第二设定区域为虚拟输入框需要叠加于现实场景中的叠加区域,第二设定区域位于物理键盘所在区域内并且靠近物理键盘的边缘位置所在区域;输入框生成模块用于根据第一相对空间位置信息、第二相对位置关系以及第二内容数据,生成虚拟输入框并将虚拟输入框进行显示。In some embodiments, the physical keyboard-based display device 400 may further include: a second data acquisition module, a second position relationship acquisition module, and an input box generation module. The second data acquisition module is used to acquire the second content data of the virtual input box to be displayed; the second positional relationship acquisition module is used to acquire the second relative positional relationship between the second setting area and the physical keyboard, the second setting The area is a superimposed area where the virtual input box needs to be superimposed in the real scene, and the second setting area is located in the area where the physical keyboard is located and is close to the area where the edge of the physical keyboard is located; the input box generation module is used for the first relative spatial position information, The second relative positional relationship and the second content data generate a virtual input box and display the virtual input box.

在该实施方式下,该基于物理键盘的显示装置400还可以包括:操作数据获取模块以及输入控制模块。操作数据获取模块用于获取物理键盘中用于输入文本的按键的操作数据;输入控制模块用于根据操作数据生成用于在虚拟输入框中显示的虚拟文本信息,并将虚拟文本信息进行显示。In this embodiment, the physical keyboard-based display device 400 may further include: an operation data acquisition module and an input control module. The operation data acquisition module is used for acquiring operation data of keys used for inputting text in the physical keyboard; the input control module is used for generating virtual text information for display in the virtual input box according to the operation data, and displaying the virtual text information.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the above-described devices and modules, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.

在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。In several embodiments provided in this application, the coupling between the modules may be electrical, mechanical or other forms of coupling.

另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically alone, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules.

综上,本申请提供的方案,通过获取终端设备与物理键盘之间的第一相对空间位置信息,物理键盘包括多个按键,确定物理键盘中具有控制功能的一个或多个按键,根据确定的每个按键所对应的控制功能,分别获取与每个按键对应的虚拟指示内容,根据第一相对空间位置信息,分别获取终端设备与每个按键之间的第二相对空间位置信息,基于每个按键对应的第二相对空间位置信息和虚拟指示内容,生成与确定的各个按键分别匹配的虚拟指示,虚拟指示的显示位置与匹配的按键对应,从而用户可以根据虚拟指示,对具有控制功能的按键进行操作,实现对虚拟内容的控制功能,方便用户与虚拟内容进行交互。To sum up, in the solution provided by this application, by acquiring the first relative spatial position information between the terminal device and the physical keyboard, the physical keyboard includes a plurality of keys, and one or more keys with a control function in the physical keyboard are determined. For the control function corresponding to each key, obtain the virtual indication content corresponding to each key, respectively obtain the second relative spatial position information between the terminal device and each key according to the first relative spatial position information, based on each key The second relative spatial position information and the virtual indication content corresponding to the keys generate virtual indications that respectively match the determined keys, and the display positions of the virtual indications correspond to the matched keys, so that the user can control the keys with control functions according to the virtual indications. The operation is performed to realize the control function of the virtual content, so as to facilitate the user to interact with the virtual content.

请参考图12,其示出了本申请实施例提供的一种终端设备的结构框图。该终端设备100可以是智能手机、平板电脑、头戴显示设备等能够运行应用程序的终端设备。本申请中的终端设备100可以包括一个或多个如下部件:处理器110、存储器120、图像采集装置130,存储器120中可存储有一个或多个计算机程序,计算机程序可被配置为由一个或多个处理器110执行,以用于执行如前述方法实施例所描述的方法。Please refer to FIG. 12 , which shows a structural block diagram of a terminal device provided by an embodiment of the present application. The terminal device 100 may be a terminal device capable of running an application program, such as a smart phone, a tablet computer, a head-mounted display device, or the like. The terminal device 100 in this application may include one or more of the following components: a processor 110, a memory 120, and an image acquisition device 130. The memory 120 may store one or more computer programs, and the computer programs may be configured to be composed of one or more The plurality of processors 110 are executed for executing the methods described in the foregoing method embodiments.

处理器110可以包括一个或者多个处理核。处理器110利用各种接口和线路连接整个终端设备100内的各个部分,通过运行或执行存储在存储器120内的指令、程序、代码集或指令集,以及调用存储在存储器120内的数据,执行终端设备100的各种功能和处理数据。可选地,处理器110可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable LogicArray,PLA)中的至少一种硬件形式来实现。处理器110可集成中央处理器(CentralProcessing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器110中,单独通过一块通信芯片进行实现。The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire terminal device 100, and executes by running or executing the instructions, programs, code sets or instruction sets stored in the memory 120, and calling the data stored in the memory 120. Various functions of the terminal device 100 and processing data. Optionally, the processor 110 may adopt at least one of digital signal processing (Digital Signal Processing, DSP), field-programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). implemented in hardware. The processor 110 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a modem, and the like. Among them, the CPU mainly handles the operating system, user interface and application programs, etc.; the GPU is used for rendering and drawing of the display content; the modem is used to handle wireless communication. It can be understood that, the above-mentioned modem may also not be integrated into the processor 110, and is implemented by a communication chip alone.

存储器120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器120可用于存储指令、程序、代码、代码集或指令集。存储器120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储终端100在使用中所创建的数据等。The memory 120 may include random access memory (Random Access Memory, RAM), or may include read-only memory (Read-Only Memory). Memory 120 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the following method embodiments, and the like. The storage data area may also store data and the like created by the terminal 100 in use.

在本申请实施例中,图像采集装置130用于采集标记物的图像。图像采集装置130可以为红外摄像头,也可以是彩色摄像头,具体的摄像头类型在本申请实施例中并不作为限定。In this embodiment of the present application, the image acquisition device 130 is used to acquire images of markers. The image acquisition device 130 may be an infrared camera or a color camera, and the specific camera type is not limited in this embodiment of the present application.

在一个实施例中,终端设备还可包括如下一个或多个部件:显示模组、光学模组、通信模块以及电源。显示模组可包括显示控制单元,显示控制单元用于接收处理器渲染后的虚拟内容的显示图像,将该显示图像显示并投射至光学模组上,使用户能够通过光学模组观看到虚拟内容。其中,显示模组可以是显示屏或投射装置等,用于显示图像。光学模组可采用离轴光学系统或波导光学系统,显示模组显示的显示图像经光学模组后,能够被投射至用户的眼睛。用户通过光学模组可看到显示模组投射的显示图像。在一些实施方式中,用户还能够透过光学模组观察到现实环境,感受虚拟内容与现实环境叠加后的视觉效果。通信模块可是蓝牙、WiFi、ZigBee等模块,终端设备可通过通信模块与交互设备通信连接,以进行信息以及指令的交互。电源可为整个终端设备进行供电,保证终端设备各个部件的正常运行。In one embodiment, the terminal device may further include one or more of the following components: a display module, an optical module, a communication module, and a power supply. The display module may include a display control unit, the display control unit is configured to receive a display image of the virtual content rendered by the processor, display and project the display image on the optical module, so that the user can view the virtual content through the optical module . The display module may be a display screen or a projection device, etc., for displaying images. The optical module may adopt an off-axis optical system or a waveguide optical system, and the display image displayed by the display module can be projected to the user's eyes after passing through the optical module. The user can see the display image projected by the display module through the optical module. In some embodiments, the user can also observe the real environment through the optical module, and feel the visual effect after the virtual content and the real environment are superimposed. The communication module can be modules such as Bluetooth, WiFi, ZigBee, etc. The terminal device can communicate and connect with the interactive device through the communication module to exchange information and instructions. The power supply can supply power to the entire terminal equipment to ensure the normal operation of each component of the terminal equipment.

请参考图13,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质800中存储有程序代码,程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 13 , which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. The computer-readable medium 800 stores program codes, and the program codes can be invoked by the processor to execute the methods described in the above method embodiments.

计算机可读存储介质800可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质800包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质800具有执行上述方法中的任何方法步骤的程序代码810的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码810可以例如以适当形式进行压缩。The computer readable storage medium 800 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium. Computer readable storage medium 800 has storage space for program code 810 to perform any of the method steps in the above-described methods. These program codes can be read from or written to one or more computer program products. Program code 810 may be compressed, for example, in a suitable form.

最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or some technical features thereof are equivalently replaced; and these modifications or replacements do not drive the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (10)

1.一种基于物理键盘的显示方法,其特征在于,所述方法包括:1. a display method based on physical keyboard, is characterized in that, described method comprises: 获取终端设备与物理键盘之间的第一相对空间位置信息,所述物理键盘包括多个按键;acquiring first relative spatial position information between the terminal device and a physical keyboard, where the physical keyboard includes a plurality of keys; 确定所述物理键盘中具有控制功能的一个或多个按键;determining one or more keys with control functions in the physical keyboard; 根据确定的每个按键所对应的控制功能,分别获取与所述每个按键对应的虚拟指示内容;According to the determined control function corresponding to each key, obtain the virtual indication content corresponding to each key respectively; 根据所述第一相对空间位置信息,分别获取所述终端设备与所述每个按键之间的第二相对空间位置信息;According to the first relative spatial position information, respectively obtain second relative spatial position information between the terminal device and each key; 基于所述每个按键对应的第二相对空间位置信息和虚拟指示内容,生成与确定的各个按键分别匹配的虚拟指示,所述虚拟指示的显示位置与匹配的按键对应。Based on the second relative spatial position information corresponding to each key and the virtual indication content, a virtual indication matching each of the determined keys is generated, and the display position of the virtual indication corresponds to the matched key. 2.根据权利要求1所述的方法,其特征在于,所述确定所述物理键盘中具有控制功能的一个或多个按键,包括:2. The method according to claim 1, wherein the determining of one or more keys having a control function in the physical keyboard comprises: 确定当前的使用场景;Determine the current usage scenario; 根据所述使用场景确定所述物理键盘中具有控制功能的一个或多个按键,并确定每个按键所对应的控制功能。One or more keys having control functions in the physical keyboard are determined according to the usage scenario, and a control function corresponding to each key is determined. 3.根据权利要求1所述的方法,其特征在于,在所述获取终端设备与物理键盘之间的第一相对空间位置信息之前,所述方法还包括:3 . The method according to claim 1 , wherein before acquiring the first relative spatial position information between the terminal device and the physical keyboard, the method further comprises: 4 . 获取用于选择按键的选择指令,并基于所述选择指令选择物理键盘的一个或多个按键;obtaining a selection instruction for selecting a key, and selecting one or more keys of a physical keyboard based on the selection instruction; 获取设置指令,基于所述设置指令设置每个按键所对应的控制功能。A setting instruction is acquired, and the control function corresponding to each key is set based on the setting instruction. 4.根据权利要求1-3任一项所述的方法,其特征在于,所述方法还包括:4. The method according to any one of claims 1-3, wherein the method further comprises: 获取待显示的虚拟画面的第一内容数据;acquiring first content data of the virtual screen to be displayed; 获取第一设定区域与所述物理键盘之间的第一相对位置关系,所述第一设定区域为所述虚拟画面需要叠加于现实场景中的叠加区域,所述第一设定区域处于所述物理键盘所在区域以外;Obtain the first relative positional relationship between the first setting area and the physical keyboard, the first setting area is the superposition area where the virtual image needs to be superimposed in the real scene, and the first setting area is in outside the area where the physical keyboard is located; 根据所述第一相对空间位置信息、第一相对位置关系以及所述第一内容数据,生成所述虚拟画面并将所述虚拟画面进行显示。The virtual screen is generated and displayed according to the first relative spatial position information, the first relative position relationship and the first content data. 5.根据权利要求4所述的方法,其特征在于,所述方法还包括:5. The method according to claim 4, wherein the method further comprises: 当所述一个或多个按键中存在按键被触发时,获取被触发的按键所对应的显示调整功能;When a key is triggered in the one or more keys, obtain the display adjustment function corresponding to the triggered key; 对所述虚拟画面进行所述显示调整功能对应的显示调整。A display adjustment corresponding to the display adjustment function is performed on the virtual screen. 6.根据权利要求1-3任一项所述的方法,其特征在于,所述方法还包括:6. The method according to any one of claims 1-3, wherein the method further comprises: 获取待显示的虚拟输入框的第二内容数据;obtaining the second content data of the virtual input box to be displayed; 获取第二设定区域与所述物理键盘之间的第二相对位置关系,所述第二设定区域为所述虚拟输入框需要叠加于现实场景中的叠加区域,所述第二设定区域位于所述物理键盘的边缘位置所在区域;Obtain a second relative positional relationship between a second setting area and the physical keyboard, where the second setting area is an overlay area where the virtual input box needs to be superimposed in the real scene, and the second setting area is located in the area where the edge of the physical keyboard is located; 根据所述第一相对空间位置信息、所述第二相对位置关系以及所述第二内容数据,生成所述虚拟输入框并将所述虚拟输入框进行显示。According to the first relative spatial position information, the second relative position relationship and the second content data, the virtual input box is generated and displayed. 7.根据权利要求6所述的方法,其特征在于,所述方法还包括:7. The method according to claim 6, wherein the method further comprises: 获取所述物理键盘中用于输入文本的按键的操作数据;Obtain the operation data of the keys used for inputting text in the physical keyboard; 根据所述操作数据生成用于在所述虚拟输入框中显示的虚拟文本信息,并将所述虚拟文本信息进行显示。The virtual text information for displaying in the virtual input box is generated according to the operation data, and the virtual text information is displayed. 8.一种基于物理键盘的显示装置,其特征在于,所述装置包括:第一位置获取模块、按键确定模块、内容获取模块、第二位置获取模块以及内容生成模块,其中,8. A display device based on a physical keyboard, wherein the device comprises: a first position acquisition module, a key determination module, a content acquisition module, a second position acquisition module and a content generation module, wherein, 所述第一位置获取模块用于获取终端设备与物理键盘之间的第一相对空间位置信息,所述物理键盘包括多个按键;The first position acquisition module is used to acquire first relative spatial position information between the terminal device and a physical keyboard, where the physical keyboard includes a plurality of keys; 所述按键确定模块用于确定所述物理键盘中具有控制功能的一个或多个按键;The key determination module is used to determine one or more keys with a control function in the physical keyboard; 所述内容获取模块用于根据确定的每个按键所对应的控制功能,分别获取与所述每个按键对应的虚拟指示内容;The content obtaining module is configured to obtain virtual indication content corresponding to each key according to the determined control function corresponding to each key; 所述第二位置获取模块用于根据所述第一相对空间位置信息,分别获取所述终端设备与所述每个按键之间的第二相对空间位置信息;The second position obtaining module is configured to obtain the second relative space position information between the terminal device and each key according to the first relative space position information; 所述内容生成模块用于基于所述每个按键对应的第二相对空间位置信息和虚拟指示内容,生成与确定的各个按键分别匹配的虚拟指示,所述虚拟指示的显示位置与匹配的按键对应。The content generation module is configured to generate virtual indications that are respectively matched with the determined keys based on the second relative spatial position information corresponding to each key and the virtual indication content, and the display positions of the virtual indications correspond to the matched keys. . 9.一种终端设备,其特征在于,包括:9. A terminal device, comprising: 一个或多个处理器;one or more processors; 存储器;memory; 一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行如权利要求1-7任一项所述的方法。One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs are configured to perform such as The method of any one of claims 1-7. 10.一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-7任一项所述的方法。10. A computer-readable storage medium, wherein a program code is stored in the computer-readable storage medium, and the program code can be invoked by a processor to execute any one of claims 1-7 Methods.
CN201910684470.7A 2019-07-26 2019-07-26 Display methods, device, terminal device and storage medium based on physical keyboard Pending CN110442245A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910684470.7A CN110442245A (en) 2019-07-26 2019-07-26 Display methods, device, terminal device and storage medium based on physical keyboard

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910684470.7A CN110442245A (en) 2019-07-26 2019-07-26 Display methods, device, terminal device and storage medium based on physical keyboard

Publications (1)

Publication Number Publication Date
CN110442245A true CN110442245A (en) 2019-11-12

Family

ID=68431814

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910684470.7A Pending CN110442245A (en) 2019-07-26 2019-07-26 Display methods, device, terminal device and storage medium based on physical keyboard

Country Status (1)

Country Link
CN (1) CN110442245A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111158825A (en) * 2019-12-27 2020-05-15 联想(北京)有限公司 Control method and system
CN114706489A (en) * 2022-02-28 2022-07-05 北京所思信息科技有限责任公司 Virtual method, device, equipment and storage medium of input equipment
US20220253130A1 (en) * 2021-02-08 2022-08-11 Multinarity Ltd Keyboard sensor for augmenting smart glasses sensor
US11475650B2 (en) 2021-02-08 2022-10-18 Multinarity Ltd Environmentally adaptive extended reality display system
US11480791B2 (en) 2021-02-08 2022-10-25 Multinarity Ltd Virtual content sharing across smart glasses
CN115633119A (en) * 2022-09-24 2023-01-20 深圳市般若造物科技有限公司 Multifunctional keyboard control method, multifunctional keyboard, control device and storage medium
WO2023049248A1 (en) * 2021-09-24 2023-03-30 Apple Inc. Method and device for facilitating interactions with a peripheral device
US11748056B2 (en) 2021-07-28 2023-09-05 Sightful Computers Ltd Tying a virtual speaker to a physical space
US11846981B2 (en) 2022-01-25 2023-12-19 Sightful Computers Ltd Extracting video conference participants to extended reality environment
US11948263B1 (en) 2023-03-14 2024-04-02 Sightful Computers Ltd Recording the complete physical and extended reality environments of a user
US12073054B2 (en) 2022-09-30 2024-08-27 Sightful Computers Ltd Managing virtual collisions between moving virtual objects
TWI857362B (en) * 2022-10-12 2024-10-01 宏碁股份有限公司 Method for pairing and transferring data between portable apparatus and e-ink keyboard of electronic product
US12175614B2 (en) 2022-01-25 2024-12-24 Sightful Computers Ltd Recording the complete physical and extended reality environments of a user

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140035819A1 (en) * 2012-08-03 2014-02-06 Research In Motion Limited Method and Apparatus Pertaining to an Augmented-Reality Keyboard
CN106383652A (en) * 2016-08-31 2017-02-08 北京极维客科技有限公司 Virtual input method and system apparatus

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140035819A1 (en) * 2012-08-03 2014-02-06 Research In Motion Limited Method and Apparatus Pertaining to an Augmented-Reality Keyboard
CN106383652A (en) * 2016-08-31 2017-02-08 北京极维客科技有限公司 Virtual input method and system apparatus

Cited By (58)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111158825B (en) * 2019-12-27 2022-08-19 联想(北京)有限公司 Control method and system
CN111158825A (en) * 2019-12-27 2020-05-15 联想(北京)有限公司 Control method and system
US11797051B2 (en) 2021-02-08 2023-10-24 Multinarity Ltd Keyboard sensor for augmenting smart glasses sensor
US12095867B2 (en) 2021-02-08 2024-09-17 Sightful Computers Ltd Shared extended reality coordinate system generated on-the-fly
US11475650B2 (en) 2021-02-08 2022-10-18 Multinarity Ltd Environmentally adaptive extended reality display system
US11480791B2 (en) 2021-02-08 2022-10-25 Multinarity Ltd Virtual content sharing across smart glasses
US11481963B2 (en) 2021-02-08 2022-10-25 Multinarity Ltd Virtual display changes based on positions of viewers
US11496571B2 (en) 2021-02-08 2022-11-08 Multinarity Ltd Systems and methods for moving content between virtual and physical displays
US11514656B2 (en) 2021-02-08 2022-11-29 Multinarity Ltd Dual mode control of virtual objects in 3D space
US11516297B2 (en) 2021-02-08 2022-11-29 Multinarity Ltd Location-based virtual content placement restrictions
US12189422B2 (en) 2021-02-08 2025-01-07 Sightful Computers Ltd Extending working display beyond screen edges
US11561579B2 (en) 2021-02-08 2023-01-24 Multinarity Ltd Integrated computational interface device with holder for wearable extended reality appliance
US11567535B2 (en) 2021-02-08 2023-01-31 Multinarity Ltd Temperature-controlled wearable extended reality appliance
US11574451B2 (en) 2021-02-08 2023-02-07 Multinarity Ltd Controlling 3D positions in relation to multiple virtual planes
US11574452B2 (en) 2021-02-08 2023-02-07 Multinarity Ltd Systems and methods for controlling cursor behavior
US11580711B2 (en) 2021-02-08 2023-02-14 Multinarity Ltd Systems and methods for controlling virtual scene perspective via physical touch input
US11582312B2 (en) 2021-02-08 2023-02-14 Multinarity Ltd Color-sensitive virtual markings of objects
US11588897B2 (en) 2021-02-08 2023-02-21 Multinarity Ltd Simulating user interactions over shared content
US11592871B2 (en) 2021-02-08 2023-02-28 Multinarity Ltd Systems and methods for extending working display beyond screen edges
US11592872B2 (en) 2021-02-08 2023-02-28 Multinarity Ltd Systems and methods for configuring displays based on paired keyboard
US11601580B2 (en) 2021-02-08 2023-03-07 Multinarity Ltd Keyboard cover with integrated camera
US11599148B2 (en) 2021-02-08 2023-03-07 Multinarity Ltd Keyboard with touch sensors dedicated for virtual keys
US11609607B2 (en) 2021-02-08 2023-03-21 Multinarity Ltd Evolving docking based on detected keyboard positions
US11811876B2 (en) 2021-02-08 2023-11-07 Sightful Computers Ltd Virtual display changes based on positions of viewers
US11620799B2 (en) 2021-02-08 2023-04-04 Multinarity Ltd Gesture interaction with invisible virtual objects
US11627172B2 (en) 2021-02-08 2023-04-11 Multinarity Ltd Systems and methods for virtual whiteboards
US12094070B2 (en) 2021-02-08 2024-09-17 Sightful Computers Ltd Coordinating cursor movement between a physical surface and a virtual surface
US11650626B2 (en) 2021-02-08 2023-05-16 Multinarity Ltd Systems and methods for extending a keyboard to a surrounding surface using a wearable extended reality appliance
US20220253130A1 (en) * 2021-02-08 2022-08-11 Multinarity Ltd Keyboard sensor for augmenting smart glasses sensor
US12095866B2 (en) 2021-02-08 2024-09-17 Multinarity Ltd Sharing obscured content to provide situational awareness
US11927986B2 (en) 2021-02-08 2024-03-12 Sightful Computers Ltd. Integrated computational interface device with holder for wearable extended reality appliance
US11924283B2 (en) 2021-02-08 2024-03-05 Multinarity Ltd Moving content between virtual and physical displays
US11882189B2 (en) 2021-02-08 2024-01-23 Sightful Computers Ltd Color-sensitive virtual markings of objects
US11863311B2 (en) 2021-02-08 2024-01-02 Sightful Computers Ltd Systems and methods for virtual whiteboards
US11861061B2 (en) 2021-07-28 2024-01-02 Sightful Computers Ltd Virtual sharing of physical notebook
US11829524B2 (en) 2021-07-28 2023-11-28 Multinarity Ltd. Moving content between a virtual display and an extended reality environment
US12265655B2 (en) 2021-07-28 2025-04-01 Sightful Computers Ltd. Moving windows between a virtual display and an extended reality environment
US11816256B2 (en) 2021-07-28 2023-11-14 Multinarity Ltd. Interpreting commands in extended reality environments based on distances from physical input devices
US12236008B2 (en) 2021-07-28 2025-02-25 Sightful Computers Ltd Enhancing physical notebooks in extended reality
US11809213B2 (en) 2021-07-28 2023-11-07 Multinarity Ltd Controlling duty cycle in wearable extended reality appliances
US11748056B2 (en) 2021-07-28 2023-09-05 Sightful Computers Ltd Tying a virtual speaker to a physical space
WO2023049248A1 (en) * 2021-09-24 2023-03-30 Apple Inc. Method and device for facilitating interactions with a peripheral device
US12175614B2 (en) 2022-01-25 2024-12-24 Sightful Computers Ltd Recording the complete physical and extended reality environments of a user
US11941149B2 (en) 2022-01-25 2024-03-26 Sightful Computers Ltd Positioning participants of an extended reality conference
US11877203B2 (en) 2022-01-25 2024-01-16 Sightful Computers Ltd Controlled exposure to location-based virtual content
US11846981B2 (en) 2022-01-25 2023-12-19 Sightful Computers Ltd Extracting video conference participants to extended reality environment
CN114706489A (en) * 2022-02-28 2022-07-05 北京所思信息科技有限责任公司 Virtual method, device, equipment and storage medium of input equipment
CN114706489B (en) * 2022-02-28 2023-04-25 北京所思信息科技有限责任公司 Virtual method, device, equipment and storage medium of input equipment
CN115633119B (en) * 2022-09-24 2024-02-20 深圳市般若造物科技有限公司 Multifunctional keyboard control method, multifunctional keyboard, control device and storage medium
CN115633119A (en) * 2022-09-24 2023-01-20 深圳市般若造物科技有限公司 Multifunctional keyboard control method, multifunctional keyboard, control device and storage medium
US12099696B2 (en) 2022-09-30 2024-09-24 Sightful Computers Ltd Displaying virtual content on moving vehicles
US12112012B2 (en) 2022-09-30 2024-10-08 Sightful Computers Ltd User-customized location based content presentation
US12124675B2 (en) 2022-09-30 2024-10-22 Sightful Computers Ltd Location-based virtual resource locator
US12141416B2 (en) 2022-09-30 2024-11-12 Sightful Computers Ltd Protocol for facilitating presentation of extended reality content in different physical environments
US12079442B2 (en) 2022-09-30 2024-09-03 Sightful Computers Ltd Presenting extended reality content in different physical environments
US12073054B2 (en) 2022-09-30 2024-08-27 Sightful Computers Ltd Managing virtual collisions between moving virtual objects
TWI857362B (en) * 2022-10-12 2024-10-01 宏碁股份有限公司 Method for pairing and transferring data between portable apparatus and e-ink keyboard of electronic product
US11948263B1 (en) 2023-03-14 2024-04-02 Sightful Computers Ltd Recording the complete physical and extended reality environments of a user

Similar Documents

Publication Publication Date Title
CN110442245A (en) Display methods, device, terminal device and storage medium based on physical keyboard
US9454834B2 (en) Storage medium storing image processing program for implementing controlled image display according to input coordinate, and information processing device
CN110456907A (en) Virtual screen control method, device, terminal equipment and storage medium
EP2919104B1 (en) Information processing device, information processing method, and computer-readable recording medium
CN111158469A (en) Viewing angle switching method, device, terminal device and storage medium
CN111078003B (en) Data processing method, device, electronic device and storage medium
WO2005119591A1 (en) Display control device, display control method, program, and portable apparatus
US20160012612A1 (en) Display control method and system
WO2020078443A1 (en) Method and system for displaying virtual content based on augmented reality and terminal device
CN111383345B (en) Virtual content display method and device, terminal equipment and storage medium
JP2015153046A (en) Image processor, image processing method and program
JP7005161B2 (en) Electronic devices and their control methods
CN111813214B (en) Virtual content processing method, device, terminal device and storage medium
JP2018005477A (en) Display control program, display control method and display control device
US8643679B2 (en) Storage medium storing image conversion program and image conversion apparatus
JP2017004354A (en) Display control method, display control program, information processing terminal, and wearable device
CN111913674B (en) Virtual content display method, device, system, terminal equipment and storage medium
CN111913560B (en) Virtual content display method, device, system, terminal equipment and storage medium
CN111399630B (en) Virtual content interaction method, device, terminal device and storage medium
JP4871226B2 (en) Recognition device and recognition method
CN111913564B (en) Virtual content manipulation method, device, system, terminal equipment and storage medium
JP7005160B2 (en) Electronic devices and their control methods
CN111913639B (en) Virtual content interaction method, device, system, terminal equipment and storage medium
JP2024103514A (en) Object attitude control program and information processing device
KR102278229B1 (en) Electronic device and its control method

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191112

RJ01 Rejection of invention patent application after publication