CN114638949A - Virtual object display method and device, electronic equipment and storage medium - Google Patents
Virtual object display method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114638949A CN114638949A CN202210307476.4A CN202210307476A CN114638949A CN 114638949 A CN114638949 A CN 114638949A CN 202210307476 A CN202210307476 A CN 202210307476A CN 114638949 A CN114638949 A CN 114638949A
- Authority
- CN
- China
- Prior art keywords
- virtual object
- target virtual
- target
- display
- state
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T19/00—Manipulating three-dimensional [3D] models or images for computer graphics
- G06T19/006—Mixed reality
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three-dimensional [3D] modelling for computer graphics
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Graphics (AREA)
- Software Systems (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Geometry (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域technical field
本公开涉及计算机技术领域,尤其涉及一种虚拟对象显示方法及装置、电子设备和存储介质。The present disclosure relates to the field of computer technologies, and in particular, to a method and apparatus for displaying virtual objects, an electronic device, and a storage medium.
背景技术Background technique
在增强现实领域,虚拟对象本身带有坐标位置,锚定在某个位置下进行显示,不随用户终端的移动而移动。因此,在用户终端与虚拟对象距离太近时,用户终端通常会被AR对象的部分区域填满,无法显示全部虚拟对象且影响虚拟对象在AR影像中的视觉效果。In the field of augmented reality, the virtual object itself has a coordinate position, which is anchored at a certain position for display, and does not move with the movement of the user terminal. Therefore, when the distance between the user terminal and the virtual object is too close, the user terminal is usually filled with a part of the AR object, which cannot display all the virtual objects and affects the visual effect of the virtual objects in the AR image.
发明内容SUMMARY OF THE INVENTION
本公开提出了一种虚拟对象显示方法及装置、电子设备和存储介质,旨在减小用户终端与虚拟对象的距离对AR影像中虚拟对象显示效果的影响。The present disclosure proposes a virtual object display method and device, an electronic device and a storage medium, aiming at reducing the influence of the distance between a user terminal and the virtual object on the display effect of the virtual object in the AR image.
根据本公开的第一方面,提供了一种虚拟对象显示方法,包括:According to a first aspect of the present disclosure, a method for displaying virtual objects is provided, including:
确定用户终端的第一位置信息;determining the first location information of the user terminal;
根据所述第一位置信息确定待显示的目标虚拟对象,所述目标虚拟对象具有对应的目标区域;Determine a target virtual object to be displayed according to the first position information, and the target virtual object has a corresponding target area;
根据所述第一位置信息和所述目标虚拟对象对应目标区域的位置关系,切换所述目标虚拟对象的显示状态;switching the display state of the target virtual object according to the first position information and the positional relationship of the target virtual object corresponding to the target area;
其中,响应于所述第一位置信息在所述目标虚拟对象的目标区域外,将所述目标虚拟对象在AR影像中的显示状态切换为第一状态;响应于所述第一位置信息在所述目标虚拟对象的目标区域内,将所述目标虚拟对象在AR影像中的显示状态切换为第二状态。Wherein, in response to the first position information being outside the target area of the target virtual object, the display state of the target virtual object in the AR image is switched to the first state; in response to the first position information being in the target virtual object In the target area of the target virtual object, the display state of the target virtual object in the AR image is switched to the second state.
在一种可能的实现方式中,所述第一状态为以原始尺寸显示所述目标虚拟对象,所述第二状态为不显示所述目标虚拟对象,或以小于所述原始尺寸的显示尺寸显示所述目标虚拟对象,所述原始尺寸为所述目标虚拟对象预设的显示尺寸。In a possible implementation manner, the first state is to display the target virtual object in an original size, and the second state is to not display the target virtual object, or to display the target virtual object in a display size smaller than the original size For the target virtual object, the original size is the preset display size of the target virtual object.
在一种可能的实现方式中,所述目标区域为以锚点为圆心,预设尺寸为半径的圆形区域,所述锚点用于表征所述目标虚拟对象的第二位置信息。In a possible implementation manner, the target area is a circular area with an anchor point as a center and a preset size as a radius, and the anchor point is used to represent the second position information of the target virtual object.
在一种可能的实现方式中,响应于所述第一位置信息在所述目标虚拟对象的目标区域外,所述方法还包括:In a possible implementation manner, in response to the first position information being outside the target area of the target virtual object, the method further includes:
检测所述用户终端的第一位置信息;detecting the first location information of the user terminal;
响应于所述第一位置信息由所述目标区域外移动至所述目标区域内,将所述目标虚拟对象在AR影像中的显示状态切换为第二状态。In response to the movement of the first position information from outside the target area to the inside of the target area, the display state of the target virtual object in the AR image is switched to a second state.
在一种可能的实现方式中,响应于所述第一位置信息在所述目标虚拟对象的目标区域内,所述方法还包括:In a possible implementation manner, in response to the first position information being within the target area of the target virtual object, the method further includes:
检测所述用户终端的第一位置信息;detecting the first location information of the user terminal;
响应于所述第一位置信息由所述目标区域内移动至所述目标区域外,将所述目标虚拟对象在AR影像中的显示状态切换为第一状态。In response to the first position information moving from within the target area to outside the target area, the display state of the target virtual object in the AR image is switched to the first state.
在一种可能的实现方式中,在所述第二状态为不显示所述目标虚拟对象的情况下,在所述第一位置信息由所述目标区域外向所述目标区域内移动的过程中,和/或由所述目标区域内向所述目标区域外移动的过程中,通过预设的切换效果切换所述目标虚拟对象在AR影像中的显示状态。In a possible implementation manner, when the second state is that the target virtual object is not displayed, during the process of moving the first position information from outside the target area to the target area, And/or in the process of moving from the inside of the target area to the outside of the target area, the display state of the target virtual object in the AR image is switched through a preset switching effect.
在一种可能的实现方式中,在所述第二状态为以小于所述原始尺寸的显示尺寸显示所述目标虚拟对象的情况下,所述显示尺寸与所述第一位置信息和第二位置信息之间的距离正相关。In a possible implementation manner, when the second state is to display the target virtual object in a display size smaller than the original size, the display size is related to the first position information and the second position The distance between information is positively correlated.
根据本公开的第二方面,提供了一种虚拟对象显示装置,包括:According to a second aspect of the present disclosure, there is provided a virtual object display device, comprising:
第一位置确定模块,用于确定用户终端的第一位置信息;a first location determination module, configured to determine the first location information of the user terminal;
对象确定模块,用于根据所述第一位置信息确定待显示的目标虚拟对象,所述目标虚拟对象具有对应的目标区域;an object determination module, configured to determine a target virtual object to be displayed according to the first position information, where the target virtual object has a corresponding target area;
对象显示模块,用于根据所述第一位置信息和所述目标虚拟对象对应目标区域的位置关系,切换所述目标虚拟对象的显示状态;an object display module, configured to switch the display state of the target virtual object according to the first position information and the positional relationship of the target virtual object corresponding to the target area;
其中,响应于所述第一位置信息在所述目标虚拟对象的目标区域外,将所述目标虚拟对象在AR影像中的显示状态切换为第一状态;响应于所述第一位置信息在所述目标虚拟对象的目标区域内,将所述目标虚拟对象在AR影像中的显示状态切换为第二状态。Wherein, in response to the first position information being outside the target area of the target virtual object, the display state of the target virtual object in the AR image is switched to the first state; in response to the first position information being in the target virtual object In the target area of the target virtual object, the display state of the target virtual object in the AR image is switched to the second state.
在一种可能的实现方式中,所述第一状态为以原始尺寸显示所述目标虚拟对象,所述第二状态为不显示所述目标虚拟对象,或以小于所述原始尺寸的显示尺寸显示所述目标虚拟对象,所述原始尺寸为所述目标虚拟对象预设的显示尺寸。In a possible implementation manner, the first state is to display the target virtual object in an original size, and the second state is to not display the target virtual object, or to display the target virtual object in a display size smaller than the original size For the target virtual object, the original size is the preset display size of the target virtual object.
在一种可能的实现方式中,所述目标区域为以锚点为圆心,预设尺寸为半径的圆形区域,所述锚点用于表征所述目标虚拟对象的第二位置信息。In a possible implementation manner, the target area is a circular area with an anchor point as a center and a preset size as a radius, and the anchor point is used to represent the second position information of the target virtual object.
在一种可能的实现方式中,响应于所述第一位置信息在所述目标虚拟对象的目标区域外,所述装置还包括:In a possible implementation manner, in response to the first position information being outside the target area of the target virtual object, the apparatus further includes:
第二位置确定模块,用于检测所述用户终端的第一位置信息;a second location determination module, configured to detect the first location information of the user terminal;
第一状态切换模块,用于响应于所述第一位置信息由所述目标区域外移动至所述目标区域内,将所述目标虚拟对象在AR影像中的显示状态切换为第二状态。A first state switching module, configured to switch the display state of the target virtual object in the AR image to a second state in response to the first position information moving from outside the target area to inside the target area.
在一种可能的实现方式中,响应于所述第一位置信息在所述目标虚拟对象的目标区域内,所述装置还包括:In a possible implementation manner, in response to the first position information being within the target area of the target virtual object, the apparatus further includes:
第三位置确定模块,用于检测所述用户终端的第一位置信息;a third location determination module, configured to detect the first location information of the user terminal;
第二状态切换模块,用于响应于所述第一位置信息由所述目标区域内移动至所述目标区域外,将所述目标虚拟对象在AR影像中的显示状态切换为第一状态。A second state switching module, configured to switch the display state of the target virtual object in the AR image to the first state in response to the first position information moving from within the target area to outside the target area.
在一种可能的实现方式中,在所述第二状态为不显示所述目标虚拟对象的情况下,在所述第一位置信息由所述目标区域外向所述目标区域内移动的过程中,和/或由所述目标区域内向所述目标区域外移动的过程中,通过预设的切换效果切换所述目标虚拟对象在AR影像中的显示状态。In a possible implementation manner, when the second state is that the target virtual object is not displayed, during the process of moving the first position information from outside the target area to the target area, And/or in the process of moving from the inside of the target area to the outside of the target area, the display state of the target virtual object in the AR image is switched through a preset switching effect.
在一种可能的实现方式中,在所述第二状态为以小于所述原始尺寸的显示尺寸显示所述目标虚拟对象的情况下,所述显示尺寸与所述第一位置信息和第二位置信息之间的距离正相关。In a possible implementation manner, when the second state is to display the target virtual object in a display size smaller than the original size, the display size is related to the first position information and the second position The distance between information is positively correlated.
根据本公开的第三方面,提供了一种电子设备,包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为调用所述存储器存储的指令,以执行上述方法。According to a third aspect of the present disclosure, there is provided an electronic device, comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to invoke the instructions stored in the memory to execute the above method.
根据本公开的第四方面,提供了一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述方法。According to a fourth aspect of the present disclosure, there is provided a computer-readable storage medium having computer program instructions stored thereon, the computer program instructions implementing the above method when executed by a processor.
在本公开实施例中,可以根据用户终端与目标虚拟对象的距离切换目标虚拟对象在AR影像中的显示状态,减小用户终端与虚拟对象的距离对AR影像中虚拟对象显示效果的影响In the embodiment of the present disclosure, the display state of the target virtual object in the AR image can be switched according to the distance between the user terminal and the target virtual object, so as to reduce the influence of the distance between the user terminal and the virtual object on the display effect of the virtual object in the AR image
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,而非限制本公开。根据下面参考附图对示例性实施例的详细说明,本公开的其它特征及方面将变得清楚。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the accompanying drawings.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。The accompanying drawings, which are incorporated into and constitute a part of this specification, illustrate embodiments consistent with the present disclosure, and together with the description, serve to explain the technical solutions of the present disclosure.
图1示出根据本公开实施例的一种虚拟对象显示方法的流程图;1 shows a flowchart of a method for displaying a virtual object according to an embodiment of the present disclosure;
图2示出根据本公开实施例的一种目标区域的示意图;FIG. 2 shows a schematic diagram of a target area according to an embodiment of the present disclosure;
图3示出根据本公开实施例的一种虚拟对象显示装置的示意图;FIG. 3 shows a schematic diagram of a virtual object display device according to an embodiment of the present disclosure;
图4示出根据本公开实施例的一种电子设备的示意图;FIG. 4 shows a schematic diagram of an electronic device according to an embodiment of the present disclosure;
图5示出根据本公开实施例的另一种电子设备的示意图。FIG. 5 shows a schematic diagram of another electronic device according to an embodiment of the present disclosure.
具体实施方式Detailed ways
以下将参考附图详细说明本公开的各种示例性实施例、特征和方面。附图中相同的附图标记表示功能相同或相似的元件。尽管在附图中示出了实施例的各种方面,但是除非特别指出,不必按比例绘制附图。Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numbers in the figures denote elements that have the same or similar functions. While various aspects of the embodiments are shown in the drawings, the drawings are not necessarily drawn to scale unless otherwise indicated.
在这里专用的词“示例性”意为“用作例子、实施例或说明性”。这里作为“示例性”所说明的任何实施例不必解释为优于或好于其它实施例。The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration." Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中术语“至少一种”表示多种中的任意一种或多种中的至少两种的任意组合,例如,包括A、B、C中的至少一种,可以表示包括从A、B和C构成的集合中选择的任意一个或多个元素。The term "and/or" in this article is only an association relationship to describe the associated objects, indicating that there can be three kinds of relationships, for example, A and/or B, it can mean that A exists alone, A and B exist at the same time, and A and B exist independently B these three cases. In addition, the term "at least one" herein refers to any combination of any one of the plurality or at least two of the plurality, for example, including at least one of A, B, and C, and may mean including from A, B, and C. Any one or more elements selected from the set of B and C.
另外,为了更好地说明本公开,在下文的具体实施方式中给出了众多的具体细节。本领域技术人员应当理解,没有某些具体细节,本公开同样可以实施。在一些实例中,对于本领域技术人员熟知的方法、手段、元件和电路未作详细描述,以便于凸显本公开的主旨。In addition, in order to better illustrate the present disclosure, numerous specific details are set forth in the following detailed description. It will be understood by those skilled in the art that the present disclosure may be practiced without certain specific details. In some instances, methods, means, components and circuits well known to those skilled in the art have not been described in detail so as not to obscure the subject matter of the present disclosure.
在一种可能的实现方式中,本公开实施例的虚拟对象显示方法可以由终端设备或服务器等电子设备执行。其中,终端设备可以为用户设备(User Equipment,UE)、移动设备、用户终端、终端、蜂窝电话、无绳电话、个人数字助理(Personal Digital Assistant,PDA)、手持设备、计算设备、车载设备、可穿戴设备等设备。服务器可以为单独的服务器或多个服务器组成的服务器集群。电子设备可以通过处理器调用存储器中存储的计算机可读指令的方式来实现本公开实施例的虚拟对象显示方法。In a possible implementation manner, the virtual object display method in the embodiment of the present disclosure may be executed by an electronic device such as a terminal device or a server. Wherein, the terminal device may be User Equipment (UE), mobile device, user terminal, terminal, cellular phone, cordless phone, Personal Digital Assistant (PDA), handheld device, computing device, vehicle-mounted device, mobile phone, etc. Wearables and other devices. The server can be a single server or a server cluster composed of multiple servers. The electronic device may implement the virtual object display method of the embodiment of the present disclosure by the processor calling the computer-readable instructions stored in the memory.
本公开实施例可以应用于任意在AR(Augmented Reality,增强现实)影像中显示虚拟对象的应用场景。例如,通过AR场景展示景点或展品的应用场景,或者通过AR场景展示的AR对象进行游戏互动的应用场景。可选地,显示AR场景以及其中虚拟对象的用户终端可以为执行本公开虚拟对象显示方法的电子设备,或者与执行本公开实施例虚拟对象显示方法的电子设备通信连接的设备。The embodiments of the present disclosure can be applied to any application scenario in which virtual objects are displayed in an AR (Augmented Reality, augmented reality) image. For example, the application scene of displaying attractions or exhibits through AR scenes, or the application scene of game interaction through AR objects displayed in the AR scene. Optionally, the user terminal that displays the AR scene and the virtual object therein may be an electronic device that executes the virtual object display method of the present disclosure, or a device that is communicatively connected to the electronic device that executes the virtual object display method of the embodiment of the present disclosure.
图1示出根据本公开实施例的一种虚拟对象显示方法的流程图。如图1所示,本公开实施例的虚拟对象显示方法可以包括以下步骤S10-S30。FIG. 1 shows a flowchart of a method for displaying a virtual object according to an embodiment of the present disclosure. As shown in FIG. 1 , the virtual object display method according to the embodiment of the present disclosure may include the following steps S10-S30.
步骤S10、确定用户终端的第一位置信息。Step S10: Determine the first location information of the user terminal.
在一种可能的实现方式中,用户终端可以为执行虚拟对象显示方法的电子设备,或者与执行虚拟对象显示方法的电子设备通信连接的设备。用户终端用于显示AR场景以及AR场景中的虚拟对象,其中,用户终端显示的AR场景可以为与AR高精地图中至少部分场景对应的真实场景,AR高精地图可以通过基于真实场景进行传统三维重建(SFM,StructureFrom Motion)得到。用户终端的第一位置信息用于表征用户终端在AR高精地图中的位置。In a possible implementation manner, the user terminal may be an electronic device that executes the method for displaying virtual objects, or a device that is communicatively connected to the electronic device that executes the method for displaying virtual objects. The user terminal is used to display the AR scene and the virtual objects in the AR scene. The AR scene displayed by the user terminal may be a real scene corresponding to at least part of the scenes in the AR high-precision map. Three-dimensional reconstruction (SFM, StructureFrom Motion) was obtained. The first location information of the user terminal is used to represent the location of the user terminal in the AR high-precision map.
可选地,AR高精地图为还原真实物理场景的三维虚拟场景。AR高精地图的确定过程可以包括获取真实物理场景中的连续图像序列,再对真实物理场景建立三维物理模型,得到与真实物理场景对应的三维虚拟物理场景作为AR高精地图。其中,真实物理场景可以通过只能手机或相机等图像/视频采集设备采集真实物理场景得到的连续图像序列确定。三维物理模型可以通过SFM算法重建得到,即先根据记录真实物理场景的连续图像序列中每一帧图像进行特征点提取,再对多帧图像中相邻的特征点进行匹配得到多个三维点,最终根据多个三维点组成的三维点阵确定的三维虚拟物理场景作为AR高精地图。Optionally, the AR high-precision map is a three-dimensional virtual scene that restores a real physical scene. The process of determining the AR high-precision map may include acquiring continuous image sequences in the real physical scene, and then establishing a three-dimensional physical model for the real physical scene, and obtaining a three-dimensional virtual physical scene corresponding to the real physical scene as the AR high-precision map. Wherein, the real physical scene can be determined by a continuous image sequence obtained by collecting the real physical scene only with an image/video acquisition device such as a mobile phone or a camera. The three-dimensional physical model can be reconstructed by the SFM algorithm, that is, feature points are extracted from each frame of the continuous image sequence recording the real physical scene, and then the adjacent feature points in the multi-frame images are matched to obtain multiple three-dimensional points. Finally, the 3D virtual physical scene determined according to the 3D lattice composed of multiple 3D points is used as the AR high-precision map.
进一步地,电子设备可以在用户终端处于AR影像显示状态的情况下确定第一位置信息。其中,电子设备可以在用户终端内置的图像采集装置处于开启状态的情况下,确定显示装置处于AR影像显示状态。例如,在用户终端和电子设备为同一设备,且该设备为智能手机的情况下,在手机处于拍照或扫一扫等摄像头开启的状态时,确定用户终端处于AR影像显示状态。或者,电子设备还可以在接收到用户终端发送的AR影响显示请求信息的情况下,确定显示装置处于AR影像显示状态。Further, the electronic device may determine the first location information when the user terminal is in an AR image display state. Wherein, the electronic device may determine that the display device is in the AR image display state when the image acquisition device built in the user terminal is in an on state. For example, if the user terminal and the electronic device are the same device, and the device is a smart phone, it is determined that the user terminal is in the AR image display state when the mobile phone is in a state where the camera is turned on, such as taking pictures or scanning. Alternatively, the electronic device may further determine that the display device is in an AR image display state when receiving the AR influence display request information sent by the user terminal.
在一种可能的实现方式中,用户终端的第一位置信息可以根据用户终端所在位置的真实环境确定。可选地,可以通过用户终端内置的图像采集装置采集所在位置的真实环境图像,根据真实环境图像与AR高精地图进行匹配,得到用户终端在AR高精地图中对应的第一位置信息。例如,在用户终端为智能手机时,在手机处于AR影像显示状态时通过手机摄像头采集环境图像,再与本地或远程服务器部署的AR高精地图进行匹配,得到第一位置信息。In a possible implementation manner, the first location information of the user terminal may be determined according to the real environment where the user terminal is located. Optionally, the real environment image of the location can be collected by the built-in image acquisition device of the user terminal, and the first location information corresponding to the user terminal in the AR high-precision map is obtained by matching the real environment image with the AR high-precision map. For example, when the user terminal is a smart phone, when the mobile phone is in the AR image display state, the environment image is collected by the mobile phone camera, and then matched with the AR high-precision map deployed on the local or remote server to obtain the first location information.
步骤S20、根据所述第一位置信息确定待显示的目标虚拟对象。Step S20: Determine the target virtual object to be displayed according to the first position information.
在一种能的实现方式中,通过对真实物理场景进行三维建模得到的AR高精地图具有至少一个对应的虚拟对象,虚拟对象可以为二维对象或三维对象。每个虚拟对象在AR高精地图中具有对应的锚点,用于表征虚拟对象的显示位置。可选地,可以根据用户终端的第一位置信息在虚拟对象中选择至少一个作为待显示的目标虚拟对象,目标虚拟对象的筛选方式可以通过任意方式确定。例如,可以直接确定第一位置信息所在AR高精地图中的全部虚拟对象作为待显示的目标虚拟对象。或者,还可以根据用户终端的图像采集装置采集到的真实环境图像在AR高精地图中匹配对应的地图区域,将锚点在匹配的地图区域中的虚拟对象作为目标虚拟对象。In a possible implementation manner, the AR high-precision map obtained by 3D modeling of the real physical scene has at least one corresponding virtual object, and the virtual object may be a two-dimensional object or a three-dimensional object. Each virtual object has a corresponding anchor point in the AR high-precision map, which is used to represent the display position of the virtual object. Optionally, at least one of the virtual objects may be selected as the target virtual object to be displayed according to the first position information of the user terminal, and the screening method of the target virtual object may be determined in any manner. For example, all virtual objects in the AR high-precision map where the first position information is located may be directly determined as the target virtual objects to be displayed. Alternatively, a corresponding map area may also be matched in the AR high-precision map according to the real environment image collected by the image collection device of the user terminal, and the virtual object anchored in the matched map area may be used as the target virtual object.
可选地,每个虚拟对象具有对应的目标区域,目标区域用于表征AR高精地图中的一个区域,电子设备可以根据用户终端在AR高精地图中的位置和目标区域的位置关系切换虚拟对象的显示状态。其中,目标区域可以为任意形状的区域。例如,目标区域可以为以对应虚拟对象的锚点为圆心,预设尺寸为半径的圆形区域。其中,锚点表征虚拟对象的第二位置信息,即虚拟对象在AR高精地图中对应的显示位置。或者,目标区域还可以为正方形、长方形等其他封闭形状。Optionally, each virtual object has a corresponding target area, the target area is used to represent an area in the AR high-precision map, and the electronic device can switch the virtual object according to the position of the user terminal in the AR high-precision map and the positional relationship of the target area. The display state of the object. Wherein, the target area can be an area of any shape. For example, the target area may be a circular area with the anchor point corresponding to the virtual object as the center and the preset size as the radius. The anchor point represents the second position information of the virtual object, that is, the corresponding display position of the virtual object in the AR high-precision map. Alternatively, the target area may also be other closed shapes such as squares and rectangles.
图2示出根据本公开实施例的一种目标区域的示意图。如图2所述,虚拟对象在AR高精地图中具有表征第二位置信息的锚点21,并以锚点21为圆心,预设尺寸为半径确定圆形的目标区域21。FIG. 2 shows a schematic diagram of a target area according to an embodiment of the present disclosure. As shown in FIG. 2 , the virtual object has an
步骤S30、根据所述第一位置信息和所述目标虚拟对象对应目标区域的位置关系,切换所述目标虚拟对象的显示状态。Step S30: Switch the display state of the target virtual object according to the first position information and the positional relationship of the target virtual object corresponding to the target area.
在一种可能的实现方式中,电子设备在确定用户终端的第一位置信息和每个目标虚拟对象的目标区域后,根据第一位置信息和目标虚拟对象的目标区域的位置关系,切换目标虚拟对象在AR影像中的显示状态。进一步地,用户终端以对应的显示状态将目标虚拟对象显示在AR影像中。其中,电子设备可以响应于用户终端的第一位置信息在目标虚拟对象的目标区域外,将目标虚拟对象,在AR影像中的显示状态切换为第一状态。同时,电子设备还可以响应于用户终端的第一位置信息在目标虚拟对象的目标区域内,将目标虚拟对象在AR影像中的显示状态切换为第二状态。也就是说,当用户终端在AR高精地图中的位置位于目标虚拟对象的目标区域外时,目标虚拟对象以第一状态显示在AR影像中。当用户终端在AR高精地图中的位置位于目标虚拟对象的目标区域内时,目标虚拟对象以第二状态显示在AR影像中。In a possible implementation manner, after determining the first position information of the user terminal and the target area of each target virtual object, the electronic device switches the target virtual object according to the positional relationship between the first position information and the target area of the target virtual object. The display state of the object in the AR image. Further, the user terminal displays the target virtual object in the AR image in a corresponding display state. The electronic device may switch the display state of the target virtual object in the AR image to the first state in response to the first position information of the user terminal being outside the target area of the target virtual object. Meanwhile, the electronic device may also switch the display state of the target virtual object in the AR image to the second state in response to the first position information of the user terminal being within the target area of the target virtual object. That is, when the position of the user terminal in the AR high-precision map is outside the target area of the target virtual object, the target virtual object is displayed in the AR image in the first state. When the position of the user terminal in the AR high-precision map is within the target area of the target virtual object, the target virtual object is displayed in the AR image in the second state.
可选地,第一状态为以原始尺寸显示目标虚拟对象,第二状态为不显示目标虚拟对象,或以小于原始尺寸的显示尺寸显示目标虚拟对象。其中,原始尺寸可以表示虚拟对象预设的,即默认设置的显示尺寸。Optionally, the first state is to display the target virtual object in the original size, and the second state is to not display the target virtual object, or to display the target virtual object in a display size smaller than the original size. Wherein, the original size may represent a preset display size of the virtual object, that is, a default setting.
进一步地,在增强现实的实际应用场景中,用户终端通常会移动位置。为防止用户终端在AR高精地图中的位置发生变化后目标虚拟对象的显示状态未被切换,还需要检测用户终端的第一位置信息,并根据用户终端的移动情况进行状态切换。其中,在第一位置信息在目标虚拟对象的目标区域外的情况下,电子设备检测用户终端的第一位置信息,可以响应于第一位置信息由目标区域外移动至目标区域内,将目标虚拟对象在AR影像中的显示状态切换为第二状态。在第一位置信息在目标虚拟对象的目标区域内的情况下,电子设备检测用户终端的第一位置信息,可以响应于第一位置信息由目标区域内移动至目标区域外,将目标虚拟对象在AR影像中的显示状态切换为第一状态。Further, in practical application scenarios of augmented reality, the user terminal usually moves. In order to prevent the display state of the target virtual object from not being switched after the location of the user terminal in the AR high-precision map changes, it is also necessary to detect the first location information of the user terminal and switch the state according to the movement of the user terminal. Wherein, when the first position information is outside the target area of the target virtual object, the electronic device detects the first position information of the user terminal, and can move the target virtual object from outside the target area to the target area in response to the first position information. The display state of the object in the AR image is switched to the second state. In the case that the first position information is within the target area of the target virtual object, the electronic device detects the first position information of the user terminal, and can move the target virtual object from the target area to the outside of the target area in response to the first position information, and place the target virtual object in the target area. The display state in the AR image is switched to the first state.
在第一状态为以原始尺寸显示目标虚拟对象,第二状态为不显示目标虚拟对象的情况下,第一状态的显示效果和第二状态的显示效果差异过大,直接切换的视觉体验较差。因此,在第二状态为不显示目标虚拟对象的情况下,在用户终端的第一位置信息由目标区域外向目标区域内移动的过程中,和/或由目标区域内向目标区域外移动的过程中,电子设备可以通过预设的切换效果切换目标虚拟对象在AR影像中的显示状态。When the first state is to display the target virtual object in its original size, and the second state is to not display the target virtual object, the difference between the display effect of the first state and the display effect of the second state is too large, and the visual experience of direct switching is poor. . Therefore, in the case that the target virtual object is not displayed in the second state, during the process of moving the first position information of the user terminal from outside the target area to the inside of the target area, and/or during the process of moving from inside the target area to outside the target area , the electronic device can switch the display state of the target virtual object in the AR image through a preset switching effect.
可选地,预设的切换效果可以包括幻灯片切换效果,例如淡入淡出、旋转和擦除等任意切换效果。在预设的切换效果包括多个时,电子设备可以在每一次状态切换时随机选择一个进行显示状态切换,或者根据预设的选择规则选中一个切换效果进行显示状态切换。由于第一状态为以原始尺寸显示目标虚拟对象,第二状态为不显示目标虚拟对象。即第一状态下目标虚拟对象出现在AR影像中,第二状态下目标虚拟对象不出现在AR影像中。该效果切换的方式能够使得目标虚拟对象在AR影像中的出现和消失更加自然。Optionally, the preset transition effects may include slide transition effects, such as any transition effects such as fading in and out, rotating and erasing. When there are multiple preset switching effects, the electronic device may randomly select one switching effect for display state switching at each state switching, or select one switching effect to perform display state switching according to a preset selection rule. Since the first state is to display the target virtual object in its original size, the second state is to not display the target virtual object. That is, the target virtual object appears in the AR image in the first state, and the target virtual object does not appear in the AR image in the second state. The effect switching method can make the appearance and disappearance of the target virtual object in the AR image more natural.
在第一状态为以原始尺寸显示目标虚拟对象,第二状态为以小于原始尺寸的显示尺寸显示目标虚拟对象的情况下,显示尺寸与第一位置信息和第二位置信息之间的距离正相关。也就是说,在第二状态为目标虚拟对象以小于原始尺寸的显示尺寸显示时,用户终端在AR高精地图中的位置与目标虚拟对象的锚点越近,则目标虚拟对象在AR场景中的显示尺寸越小。例如,在用户手持用户终端移动,并使得用户终端的第一位置信息进入目标虚拟对象的目标区域后,用户终端向靠近目标区域对象的锚点方向移动的过程中,目标虚拟对象的尺寸越来越小,用户终端向远离目标区域对象的锚点方向移动的过程中,目标虚拟对象的尺寸越来越大。可选地,目标虚拟对象在第二状态下的最大显示尺寸为第一状态下目标虚拟尺寸的显示尺寸。电子设备还可以设定目标虚拟对象在第二状态下的最小显示尺寸,即在目标虚拟对象的显示尺寸达到最小显示尺寸后即使再向锚点靠近也不会缩小目标虚拟对象的显示尺寸。In the case where the first state is to display the target virtual object at the original size and the second state is to display the target virtual object at a display size smaller than the original size, the display size is positively correlated with the distance between the first position information and the second position information . That is to say, when the second state is that the target virtual object is displayed in a display size smaller than the original size, the closer the position of the user terminal in the AR high-precision map is to the anchor point of the target virtual object, the closer the target virtual object is in the AR scene. the smaller the display size. For example, after the user holds the user terminal and moves the user terminal and makes the first position information of the user terminal enter the target area of the target virtual object, the size of the target virtual object increases as the user terminal moves toward the anchor point of the object in the target area. The smaller the size, the larger the size of the target virtual object is when the user terminal moves away from the anchor point of the object in the target area. Optionally, the maximum display size of the target virtual object in the second state is the display size of the target virtual size in the first state. The electronic device may also set the minimum display size of the target virtual object in the second state, that is, after the display size of the target virtual object reaches the minimum display size, the display size of the target virtual object will not be reduced even if it approaches the anchor point again.
进一步地,由于用户终端的第一位置信息在目标虚拟对象的目标区域内外通过不同的显示状态显示目标虚拟对象,电子设备还可以在检测到用户终端的第一位置信息由内侧或外侧靠近目标区域边缘时生成对应的提示信息,以提示用户即将切换目标虚拟对象的显示状态。可选地,提示信息可以通过语音播报的方式通知用户,或通过文字图像等方式由用户终端显示。Further, since the first position information of the user terminal displays the target virtual object through different display states inside and outside the target area of the target virtual object, the electronic device can also detect that the first position information of the user terminal approaches the target area from the inside or the outside. Corresponding prompt information is generated at the edge to prompt the user that the display state of the target virtual object is about to be switched. Optionally, the prompt information may be notified to the user by means of voice broadcast, or displayed by the user terminal by means of text images or the like.
基于上述内容,本公开实施例能够根据用户终端在AR高精地图中的位置与目标虚拟对象在AR高精地图中的位置关系,切换目标虚拟对象在AR影像中的显示状态。实现了用户终端与目标虚拟对象过于靠近时不会被占满整个屏幕,即减小用户终端与虚拟对象的距离对AR影像中虚拟对象显示效果的影响,提升了用户体验。Based on the above content, the embodiment of the present disclosure can switch the display state of the target virtual object in the AR image according to the position of the user terminal in the AR high-precision map and the positional relationship of the target virtual object in the AR high-precision map. It is realized that when the user terminal is too close to the target virtual object, the entire screen will not be occupied, that is, the influence of the distance between the user terminal and the virtual object on the display effect of the virtual object in the AR image is reduced, and the user experience is improved.
可以理解,本公开提及的上述各个方法实施例,在不违背原理逻辑的情况下,均可以彼此相互结合形成结合后的实施例,限于篇幅,本公开不再赘述。本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。It can be understood that the above-mentioned method embodiments mentioned in the present disclosure can be combined with each other to form a combined embodiment without violating the principle and logic. Those skilled in the art can understand that, in the above method of the specific embodiment, the specific execution order of each step should be determined by its function and possible internal logic.
此外,本公开还提供了虚拟对象显示装置、电子设备、计算机可读存储介质、程序,上述均可用来实现本公开提供的任一种虚拟对象显示方法,相应技术方案和描述和参见方法部分的相应记载,不再赘述。In addition, the present disclosure also provides virtual object display devices, electronic devices, computer-readable storage media, and programs, all of which can be used to implement any virtual object display method provided by the present disclosure. Corresponding records will not be repeated.
图3示出根据本公开实施例的一种虚拟对象显示装置的示意图,如图3所示,本公开实施例的虚拟对象显示装置包括第一位置确定模块30、对象确定模块31和对象显示模块32。FIG. 3 shows a schematic diagram of a virtual object display apparatus according to an embodiment of the present disclosure. As shown in FIG. 3 , the virtual object display apparatus according to the embodiment of the present disclosure includes a first
第一位置确定模块30,用于确定用户终端的第一位置信息;a first
对象确定模块31,用于根据所述第一位置信息确定待显示的目标虚拟对象,所述目标虚拟对象具有对应的目标区域;an
对象显示模块32,用于根据所述第一位置信息和所述目标虚拟对象对应目标区域的位置关系,切换所述目标虚拟对象的显示状态;The
其中,响应于所述第一位置信息在所述目标虚拟对象的目标区域外,将所述目标虚拟对象在AR影像中的显示状态切换为第一状态;响应于所述第一位置信息在所述目标虚拟对象的目标区域内,将所述目标虚拟对象在AR影像中的显示状态切换为第二状态。Wherein, in response to the first position information being outside the target area of the target virtual object, the display state of the target virtual object in the AR image is switched to the first state; in response to the first position information being in the target virtual object In the target area of the target virtual object, the display state of the target virtual object in the AR image is switched to the second state.
在一种可能的实现方式中,所述第一状态为以原始尺寸显示所述目标虚拟对象,所述第二状态为不显示所述目标虚拟对象,或以小于所述原始尺寸的显示尺寸显示所述目标虚拟对象,所述原始尺寸为所述目标虚拟对象预设的显示尺寸。In a possible implementation manner, the first state is to display the target virtual object in an original size, and the second state is to not display the target virtual object, or to display the target virtual object in a display size smaller than the original size For the target virtual object, the original size is the preset display size of the target virtual object.
在一种可能的实现方式中,所述目标区域为以锚点为圆心,预设尺寸为半径的圆形区域,所述锚点用于表征所述目标虚拟对象的第二位置信息。In a possible implementation manner, the target area is a circular area with an anchor point as a center and a preset size as a radius, and the anchor point is used to represent the second position information of the target virtual object.
在一种可能的实现方式中,响应于所述第一位置信息在所述目标虚拟对象的目标区域外,所述装置还包括:In a possible implementation manner, in response to the first position information being outside the target area of the target virtual object, the apparatus further includes:
第二位置确定模块,用于检测所述用户终端的第一位置信息;a second location determination module, configured to detect the first location information of the user terminal;
第一状态切换模块,用于响应于所述第一位置信息由所述目标区域外移动至所述目标区域内,将所述目标虚拟对象在AR影像中的显示状态切换为第二状态。A first state switching module, configured to switch the display state of the target virtual object in the AR image to a second state in response to the first position information moving from outside the target area to inside the target area.
在一种可能的实现方式中,响应于所述第一位置信息在所述目标虚拟对象的目标区域内,所述装置还包括:In a possible implementation manner, in response to the first position information being within the target area of the target virtual object, the apparatus further includes:
第三位置确定模块,用于检测所述用户终端的第一位置信息;a third location determination module, configured to detect the first location information of the user terminal;
第二状态切换模块,用于响应于所述第一位置信息由所述目标区域内移动至所述目标区域外,将所述目标虚拟对象在AR影像中的显示状态切换为第一状态。A second state switching module, configured to switch the display state of the target virtual object in the AR image to the first state in response to the first position information moving from within the target area to outside the target area.
在一种可能的实现方式中,在所述第二状态为不显示所述目标虚拟对象的情况下,在所述第一位置信息由所述目标区域外向所述目标区域内移动的过程中,和/或由所述目标区域内向所述目标区域外移动的过程中,通过预设的切换效果切换所述目标虚拟对象在AR影像中的显示状态。In a possible implementation manner, when the second state is that the target virtual object is not displayed, during the process of moving the first position information from outside the target area to the target area, And/or in the process of moving from the inside of the target area to the outside of the target area, the display state of the target virtual object in the AR image is switched through a preset switching effect.
在一种可能的实现方式中,在所述第二状态为以小于所述原始尺寸的显示尺寸显示所述目标虚拟对象的情况下,所述显示尺寸与所述第一位置信息和第二位置信息之间的距离正相关。In a possible implementation manner, when the second state is to display the target virtual object in a display size smaller than the original size, the display size is related to the first position information and the second position The distance between information is positively correlated.
该方法与计算机系统的内部结构存在特定技术关联,且能够解决如何提升硬件运算效率或执行效果的技术问题(包括减少数据存储量、减少数据传输量、提高硬件处理速度等),从而获得符合自然规律的计算机系统内部性能改进的技术效果。The method has a specific technical relationship with the internal structure of the computer system, and can solve the technical problem of how to improve the hardware operation efficiency or execution effect (including reducing the amount of data storage, reducing the amount of data transmission, improving the hardware processing speed, etc.), so as to obtain a natural The technical effects of regular computer system internal performance improvements.
在一些实施例中,本公开实施例提供的装置具有的功能或包含的模块可以用于执行上文方法实施例描述的方法,其具体实现可以参照上文方法实施例的描述,为了简洁,这里不再赘述。In some embodiments, the functions or modules included in the apparatuses provided in the embodiments of the present disclosure may be used to execute the methods described in the above method embodiments. For specific implementation, reference may be made to the descriptions of the above method embodiments. For brevity, here No longer.
本公开实施例还提出一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述方法。计算机可读存储介质可以是易失性或非易失性计算机可读存储介质。Embodiments of the present disclosure further provide a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the foregoing method is implemented. Computer-readable storage media can be volatile or non-volatile computer-readable storage media.
本公开实施例还提出一种电子设备,包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为调用所述存储器存储的指令,以执行上述方法。An embodiment of the present disclosure further provides an electronic device, including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to invoke the instructions stored in the memory to execute the above method.
本公开实施例还提供了一种计算机程序产品,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备的处理器中运行时,所述电子设备中的处理器执行上述方法。Embodiments of the present disclosure also provide a computer program product, including computer-readable codes, or a non-volatile computer-readable storage medium carrying computer-readable codes, when the computer-readable codes are stored in a processor of an electronic device When running in the electronic device, the processor in the electronic device executes the above method.
电子设备可以被提供为终端、服务器或其它形态的设备。The electronic device may be provided as a terminal, server or other form of device.
图4示出根据本公开实施例的一种电子设备800的示意图。例如,电子设备800可以是用户设备(User Equipment,UE)、移动设备、用户终端、终端、蜂窝电话、无绳电话、个人数字处理(Personal Digital Assistant,PDA)、手持设备、计算设备、车载设备、可穿戴设备等终端设备。FIG. 4 shows a schematic diagram of an
参照图4,电子设备800可以包括以下一个或多个组件:处理组件802,存储器804,电源组件806,多媒体组件808,音频组件810,输入/输出(I/O)接口812,传感器组件814,以及通信组件816。4, an
处理组件802通常控制电子设备800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。The
存储器804被配置为存储各种类型的数据以支持在电子设备800的操作。这些数据的示例包括用于在电子设备800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
电源组件806为电子设备800的各种组件提供电力。电源组件806可以包括电源管理系统,一个或多个电源,及其他与为电子设备800生成、管理和分配电力相关联的组件。
多媒体组件808包括在所述电子设备800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当电子设备800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当电子设备800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/
传感器组件814包括一个或多个传感器,用于为电子设备800提供各个方面的状态评估。例如,传感器组件814可以检测到电子设备800的打开/关闭状态,组件的相对定位,例如所述组件为电子设备800的显示器和小键盘,传感器组件814还可以检测电子设备800或电子设备800一个组件的位置改变,用户与电子设备800接触的存在或不存在,电子设备800方位或加速/减速和电子设备800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如互补金属氧化物半导体(CMOS)或电荷耦合装置(CCD)图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件816被配置为便于电子设备800和其他设备之间有线或无线方式的通信。电子设备800可以接入基于通信标准的无线网络,如无线网络(Wi-Fi)、第二代移动通信技术(2G)、第三代移动通信技术(3G)、第四代移动通信技术(4G)、通用移动通信技术的长期演进(LTE)、第五代移动通信技术(5G)或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,电子设备800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment,
在示例性实施例中,还提供了一种非易失性计算机可读存储介质,例如包括计算机程序指令的存储器804,上述计算机程序指令可由电子设备800的处理器820执行以完成上述方法。In an exemplary embodiment, a non-volatile computer-readable storage medium, such as a
本公开涉及增强现实领域,通过获取现实环境中的目标对象的图像信息,进而借助各类视觉相关算法实现对目标对象的相关特征、状态及属性进行检测或识别处理,从而得到与具体应用匹配的虚拟与现实相结合的AR效果。示例性的,目标对象可涉及与人体相关的脸部、肢体、手势、动作等,或者与物体相关的标识物、标志物,或者与场馆或场所相关的沙盘、展示区域或展示物品等。视觉相关算法可涉及视觉定位、SLAM、三维重建、图像注册、背景分割、对象的关键点提取及跟踪、对象的位姿或深度检测等。具体应用不仅可以涉及跟真实场景或物品相关的导览、导航、讲解、重建、虚拟效果叠加展示等交互场景,还可以涉及与人相关的特效处理,比如妆容美化、肢体美化、特效展示、虚拟模型展示等交互场景。可通过卷积神经网络,实现对目标对象的相关特征、状态及属性进行检测或识别处理。上述卷积神经网络是基于深度学习框架进行模型训练而得到的网络模型。The present disclosure relates to the field of augmented reality. By acquiring the image information of the target object in the real environment, the relevant features, states and attributes of the target object can be detected or recognized with the help of various visual correlation algorithms, so as to obtain the image information matching the specific application. AR effect that combines virtual and reality. Exemplarily, the target object may involve faces, limbs, gestures, movements, etc. related to the human body, or objects, markers, or sandboxes, display areas, or display items related to venues or venues. Vision-related algorithms may involve visual localization, SLAM, 3D reconstruction, image registration, background segmentation, object keypoint extraction and tracking, object pose or depth detection, etc. The specific application can not only involve interactive scenes such as navigation, navigation, explanation, reconstruction, and virtual effect overlay display related to real scenes or items, but also special effects processing related to people, such as makeup beautification, body beautification, special effects display, virtual Model display and other interactive scenarios. The relevant features, states and attributes of the target object can be detected or recognized through the convolutional neural network. The above convolutional neural network is a network model obtained by model training based on a deep learning framework.
图5示出根据本公开实施例的一种电子设备1900的示意图。例如,电子设备1900可以被提供为一服务器或终端设备。参照图5,电子设备1900包括处理组件1922,其进一步包括一个或多个处理器,以及由存储器1932所代表的存储器资源,用于存储可由处理组件1922的执行的指令,例如应用程序。存储器1932中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件1922被配置为执行指令,以执行上述方法。FIG. 5 shows a schematic diagram of an
电子设备1900还可以包括一个电源组件1926被配置为执行电子设备1900的电源管理,一个有线或无线网络接口1950被配置为将电子设备1900连接到网络,和一个输入输出(I/O)接口1958。电子设备1900可以操作基于存储在存储器1932的操作系统,例如微软服务器操作系统(Windows ServerTM),苹果公司推出的基于图形用户界面操作系统(Mac OSXTM),多用户多进程的计算机操作系统(UnixTM),自由和开放原代码的类Unix操作系统(LinuxTM),开放原代码的类Unix操作系统(FreeBSDTM)或类似。The
在示例性实施例中,还提供了一种非易失性计算机可读存储介质,例如包括计算机程序指令的存储器1932,上述计算机程序指令可由电子设备1900的处理组件1922执行以完成上述方法。In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as
本公开可以是系统、方法和/或计算机程序产品。计算机程序产品可以包括计算机可读存储介质,其上载有用于使处理器实现本公开的各个方面的计算机可读程序指令。The present disclosure may be a system, method and/or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of the present disclosure.
计算机可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质例如可以是(但不限于)电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、静态随机存取存储器(SRAM)、便携式压缩盘只读存储器(CD-ROM)、数字多功能盘(DVD)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。这里所使用的计算机可读存储介质不被解释为瞬时信号本身,诸如无线电波或者其他自由传播的电磁波、通过波导或其他传输媒介传播的电磁波(例如,通过光纤电缆的光脉冲)、或者通过电线传输的电信号。A computer-readable storage medium may be a tangible device that can hold and store instructions for use by the instruction execution device. The computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (non-exhaustive list) of computer readable storage media include: portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM) or flash memory), static random access memory (SRAM), portable compact disk read only memory (CD-ROM), digital versatile disk (DVD), memory sticks, floppy disks, mechanically coded devices, such as printers with instructions stored thereon Hole cards or raised structures in grooves, and any suitable combination of the above. Computer-readable storage media, as used herein, are not to be construed as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (eg, light pulses through fiber optic cables), or through electrical wires transmitted electrical signals.
这里所描述的计算机可读程序指令可以从计算机可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘服务器。每个计算/处理设备中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理设备中的计算机可读存储介质中。The computer readable program instructions described herein may be downloaded to various computing/processing devices from a computer readable storage medium, or to an external computer or external storage device over a network such as the Internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer-readable program instructions from a network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing/processing device .
用于执行本公开操作的计算机程序指令可以是汇编指令、指令集架构(ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码,所述编程语言包括面向对象的编程语言—诸如Smalltalk、C++等,以及常规的过程式编程语言—诸如“C”语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络—包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列(FPGA)或可编程逻辑阵列(PLA),该电子电路可以执行计算机可读程序指令,从而实现本公开的各个方面。Computer program instructions for carrying out operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or instructions in one or more programming languages. Source or object code, written in any combination, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as the "C" language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server implement. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through the Internet connect). In some embodiments, custom electronic circuits, such as programmable logic circuits, field programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), can be personalized by utilizing state information of computer readable program instructions. Computer readable program instructions are executed to implement various aspects of the present disclosure.
这里参照根据本公开实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本公开的各个方面。应当理解,流程图和/或框图的每个方框以及流程图和/或框图中各方框的组合,都可以由计算机可读程序指令实现。Aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.
这些计算机可读程序指令可以提供给通用计算机、专用计算机或其它可编程数据处理装置的处理器,从而生产出一种机器,使得这些指令在通过计算机或其它可编程数据处理装置的处理器执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer or other programmable data processing apparatus to produce a machine that causes the instructions when executed by the processor of the computer or other programmable data processing apparatus , resulting in means for implementing the functions/acts specified in one or more blocks of the flowchart and/or block diagrams. These computer readable program instructions can also be stored in a computer readable storage medium, these instructions cause a computer, programmable data processing apparatus and/or other equipment to operate in a specific manner, so that the computer readable medium on which the instructions are stored includes An article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks of the flowchart and/or block diagrams.
也可以把计算机可读程序指令加载到计算机、其它可编程数据处理装置、或其它设备上,使得在计算机、其它可编程数据处理装置或其它设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其它可编程数据处理装置、或其它设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。Computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other equipment to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other equipment to produce a computer-implemented process , thereby causing instructions executing on a computer, other programmable data processing apparatus, or other device to implement the functions/acts specified in one or more blocks of the flowcharts and/or block diagrams.
附图中的流程图和框图显示了根据本公开的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,所述模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more functions for implementing the specified logical function(s) executable instructions. In some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or actions , or can be implemented in a combination of dedicated hardware and computer instructions.
该计算机程序产品可以具体通过硬件、软件或其结合的方式实现。在一个可选实施例中,所述计算机程序产品具体体现为计算机存储介质,在另一个可选实施例中,计算机程序产品具体体现为软件产品,例如软件开发包(Software Development Kit,SDK)等等。The computer program product can be specifically implemented by hardware, software or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), etc. Wait.
上文对各个实施例的描述倾向于强调各个实施例之间的不同之处,其相同或相似之处可以互相参考,为了简洁,本文不再赘述。The above descriptions of the various embodiments tend to emphasize the differences between the various embodiments, and the similarities or similarities can be referred to each other. For the sake of brevity, details are not repeated herein.
本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的撰写顺序并不意味着严格的执行顺序而对实施过程构成任何限定,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。Those skilled in the art can understand that in the above method of the specific implementation, the writing order of each step does not mean a strict execution order but constitutes any limitation on the implementation process, and the specific execution order of each step should be based on its function and possible Internal logic is determined.
若本申请技术方案涉及个人信息,应用本申请技术方案的产品在处理个人信息前,已明确告知个人信息处理规则,并取得个人自主同意。若本申请技术方案涉及敏感个人信息,应用本申请技术方案的产品在处理敏感个人信息前,已取得个人单独同意,并且同时满足“明示同意”的要求。例如,在摄像头等个人信息采集装置处,设置明确显著的标识告知已进入个人信息采集范围,将会对个人信息进行采集,若个人自愿进入采集范围即视为同意对其个人信息进行采集;或者在个人信息处理的装置上,利用明显的标识/信息告知个人信息处理规则的情况下,通过弹窗信息或请个人自行上传其个人信息等方式获得个人授权;其中,个人信息处理规则可包括个人信息处理者、个人信息处理目的、处理方式以及处理的个人信息种类等信息。If the technical solution of this application involves personal information, the product applying the technical solution of this application has clearly informed the personal information processing rules and obtained the individual's voluntary consent before processing personal information. If the technical solution of the present application involves sensitive personal information, the product applying the technical solution of the present application has obtained the individual's individual consent before processing sensitive personal information, and at the same time satisfies the requirement of "express consent". For example, at the personal information collection device such as a camera, a clear and conspicuous sign is set to inform that the personal information has entered the collection range, and the personal information will be collected. If the individual voluntarily enters the collection range, it is deemed to agree to the collection of their personal information; or On the personal information processing device, if the personal information processing rules are informed by obvious signs/information, the personal authorization can be obtained by means of pop-up information or asking individuals to upload their personal information; among them, the personal information processing rules may include personal information Information processor, purpose of processing personal information, method of processing, and types of personal information processed.
以上已经描述了本公开的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术的改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。Various embodiments of the present disclosure have been described above, and the foregoing descriptions are exemplary, not exhaustive, and not limiting of the disclosed embodiments. Numerous modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the various embodiments, the practical application or improvement over the technology in the marketplace, or to enable others of ordinary skill in the art to understand the various embodiments disclosed herein.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210307476.4A CN114638949A (en) | 2022-03-25 | 2022-03-25 | Virtual object display method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210307476.4A CN114638949A (en) | 2022-03-25 | 2022-03-25 | Virtual object display method and device, electronic equipment and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN114638949A true CN114638949A (en) | 2022-06-17 |
Family
ID=81949927
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210307476.4A Pending CN114638949A (en) | 2022-03-25 | 2022-03-25 | Virtual object display method and device, electronic equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114638949A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2024140354A1 (en) * | 2022-12-26 | 2024-07-04 | 维沃移动通信有限公司 | Display method, and apparatus using same |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108027652A (en) * | 2015-09-16 | 2018-05-11 | 索尼公司 | Information processing device, information processing method, and program |
| US20190065027A1 (en) * | 2017-08-31 | 2019-02-28 | Apple Inc. | Systems, Methods, and Graphical User Interfaces for Interacting with Augmented and Virtual Reality Environments |
| WO2019142432A1 (en) * | 2018-01-19 | 2019-07-25 | ソニー株式会社 | Information processing device, information processing method, and recording medium |
| CN111862341A (en) * | 2020-07-09 | 2020-10-30 | 北京市商汤科技开发有限公司 | Virtual object driving method and device, display equipment and computer storage medium |
| CN112541467A (en) * | 2020-12-21 | 2021-03-23 | 杭州光粒科技有限公司 | Information display method, device and equipment and storage medium |
| WO2021079829A1 (en) * | 2019-10-25 | 2021-04-29 | Necソリューションイノベータ株式会社 | Display device, event assistance system, display method, and event assistance system production method |
| CN114207671A (en) * | 2019-08-09 | 2022-03-18 | 索尼集团公司 | Image processing apparatus, image processing method, and program |
| US20220414945A1 (en) * | 2019-12-10 | 2022-12-29 | Sony Group Corporation | Image processing device, image processing method, and program |
-
2022
- 2022-03-25 CN CN202210307476.4A patent/CN114638949A/en active Pending
Patent Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108027652A (en) * | 2015-09-16 | 2018-05-11 | 索尼公司 | Information processing device, information processing method, and program |
| US20190065027A1 (en) * | 2017-08-31 | 2019-02-28 | Apple Inc. | Systems, Methods, and Graphical User Interfaces for Interacting with Augmented and Virtual Reality Environments |
| WO2019142432A1 (en) * | 2018-01-19 | 2019-07-25 | ソニー株式会社 | Information processing device, information processing method, and recording medium |
| CN114207671A (en) * | 2019-08-09 | 2022-03-18 | 索尼集团公司 | Image processing apparatus, image processing method, and program |
| WO2021079829A1 (en) * | 2019-10-25 | 2021-04-29 | Necソリューションイノベータ株式会社 | Display device, event assistance system, display method, and event assistance system production method |
| US20220366451A1 (en) * | 2019-10-25 | 2022-11-17 | Nec Solution Innovators, Ltd. | Display apparatus, event support system, display method, and event support system production method |
| US20220414945A1 (en) * | 2019-12-10 | 2022-12-29 | Sony Group Corporation | Image processing device, image processing method, and program |
| CN111862341A (en) * | 2020-07-09 | 2020-10-30 | 北京市商汤科技开发有限公司 | Virtual object driving method and device, display equipment and computer storage medium |
| CN112541467A (en) * | 2020-12-21 | 2021-03-23 | 杭州光粒科技有限公司 | Information display method, device and equipment and storage medium |
Non-Patent Citations (2)
| Title |
|---|
| KATHERINE EM TREGILLUS;KAREN T NAVARRO;YANJUN LI;STEPHEN: "Evidence for the McCollough Effect in Primary Visual Cortex", A ENGEL JOURNAL OF VISION, 27 September 2021 (2021-09-27) * |
| 丁海洋;: "基于计算机视觉的增强现实演示系统", 北京印刷学院学报, no. 04, 26 August 2009 (2009-08-26) * |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2024140354A1 (en) * | 2022-12-26 | 2024-07-04 | 维沃移动通信有限公司 | Display method, and apparatus using same |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| TWI767596B (en) | Scene depth and camera motion prediction method, electronic equipment and computer readable storage medium | |
| TWI752473B (en) | Image processing method and apparatus, electronic device and computer-readable storage medium | |
| CN110928627B (en) | Interface display method and device, electronic equipment and storage medium | |
| CN111626183B (en) | Target object display method and device, electronic equipment and storage medium | |
| CN112991553B (en) | Information display method and device, electronic equipment and storage medium | |
| WO2023051356A1 (en) | Virtual object display method and apparatus, and electronic device and storage medium | |
| CN113822798B (en) | Method and device for training generation countermeasure network, electronic equipment and storage medium | |
| CN114581525B (en) | Attitude determination method and device, electronic device and storage medium | |
| CN111401230A (en) | Attitude estimation method and apparatus, electronic device, and storage medium | |
| WO2022156150A1 (en) | Image processing method and apparatus, electronic device, storage medium, and computer program | |
| CN114266305A (en) | Object identification method and device, electronic equipment and storage medium | |
| WO2022134475A1 (en) | Point cloud map construction method and apparatus, electronic device, storage medium and program | |
| CN114445753A (en) | Face tracking recognition method and device, electronic equipment and storage medium | |
| WO2023123840A1 (en) | Payment method and apparatus, electronic device, storage medium, and computer program product | |
| WO2023155350A1 (en) | Crowd positioning method and apparatus, electronic device, and storage medium | |
| CN113611152A (en) | Parking lot navigation method and device, electronic equipment and storage medium | |
| CN114638817B (en) | Image segmentation method and device, electronic equipment and storage medium | |
| CN114638949A (en) | Virtual object display method and device, electronic equipment and storage medium | |
| US20210383580A1 (en) | Method, apparatus and system for anchor sharing, electronic device and storage medium | |
| CN114782656A (en) | Virtual object display method and device, electronic equipment and storage medium | |
| CN114550085B (en) | Crowd positioning method and device, electronic equipment and storage medium | |
| CN114550265A (en) | Image processing method, face recognition method and system | |
| CN114783033A (en) | Face recognition method and device, electronic device and storage medium | |
| CN114356529A (en) | Image processing method and device, electronic equipment and storage medium | |
| CN115205942A (en) | Expression recognition method and device, electronic device and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |