WO2021072702A1 - Augmented reality scene implementation method, apparatus, device, and storage medium - Google Patents

Augmented reality scene implementation method, apparatus, device, and storage medium Download PDF

Info

Publication number
WO2021072702A1
WO2021072702A1 PCT/CN2019/111692 CN2019111692W WO2021072702A1 WO 2021072702 A1 WO2021072702 A1 WO 2021072702A1 CN 2019111692 W CN2019111692 W CN 2019111692W WO 2021072702 A1 WO2021072702 A1 WO 2021072702A1
Authority
WO
WIPO (PCT)
Prior art keywords
coordinates
coordinate
virtual
reality glasses
target object
Prior art date
Application number
PCT/CN2019/111692
Other languages
French (fr)
Chinese (zh)
Inventor
邓生全
吴少滨
Original Assignee
深圳盈天下视觉科技有限公司
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 深圳盈天下视觉科技有限公司 filed Critical 深圳盈天下视觉科技有限公司
Priority to CN201980002020.3A priority Critical patent/CN110914873B/en
Priority to PCT/CN2019/111692 priority patent/WO2021072702A1/en
Publication of WO2021072702A1 publication Critical patent/WO2021072702A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/006Mixed reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration by the use of more than one image, e.g. averaging, subtraction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20212Image combination
    • G06T2207/20221Image fusion; Image merging

Definitions

  • the first real coordinate is mapped to the second coordinate origin to obtain the first coordinate conversion relational expression between the first coordinate origin and the second coordinate origin.
  • the determining module includes:
  • the fourth aspect of the embodiments of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned embodiment provided in the first aspect is implemented. Augmented reality method.
  • FIG. 5 is a specific implementation flow chart of S405 in Figure 4.
  • S102 Determine the second position of the target object in the camera preview image based on the first reality coordinates of the mixed reality glasses, the first virtual coordinates of the mixed reality glasses, and the second reality coordinates of the target object. Virtual coordinates.
  • the coordinates are all determined by the corresponding coordinate origin, and therefore, the conversion relationship between the coordinates can also be considered as the conversion relationship between the coordinate origins.
  • the first coordinate conversion relationship between the first real coordinate and the first virtual coordinate is determined by determining the coordinate relationship between the first coordinate origin and the second coordinate origin.
  • the virtual coordinate origin is initialized.
  • the first GPS coordinates are mapped to the initialized virtual coordinate origin, and the mapping relationship between the GPS coordinates and the virtual coordinates is established. Understandably, usually during the use of the augmented reality glasses, after the origin of the virtual coordinates is initialized, the origin of the virtual coordinates is a fixed position and no longer changes.
  • the augmented reality method acquires the first image in the real scene collected by the camera of the mixed reality glasses.
  • the first image includes the first attribute information of the target object.
  • the augmented reality device 6 provided by the embodiment of the present application includes:
  • the acquiring module 601 is configured to acquire a first image in a real scene collected by the camera of the mixed reality glasses, the first image including the first attribute information of the target object, the first attribute information of the target object and the object to be superimposed There is a first mapping relationship between the second attribute information, and the object to be superimposed is a virtual object in the display area of the augmented reality glasses;
  • the determining module 602 includes:
  • a mapping unit configured to map the first GPS coordinates to a virtual coordinate origin

Abstract

An augmented reality method, comprising: acquiring a first image, collected by a camera of mixed reality glasses, in a real scenario (S101); determining, on the basis of first real coordinates of the mixed reality glasses, first virtual coordinates of the mixed reality glasses and second real coordinates of a target object, second virtual coordinates of the target object in a preview picture of the camera (S102); and determining, on the basis of a first mapping relationship, second attribute information matching first attribute information, and superposing the first attribute information and the second attribute information in a target region (S103). The method realizes reality augmentation by means of combining real coordinates with virtual coordinates of a target object, without it being necessary to calculate the position and the angle of an image in real time, such that an augmented image has a higher stability.

Description

增强现实方法、装置、混合现实眼镜及存储介质Augmented reality method, device, mixed reality glasses and storage medium 技术领域Technical field
本申请属于计算机技术领域,尤其涉及一种增强现实方法、装置、混合现实眼镜及存储介质。This application belongs to the field of computer technology, and in particular relates to an augmented reality method, device, mixed reality glasses, and storage medium.
背景技术Background technique
增强现实(Augmented Reality,AR)是一种实时地计算摄影机影像的位置及角度并加上相应图像的技术,这种技术的目标是在屏幕上把虚拟世界套在现实世界并进行互动的过程。由于AR技术需要实时地计算摄影机影像的位置及角度,导致增强之后的图像不稳定。Augmented Reality (AR) is a technology that calculates the position and angle of the camera image in real time and adds the corresponding image. The goal of this technology is to put the virtual world on the screen in the process of interacting with the real world. Since AR technology needs to calculate the position and angle of the camera image in real time, the image after enhancement is unstable.
发明概述Summary of the invention
技术问题technical problem
本申请实施例的目的之一在于:提供一种增强现实方法、装置、混合显示眼镜及存储介质,旨在解决增强之后的图像不稳定问题。One of the objectives of the embodiments of the present application is to provide an augmented reality method, device, hybrid display glasses, and storage medium, aiming to solve the problem of image instability after enhancement.
问题的解决方案The solution to the problem
技术解决方案Technical solutions
为了解决上述技术问题,本申请实施例提供了增强现实方法、装置、增强现实眼镜及存储介质,以解决现有的增强现实技术由于需要实时地计算摄影机影像的位置及角度,导致增强之后的图像不稳定问题。In order to solve the above technical problems, the embodiments of the present application provide an augmented reality method, device, augmented reality glasses, and storage medium to solve the problem that the existing augmented reality technology needs to calculate the position and angle of the camera image in real time, resulting in an enhanced image Instability issues.
本申请实施例的第一方面提供了一种增强现实方法,包括:The first aspect of the embodiments of the present application provides an augmented reality method, including:
获取混合现实眼镜的摄像头采集的真实场景中的第一图像,所述第一图像包括目标对象的第一属性信息,所述目标对象的第一属性信息与待叠加对象的第二属性信息之间存在第一映射关系,所述待叠加对象为所述增强现实眼镜的显示区域中的虚拟对象;Obtain a first image in a real scene collected by the camera of the mixed reality glasses, the first image including the first attribute information of the target object, and the difference between the first attribute information of the target object and the second attribute information of the object to be superimposed There is a first mapping relationship, and the object to be superimposed is a virtual object in the display area of the augmented reality glasses;
基于所述混合现实眼镜的第一现实坐标、所述混合现实眼镜的第一虚拟坐标以及所述目标对象的第二现实坐标,确定所述目标对象在所述增强现实眼镜的显示区域中的第二虚拟坐标;Based on the first reality coordinates of the mixed reality glasses, the first virtual coordinates of the mixed reality glasses, and the second reality coordinates of the target object, determine the first position of the target object in the display area of the augmented reality glasses Two virtual coordinates;
其中,所述第一现实坐标与所述第二现实坐标均为相对于第一坐标原点的坐标,所述第一虚拟坐标与所述第二虚拟坐标均为相对于第二坐标原点的坐标;所述第一坐标原点为所述第一图像的坐标原点,所述第二坐标原点为所述增强现实眼镜的显示区域的坐标原点;Wherein, the first real coordinates and the second real coordinates are both coordinates relative to the origin of the first coordinates, and the first virtual coordinates and the second virtual coordinates are both coordinates relative to the origin of the second coordinates; The first coordinate origin is the coordinate origin of the first image, and the second coordinate origin is the coordinate origin of the display area of the augmented reality glasses;
基于所述第一映射关系,确定与所述第一属性信息相匹配的所述第二属性信息,在目标区域将所述第一属性信息与所述第二属性信息进行叠加,所述目标区域为所述第二虚拟坐标在所述增强现实眼镜的显示区域中对应的区域。Based on the first mapping relationship, the second attribute information that matches the first attribute information is determined, and the first attribute information and the second attribute information are superimposed in a target area, and the target area Is the area corresponding to the second virtual coordinate in the display area of the augmented reality glasses.
在一种可选的实现方式中,所述基于所述混合现实眼镜的第一现实坐标、所述混合现实眼镜的第一虚拟坐标以及所述目标对象的第二现实坐标,确定所述目标对象在所述增强现实眼镜的显示区域中的第二虚拟坐标,包括:In an optional implementation manner, the target object is determined based on the first reality coordinates of the mixed reality glasses, the first virtual coordinates of the mixed reality glasses, and the second reality coordinates of the target object The second virtual coordinates in the display area of the augmented reality glasses include:
获取所述混合现实眼镜相对于所述第一坐标原点的第一现实坐标,以及获取所述混合现实眼镜相对于所述第二坐标原点的第一虚拟坐标;Acquiring first reality coordinates of the mixed reality glasses relative to the origin of the first coordinates, and acquiring first virtual coordinates of the mixed reality glasses relative to the origin of the second coordinates;
确定所述第一现实坐标与所述第一虚拟坐标之间的第一坐标转换关系式;Determining a first coordinate conversion relational expression between the first real coordinate and the first virtual coordinate;
根据所述第一坐标转换关系式,将所述第二现实坐标转换为所述第二虚拟坐标,得到所述目标对象在所述增强现实眼镜的显示区域中的所述第二虚拟坐标。According to the first coordinate conversion relational expression, the second real coordinates are converted into the second virtual coordinates to obtain the second virtual coordinates of the target object in the display area of the augmented reality glasses.
在一种可选的实现方式中,所述混合现实眼镜的第一虚拟坐标为所述第二坐标原点;In an optional implementation manner, the first virtual coordinate of the mixed reality glasses is the origin of the second coordinate;
所述确定所述第一现实坐标与所述第一虚拟坐标之间的第一坐标转换关系式,包括:The determining the first coordinate conversion relational expression between the first real coordinate and the first virtual coordinate includes:
将所述第一现实坐标映射在所述第二坐标原点上,得到所述第一坐标原点与所述第二坐标原点之间的所述第一坐标转换关系式。The first real coordinate is mapped to the second coordinate origin to obtain the first coordinate conversion relational expression between the first coordinate origin and the second coordinate origin.
在一种可选的实现方式中,基于所述混合现实眼镜的第一现实坐标、所述混合现实眼镜的第一虚拟坐标以及所述目标对象的第二现实坐标,确定所述目标对象在所述增强现实眼镜的显示区域中的第二虚拟坐标,包括:In an optional implementation manner, based on the first reality coordinates of the mixed reality glasses, the first virtual coordinates of the mixed reality glasses, and the second reality coordinates of the target object, it is determined that the target object is in the place. The second virtual coordinates in the display area of the augmented reality glasses include:
根据预设的坐标校准法则确定所述第一现实坐标与所述第一虚拟坐标之间的第二坐标转换关系式;Determining a second coordinate conversion relationship between the first real coordinate and the first virtual coordinate according to a preset coordinate calibration rule;
根据所述第二坐标转换关系式,确定所述目标对象在所述增强现实眼镜的显示区域中的所述第二虚拟坐标。According to the second coordinate conversion relational expression, the second virtual coordinate of the target object in the display area of the augmented reality glasses is determined.
在一种可选的实现方式中,所述增强现实眼镜和所述目标对象均具有GPS定位系统,所述第一现实坐标为所述增强现实眼镜的第一GPS坐标,所述第二现实坐标为所述目标对象的第二GPS坐标。In an optional implementation manner, both the augmented reality glasses and the target object have a GPS positioning system, the first reality coordinates are the first GPS coordinates of the augmented reality glasses, and the second reality coordinates Is the second GPS coordinate of the target object.
在一种可选的实现方式中,所述基于所述混合现实眼镜的第一现实坐标、所述混合现实眼镜的第一虚拟坐标以及所述目标对象的第二现实坐标,确定所述目标对象在所述摄像头预览画面中的第二虚拟坐标,包括:In an optional implementation manner, the target object is determined based on the first reality coordinates of the mixed reality glasses, the first virtual coordinates of the mixed reality glasses, and the second reality coordinates of the target object The second virtual coordinates in the camera preview image include:
获取所述增强现实眼镜的第一GPS坐标和所述目标对象的第二GPS坐标;Acquiring the first GPS coordinates of the augmented reality glasses and the second GPS coordinates of the target object;
将所述第一GPS坐标映射为虚拟坐标原点;Mapping the first GPS coordinates to a virtual coordinate origin;
计算所述第一GPS坐标与所述第二GPS坐标之间的坐标转换关系;Calculating a coordinate conversion relationship between the first GPS coordinate and the second GPS coordinate;
基于所述虚拟坐标原点,所述第一GPS坐标与所述第二GPS坐标之间的坐标转换关系,确定所述目标对象的所述第二虚拟坐标。Based on the origin of the virtual coordinates and the coordinate conversion relationship between the first GPS coordinates and the second GPS coordinates, the second virtual coordinates of the target object are determined.
本申请实施例的第二方面提供了一种增强现实装置,包括:The second aspect of the embodiments of the present application provides an augmented reality device, including:
获取模块,用于获取混合现实眼镜的摄像头采集的真实场景中的第一图像,所述第一图像包括目标对象的第一属性信息,所述目标对象的第一属性信息与待叠加对象的第二属性信息之间存在第一映射关系,所述待叠加对象为所述增强现实眼镜的显示区域中的虚拟对象;The acquisition module is configured to acquire a first image in a real scene collected by a camera of the mixed reality glasses, the first image including the first attribute information of the target object, the first attribute information of the target object and the first image of the object to be superimposed There is a first mapping relationship between the two attribute information, and the object to be superimposed is a virtual object in the display area of the augmented reality glasses;
确定模块,用于基于所述混合现实眼镜的第一现实坐标、所述混合现实眼镜的第一虚拟坐标以及所述目标对象的第二现实坐标,确定所述目标对象在所述增强现实眼镜的显示区域中的第二虚拟坐标;The determining module is configured to determine the position of the target object in the augmented reality glasses based on the first reality coordinates of the mixed reality glasses, the first virtual coordinates of the mixed reality glasses, and the second reality coordinates of the target object The second virtual coordinate in the display area;
叠加模块,用于基于所述第一映射关系,确定与所述第一属性信息相匹配的所述第二属性信息,在目标区域将所述第一属性信息与所述第二属性信息进行叠加,所述目标区域为所述第二虚拟坐标在所述增强现实眼镜的显示区域中对应的区域。An overlay module, configured to determine the second attribute information that matches the first attribute information based on the first mapping relationship, and superimpose the first attribute information and the second attribute information in a target area The target area is an area corresponding to the second virtual coordinate in the display area of the augmented reality glasses.
在一种可选的实现方式中,所述确定模块,包括:In an optional implementation manner, the determining module includes:
第一获取单元,用于获取所述混合现实眼镜相对于所述第一坐标原点的第一现实坐标,以及获取所述混合现实眼镜相对于所述第二坐标原点的第一虚拟坐标;A first acquiring unit, configured to acquire first reality coordinates of the mixed reality glasses relative to the origin of the first coordinates, and acquire first virtual coordinates of the mixed reality glasses relative to the origin of the second coordinates;
第一确定单元,用于确定所述第一现实坐标与所述第一虚拟坐标之间的第一坐 标转换关系式;A first determining unit, configured to determine a first coordinate conversion relational expression between the first real coordinate and the first virtual coordinate;
转换单元,用于根据所述第一坐标转换关系式,将所述第二现实坐标转换为所述第二虚拟坐标,得到所述目标对象在所述增强现实眼镜的显示区域中的所述第二虚拟坐标。The conversion unit is configured to convert the second real coordinates into the second virtual coordinates according to the first coordinate conversion relational expression to obtain the first position of the target object in the display area of the augmented reality glasses Two virtual coordinates.
在一种可选的实现方式中,所述混合现实眼镜的第一虚拟坐标为所述第二坐标原点;In an optional implementation manner, the first virtual coordinate of the mixed reality glasses is the origin of the second coordinate;
所述第一确定单元,包括:The first determining unit includes:
映射子单元,用于将所述第一现实坐标映射在所述第二坐标原点上,得到所述第一坐标原点与所述第二坐标原点之间的所述第一坐标转换关系式。The mapping subunit is configured to map the first real coordinate to the second coordinate origin to obtain the first coordinate conversion relational expression between the first coordinate origin and the second coordinate origin.
在一种可选的实现方式中,所述确定模块,包括:In an optional implementation manner, the determining module includes:
第二确定单元,用于根据预设的坐标校准法则确定所述第一现实坐标与所述第一虚拟坐标之间的第二坐标转换关系式;A second determining unit, configured to determine a second coordinate conversion relational expression between the first real coordinate and the first virtual coordinate according to a preset coordinate calibration rule;
第三确定单元,用于根据所述第二坐标转换关系式,确定所述目标对象在所述增强现实眼镜的显示区域中的所述第二虚拟坐标。The third determining unit is configured to determine the second virtual coordinates of the target object in the display area of the augmented reality glasses according to the second coordinate conversion relational expression.
在一种可选的实现方式中,所述增强现实眼镜和所述目标对象均具有GPS定位系统,所述第一现实坐标为所述增强现实眼镜的第一GPS坐标,所述第二现实坐标为所述目标对象的第二GPS坐标。In an optional implementation manner, both the augmented reality glasses and the target object have a GPS positioning system, the first reality coordinates are the first GPS coordinates of the augmented reality glasses, and the second reality coordinates Is the second GPS coordinate of the target object.
在一种可选的实现方式中,所述确定模块,包括:In an optional implementation manner, the determining module includes:
第二获取单元,用于获取所述增强现实眼镜的第一GPS坐标和所述目标对象的第二GPS坐标;A second acquiring unit, configured to acquire the first GPS coordinates of the augmented reality glasses and the second GPS coordinates of the target object;
映射单元,用于将所述第一GPS坐标映射为虚拟坐标原点;A mapping unit, configured to map the first GPS coordinates to a virtual coordinate origin;
计算单元,用于计算所述第一GPS坐标与所述第二GPS坐标之间的坐标转换关系;A calculation unit, configured to calculate a coordinate conversion relationship between the first GPS coordinate and the second GPS coordinate;
第四确定单元,用于基于所述虚拟坐标原点,所述第一GPS坐标与所述第二GPS坐标之间的坐标转换关系,确定所述目标对象的所述第二虚拟坐标。The fourth determining unit is configured to determine the second virtual coordinates of the target object based on the origin of the virtual coordinates and the coordinate conversion relationship between the first GPS coordinates and the second GPS coordinates.
本申请实施例的第三方面提供了一种增强现实眼镜,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上第一方面提供的实施例所述增强现实方法。The third aspect of the embodiments of the present application provides an augmented reality glasses, including a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor executes the computer program When realizing the augmented reality method as described in the embodiment provided in the first aspect above.
本申请实施例的第四方面提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如上第一方面提供的实施例所述增强现实方法。The fourth aspect of the embodiments of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned embodiment provided in the first aspect is implemented. Augmented reality method.
本申请第一方面提供的增强现实方法,与现有技术相比,通过获取混合现实眼镜的摄像头采集的真实场景中的第一图像,所述第一图像包括目标对象的第一属性信息,所述目标对象的第一属性信息与待叠加对象的第二属性信息之间存在第一映射关系,所述待叠加对象为所述增强现实眼镜的显示区域中的虚拟对象;基于所述混合现实眼镜的第一现实坐标、所述混合现实眼镜的第一虚拟坐标以及所述目标对象的第二现实坐标,确定所述目标对象在所述增强现实眼镜的显示区域中的第二虚拟坐标;基于所述第一映射关系,确定与所述第一属性信息相匹配的所述第二属性信息,在目标区域将所述第一属性信息与所述第二属性信息进行叠加,所述目标区域为所述第二虚拟坐标在所述增强现实眼镜的显示区域中对应的区域。由于基于混合现实眼镜的第一现实坐标、所述混合现实眼镜的第一虚拟坐标以及所述目标对象的第二现实坐标,确定所述目标对象在所述增强现实眼镜的显示区域中的第二虚拟坐标;并在目标区域将相匹配的第一属性信息与第二属性信息进行叠加,所述目标区域为所述第二虚拟坐标在所述增强现实眼镜的显示区域中对应的区域,实现了将目标对象的现实坐标与虚拟坐标相结合来进行现实增强,不需要实时计算影像的位置及角度,使得增强之后的图像具有较好的稳定性。Compared with the prior art, the augmented reality method provided by the first aspect of the present application acquires a first image in a real scene collected by a camera of a mixed reality glasses. The first image includes the first attribute information of the target object. There is a first mapping relationship between the first attribute information of the target object and the second attribute information of the object to be superimposed, and the object to be superimposed is a virtual object in the display area of the augmented reality glasses; based on the mixed reality glasses The first reality coordinates of the mixed reality glasses, the first virtual coordinates of the mixed reality glasses, and the second reality coordinates of the target object to determine the second virtual coordinates of the target object in the display area of the augmented reality glasses; In the first mapping relationship, the second attribute information that matches the first attribute information is determined, and the first attribute information and the second attribute information are superimposed in a target area, where the target area is all The area corresponding to the second virtual coordinate in the display area of the augmented reality glasses. Because based on the first reality coordinates of the mixed reality glasses, the first virtual coordinates of the mixed reality glasses, and the second reality coordinates of the target object, the second reality of the target object in the display area of the augmented reality glasses is determined. Virtual coordinates; and superimpose the matched first attribute information and second attribute information in a target area, where the target area is the area corresponding to the second virtual coordinates in the display area of the augmented reality glasses, which realizes Combining the real coordinates of the target object with the virtual coordinates for reality augmentation does not require real-time calculation of the position and angle of the image, so that the enhanced image has better stability.
本申请第二至第四方面提供的实施例与现有技术相比,存在的有益效果与本申请第一方面提供的实施例与现有技术相比,存在的有益效果相同,在此不再赘述。Compared with the prior art, the embodiments provided in the second to fourth aspects of the present application have the same beneficial effects as the embodiments provided in the first aspect of the present application. Go into details.
发明的有益效果The beneficial effects of the invention
对附图的简要说明Brief description of the drawings
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性 的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only of the present application. For some embodiments, those of ordinary skill in the art can obtain other drawings based on these drawings without creative labor.
图1是本申请第一实施例提供的增强现实方法的实现流程图;Fig. 1 is an implementation flowchart of the augmented reality method provided by the first embodiment of the present application;
图2是图1中S102的第一具体实现流程图;Figure 2 is a first specific implementation flow chart of S102 in Figure 1;
图3是图1中S102的第二具体实现流程图;Figure 3 is a second specific implementation flow chart of S102 in Figure 1;
图4是是图1中S102的第三具体实现流程图;Figure 4 is a third specific implementation flow chart of S102 in Figure 1;
图5是图4中S405的具体实现流程图;Figure 5 is a specific implementation flow chart of S405 in Figure 4;
图6是本申请提供的增强现实装置的装置示意图;FIG. 6 is a schematic diagram of the augmented reality device provided by the present application;
图7是本申请实施例提供的增强现实眼镜的示意图。Fig. 7 is a schematic diagram of augmented reality glasses provided by an embodiment of the present application.
发明实施例Invention embodiment
本发明的实施方式Embodiments of the present invention
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for the purpose of illustration rather than limitation, specific details such as a specific system structure and technology are proposed for a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from obstructing the description of this application.
需要说明的是,增强现实(Augmented Reality,AR)技术是一种将虚拟信息与真实世界巧妙融合的技术,广泛运用了多媒体、三维建模、实时跟踪及注册、智能交互、传感等多种技术手段,将计算机生成的文字、图像、三维模型、音乐、视频等虚拟信息模拟仿真后,应用到真实世界中,两种信息互为补充,从而实现对真实世界的“增强”。It should be noted that Augmented Reality (AR) technology is a technology that ingeniously integrates virtual information with the real world, and widely uses multimedia, three-dimensional modeling, real-time tracking and registration, intelligent interaction, sensing, etc. Technical means, after computer-generated text, images, three-dimensional models, music, video and other virtual information are simulated and applied to the real world, the two kinds of information complement each other, so as to realize the "enhancement" of the real world.
目前,常见的增强现实技术,由于需要实时计算摄影机影像的位置及角度,且没有进行现实坐标与虚拟坐标的结合,导致增强之后的图像不稳定。At present, the common augmented reality technology requires real-time calculation of the position and angle of the camera image, and the combination of real coordinates and virtual coordinates is not performed, resulting in unstable images after enhancement.
为了解决上述技术问题,本申请实施例提供了增强现实方法、装置、增强现实眼镜及存储介质。In order to solve the foregoing technical problems, embodiments of the present application provide an augmented reality method, device, augmented reality glasses, and storage medium.
为了说明本申请所述的技术方案,下面通过具体实施例来进行说明。如图1所示,是本申请第一实施例提供的增强现实方法的实现流程图,本实施例的执行主体为增强现实眼镜,可由增强现实眼镜中的软件或硬件实现。详述如下:In order to illustrate the technical solution described in the present application, specific embodiments are used for description below. As shown in FIG. 1, it is an implementation flowchart of the augmented reality method provided by the first embodiment of the present application. The execution subject of this embodiment is augmented reality glasses, which can be implemented by software or hardware in the augmented reality glasses. The details are as follows:
S101,获取混合现实眼镜的摄像头采集的真实场景中的第一图像。其中,所述 第一图像包括目标对象的第一属性信息,所述目标对象的第一属性信息与待叠加对象的第二属性信息之间存在第一映射关系,所述待叠加对象为预览画面中的虚拟对象。S101: Acquire a first image in a real scene collected by a camera of the mixed reality glasses. Wherein, the first image includes first attribute information of the target object, there is a first mapping relationship between the first attribute information of the target object and the second attribute information of the object to be superimposed, and the object to be superimposed is a preview image Virtual objects in.
其中,混合现实眼镜是能够完成混合现实技术的眼镜,用户佩戴本申请实施例中的混合现实眼镜能够观察到在现实场景中呈现虚拟场景信息,其将现实世界、虚拟世界和用户之间搭起一个交互反馈的信息回路,增强用户体验的真实感。Among them, the mixed reality glasses are glasses that can complete the mixed reality technology. The user wearing the mixed reality glasses in the embodiment of this application can observe the presentation of virtual scene information in the real scene, which connects the real world, the virtual world and the user. An information loop of interactive feedback enhances the realism of the user experience.
在一种可选的实现方式中,混合现实眼镜包括摄像头,所述摄像头用于采集真实场景中的第一图像,所述第一图像包括需要进行现实增强的目标对象,通常,目标对象为具有固定的第一属性信息的人和物体;其中,所述第一属性信息为目标对象在应用场景中的特征信息,例如,假设所述目标对象为比赛现场的选手,则所述目标对象的第一属性信息包括该选手在所述比赛现场的位置、队服颜色等。对应于上述的比赛应用场景,待叠加对象为所述比赛现场的辅助信息,如球场、队员数量等辅助信息,所述辅助信息的第二属性信息与所述选手的第一属性信息相匹配,例如,所述辅助信息为球场,则该辅助信息的第二属性信息包括与所述选手的位置相匹配的球场的中心位置,球场的边界点位置等,通过增强现实技术可以将比赛现场的辅助信息与该选手所在的第一图像进行叠加显示,实现增强真实场景与虚拟场景融合显示。In an optional implementation manner, the mixed reality glasses include a camera, the camera is used to collect a first image in a real scene, and the first image includes a target object that needs to be augmented. Generally, the target object is Persons and objects with fixed first attribute information; wherein the first attribute information is the feature information of the target object in the application scene. For example, assuming that the target object is a player at the game scene, the first attribute information of the target object An attribute information includes the position of the player at the game scene, the color of the team uniform, and so on. Corresponding to the aforementioned game application scenario, the object to be superimposed is auxiliary information of the game scene, such as auxiliary information such as the stadium and the number of players, and the second attribute information of the auxiliary information matches the first attribute information of the player. For example, if the auxiliary information is a stadium, the second attribute information of the auxiliary information includes the center position of the stadium and the position of the boundary point of the stadium that match the position of the player. The augmented reality technology can assist the game scene. The information is superimposed and displayed with the first image where the player is, so as to realize the enhanced display of the real scene and the virtual scene.
S102,基于所述混合现实眼镜的第一现实坐标、所述混合现实眼镜的第一虚拟坐标以及所述目标对象的第二现实坐标,确定所述目标对象在所述摄像头预览画面中的第二虚拟坐标。S102: Determine the second position of the target object in the camera preview image based on the first reality coordinates of the mixed reality glasses, the first virtual coordinates of the mixed reality glasses, and the second reality coordinates of the target object. Virtual coordinates.
其中,所述第一现实坐标与所述第二现实坐标均为相对于第一坐标原点的坐标,所述第一虚拟坐标与所述第二虚拟坐标均为相对于第二坐标原点的坐标;所述第一坐标原点为所述第一图像的坐标原点,所述第二坐标原点为所述增强现实眼镜的显示区域的坐标原点。Wherein, the first real coordinates and the second real coordinates are both coordinates relative to the origin of the first coordinates, and the first virtual coordinates and the second virtual coordinates are both coordinates relative to the origin of the second coordinates; The first coordinate origin is the coordinate origin of the first image, and the second coordinate origin is the coordinate origin of the display area of the augmented reality glasses.
需要说明的是,所述增强现实眼镜的显示区域为预设显示区域中显示的画面,用于显示虚拟物体(待叠加对象)信息,本申请的实施例中,通过增强现实眼镜的摄像头获取真实场景的第一图像,增强现实眼镜的预览画面显示待叠加对 象,基于第一图像中目标对象与预览画面中待叠加对象之间的坐标关系,实现透过增强现实眼镜的屏幕就能观察到将待叠加对象叠加到目标对象,实现增强现实的效果。It should be noted that the display area of the augmented reality glasses is a picture displayed in the preset display area for displaying information about virtual objects (objects to be superimposed). In the embodiment of the present application, the reality is obtained through the camera of the augmented reality glasses. In the first image of the scene, the preview screen of the augmented reality glasses displays the object to be superimposed. Based on the coordinate relationship between the target object in the first image and the object to be superimposed in the preview screen, it can be observed through the screen of the augmented reality glasses. The object to be superimposed is superimposed on the target object to achieve the effect of augmented reality.
在一种可选的实现方式中,如图2所示,是图1中S102的第一具体实现流程图,由图2可知,S102包括:In an optional implementation manner, as shown in FIG. 2, it is the first specific implementation flowchart of S102 in FIG. 1. As can be seen from FIG. 2, S102 includes:
S1021,获取所述混合现实眼镜相对于所述第一坐标原点的第一现实坐标,以及获取所述混合现实眼镜相对于所述第二坐标原点的第一虚拟坐标。S1021: Acquire first reality coordinates of the mixed reality glasses relative to the origin of the first coordinates, and acquire first virtual coordinates of the mixed reality glasses relative to the origin of the second coordinates.
其中,所述第一现实坐标以真实场景为参考,所述第一虚拟坐标以增强现实眼镜的屏幕为参考,若能获取真实场景与增强现实眼镜屏幕的位置关系,则可以确定在增强现实眼镜的显示区域(增强现实眼镜的屏幕)的某一位置显示所需要叠加的待叠加对象,这样透过增强现实眼镜观测真实场景信息时,即可实现待叠加对象与目标对象的融合。Wherein, the first reality coordinates are based on the real scene, and the first virtual coordinates are based on the screen of the augmented reality glasses. If the position relationship between the real scene and the screen of the augmented reality glasses can be obtained, it can be determined that the The display area (the screen of the augmented reality glasses) displays the object to be superimposed that needs to be superimposed, so that when the real scene information is observed through the augmented reality glasses, the fusion of the object to be superimposed and the target object can be realized.
S1022,确定所述第一现实坐标与所述第一虚拟坐标之间的第一坐标转换关系式。S1022: Determine a first coordinate conversion relational expression between the first real coordinate and the first virtual coordinate.
可以理解地,坐标均由相应的坐标原点确定,因此,坐标之间的转换关系也可以认为是坐标原点之间的转换关系。在本实施例中,通过确定所述第一坐标原点与所述第二坐标原点之间的坐标关系,确定所述第一现实坐标与所述第一虚拟坐标之间的第一坐标转换关系。Understandably, the coordinates are all determined by the corresponding coordinate origin, and therefore, the conversion relationship between the coordinates can also be considered as the conversion relationship between the coordinate origins. In this embodiment, the first coordinate conversion relationship between the first real coordinate and the first virtual coordinate is determined by determining the coordinate relationship between the first coordinate origin and the second coordinate origin.
在一种可选的实现方式中,S1022包括:In an optional implementation manner, S1022 includes:
将所述第一现实坐标映射在所述第二坐标原点上,得到所述第一坐标原点与所述第二坐标原点之间的所述第一坐标转换关系式。The first real coordinate is mapped to the second coordinate origin to obtain the first coordinate conversion relational expression between the first coordinate origin and the second coordinate origin.
其中,将所述第一现实坐标映射在所述第二坐标原点上指的是初始化所述第二坐标原点,使得所述第一现实坐标与所述第二坐标原点重合的过程。Wherein, mapping the first real coordinate to the second coordinate origin refers to a process of initializing the second coordinate origin so that the first real coordinate and the second coordinate origin coincide.
S1023,根据所述第一坐标转换关系式,将所述第二现实坐标转换为所述第二虚拟坐标,得到所述目标对象在所述增强现实眼镜的显示区域中的所述第二虚拟坐标。S1023: According to the first coordinate conversion relational expression, convert the second real coordinates into the second virtual coordinates to obtain the second virtual coordinates of the target object in the display area of the augmented reality glasses .
在一种可选的实现方式中,所述混合现实眼镜的第一虚拟坐标为所述第二坐标原点。In an optional implementation manner, the first virtual coordinate of the mixed reality glasses is the origin of the second coordinate.
可以理解地,图2所示实施例仅示出了一种确定所述目标对象在所述摄像头预览画面中的第二虚拟坐标的方式,在不同的实施例中,可以选择不同的方式确定。It is understandable that the embodiment shown in FIG. 2 only shows a way of determining the second virtual coordinates of the target object in the camera preview image. In different embodiments, different ways can be selected for determination.
例如,如图3所示,是图1中S102的第二具体实现流程图,由图3可知,在本实施例中,S102包括:For example, as shown in FIG. 3, it is the second specific implementation flowchart of S102 in FIG. 1. As can be seen from FIG. 3, in this embodiment, S102 includes:
S1024,根据预设的坐标校准法则确定所述第一现实坐标与所述第一虚拟坐标之间的第二坐标转换关系式。S1024: Determine a second coordinate conversion relationship between the first real coordinate and the first virtual coordinate according to a preset coordinate calibration rule.
其中,预设的坐标校准法则是通过将预设的校准图放置在距离增强现实眼镜的正前方一定距离,使得增强现实眼镜的摄像头在采集真实场景中的第一图像时,也能够采集到校准图,所述校准图上标记有校准点。Among them, the preset coordinate calibration law is to place the preset calibration map at a certain distance from the front of the augmented reality glasses, so that the camera of the augmented reality glasses can also collect the calibration when collecting the first image in the real scene. Figure, the calibration diagram is marked with calibration points.
S1025,根据所述第二坐标转换关系式,确定所述目标对象在所述摄像头预览画面中的所述第二虚拟坐标。S1025: Determine the second virtual coordinates of the target object in the camera preview image according to the second coordinate conversion relational expression.
在一种可选的实现方式中,所述增强现实眼镜和所述目标对象均具有GPS定位系统,所述第一现实坐标为所述增强现实眼镜的第一GPS坐标,所述第二现实坐标为所述目标对象的第二GPS坐标。In an optional implementation manner, both the augmented reality glasses and the target object have a GPS positioning system, the first reality coordinates are the first GPS coordinates of the augmented reality glasses, and the second reality coordinates Is the second GPS coordinate of the target object.
如图4所示,是图1中S102的第三具体实现流程图,由图4可知,在本实施例中,S102包括:As shown in FIG. 4, it is the third specific implementation flowchart of S102 in FIG. 1. As can be seen from FIG. 4, in this embodiment, S102 includes:
S401,获取所述增强现实眼镜的第一GPS坐标和所述目标对象的第二GPS坐标。S401: Acquire the first GPS coordinates of the augmented reality glasses and the second GPS coordinates of the target object.
其中,所述增强现实眼镜的第一GPS坐标由所述增强现实眼镜的GPS定位系统定位得到,所述目标对象的第二GPS坐标由所述目标对象的GPS定位系统定位得到。Wherein, the first GPS coordinates of the augmented reality glasses are obtained by positioning by the GPS positioning system of the augmented reality glasses, and the second GPS coordinates of the target object are obtained by positioning by the GPS positioning system of the target object.
S402,将所述第一GPS坐标映射为虚拟坐标原点。S402: Map the first GPS coordinates to a virtual coordinate origin.
其中,在获取所述第一GPS坐标之后,初始化虚拟坐标原点,在本实施例中,将所述第一GPS坐标映射为初始化的虚拟坐标原点,建立GPS坐标与虚拟坐标之间的映射关系。可以理解地,通常在所述增强现实眼镜的使用期间,初始化所述虚拟坐标原点之后,所述虚拟坐标原点为一固定位置,不再发生变化。Wherein, after acquiring the first GPS coordinates, the virtual coordinate origin is initialized. In this embodiment, the first GPS coordinates are mapped to the initialized virtual coordinate origin, and the mapping relationship between the GPS coordinates and the virtual coordinates is established. Understandably, usually during the use of the augmented reality glasses, after the origin of the virtual coordinates is initialized, the origin of the virtual coordinates is a fixed position and no longer changes.
S403,计算所述第一GPS坐标与所述第二GPS坐标之间的坐标转换关系。S403: Calculate a coordinate conversion relationship between the first GPS coordinate and the second GPS coordinate.
可以理解地,所述第一GPS坐标和所述第二GPS坐标分别为GPS坐标系下的位置坐标,其表示物体在GPS坐标系下的位置,通过计算所述第一GPS坐标和所述第二GPS坐标之间的坐标转换关系,可以确定所述目标对象和所述增强现实设置之间的位置关系。Understandably, the first GPS coordinates and the second GPS coordinates are respectively position coordinates in the GPS coordinate system, which represent the position of the object in the GPS coordinate system, and the first GPS coordinates and the second GPS coordinates are calculated by calculating the first GPS coordinates and the second GPS coordinates. Second, the coordinate conversion relationship between GPS coordinates can determine the position relationship between the target object and the augmented reality setting.
S404,基于所述虚拟坐标原点,所述第一GPS坐标与所述第二GPS坐标之间的坐标转换关系,确定所述目标对象的所述第二虚拟坐标。S404: Determine the second virtual coordinate of the target object based on the coordinate conversion relationship between the virtual coordinate origin and the first GPS coordinate and the second GPS coordinate.
S103,基于所述第一映射关系,确定与所述第一属性信息相匹配的所述第二属性信息,在目标区域将所述第一属性信息与所述第二属性信息进行叠加,所述目标区域为所述第二虚拟坐标在所述增强现实眼镜的显示区域中对应的区域。S103. Determine the second attribute information that matches the first attribute information based on the first mapping relationship, and superimpose the first attribute information and the second attribute information in a target area, and The target area is an area corresponding to the second virtual coordinate in the display area of the augmented reality glasses.
通过上述方法得到的摄像头预览画面中待叠加对象和真实场景中目标对象之间的坐标转换关系式,对于增强现实眼镜的显示区域中可进行增强现实叠加的区域内任意一点,通过得到的坐标转换关系式可以得到该点在真实场景中对应点的坐标,然后在增强现实眼镜的显示区域中的对应点坐标处将需要叠加的待叠加对象的第二属性信息和目标对象的第一属性信息进行叠加,即可实现虚拟和现实场景的虚实融合。The coordinate conversion relationship between the object to be superimposed in the camera preview screen and the target object in the real scene obtained by the above method, for any point in the area where the augmented reality can be superimposed in the display area of the augmented reality glasses, the obtained coordinate conversion The relational expression can obtain the coordinates of the corresponding point of the point in the real scene, and then perform the second attribute information of the object to be superimposed and the first attribute information of the target object at the coordinates of the corresponding point in the display area of the augmented reality glasses. Superimposition can realize the fusion of virtual and real scenes.
通过上述分析可知,本实施例提供的增强现实方法,通过获取混合现实眼镜的摄像头采集的真实场景中的第一图像,所述第一图像包括目标对象的第一属性信息,所述目标对象的第一属性信息与待叠加对象的第二属性信息之间存在第一映射关系,所述待叠加对象为所述增强现实眼镜的显示区域中的虚拟对象;基于所述混合现实眼镜的第一现实坐标、所述混合现实眼镜的第一虚拟坐标以及所述目标对象的第二现实坐标,确定所述目标对象在所述增强现实眼镜的显示区域中的第二虚拟坐标;基于所述第一映射关系,确定与所述第一属性信息相匹配的所述第二属性信息,在目标区域将所述第一属性信息与所述第二属性信息进行叠加,所述目标区域为所述第二虚拟坐标在所述增强现实眼镜的显示区域中对应的区域。由于基于混合现实眼镜的第一现实坐标、所述混合现实眼镜的第一虚拟坐标以及所述目标对象的第二现实坐标,确定所述目标对象在所述摄像头预览画面中的第二虚拟坐标;并在目标区域将相匹配的第一属性信息与第二属性信息进行叠加,所述目标区域为所述第二虚拟坐标在所述增强现实 眼镜的显示区域中对应的区域,实现了将目标对象的现实坐标与虚拟坐标相结合来进行现实增强,不需要实时计算影像的位置及角度,使得增强之后的图像具有较好的稳定性。It can be seen from the above analysis that the augmented reality method provided in this embodiment acquires the first image in the real scene collected by the camera of the mixed reality glasses. The first image includes the first attribute information of the target object. There is a first mapping relationship between the first attribute information and the second attribute information of the object to be superimposed, and the object to be superimposed is a virtual object in the display area of the augmented reality glasses; based on the first reality of the mixed reality glasses Coordinates, the first virtual coordinates of the mixed reality glasses, and the second reality coordinates of the target object to determine the second virtual coordinates of the target object in the display area of the augmented reality glasses; based on the first mapping Relationship, determine the second attribute information that matches the first attribute information, and superimpose the first attribute information and the second attribute information in a target area, where the target area is the second virtual The coordinate corresponds to the area in the display area of the augmented reality glasses. Determining the second virtual coordinates of the target object in the camera preview screen based on the first reality coordinates of the mixed reality glasses, the first virtual coordinates of the mixed reality glasses, and the second reality coordinates of the target object; And superimpose the matched first attribute information and second attribute information in a target area, where the target area is the area corresponding to the second virtual coordinate in the display area of the augmented reality glasses, which realizes the target object Real-time coordinates and virtual coordinates are combined for reality augmentation, without real-time calculation of the position and angle of the image, so that the enhanced image has better stability.
对应于本申请第一实施例提供的增强现实方法,如图6所示,是本申请提供的增强现实装置的装置示意图。Corresponding to the augmented reality method provided in the first embodiment of the present application, as shown in FIG. 6, is a schematic diagram of the augmented reality device provided in the present application.
由图6可知,本申请实施例提供的增强现实装置6包括:It can be seen from FIG. 6 that the augmented reality device 6 provided by the embodiment of the present application includes:
获取模块601,用于获取混合现实眼镜的摄像头采集的真实场景中的第一图像,所述第一图像包括目标对象的第一属性信息,所述目标对象的第一属性信息与待叠加对象的第二属性信息之间存在第一映射关系,所述待叠加对象为所述增强现实眼镜的显示区域中的虚拟对象;The acquiring module 601 is configured to acquire a first image in a real scene collected by the camera of the mixed reality glasses, the first image including the first attribute information of the target object, the first attribute information of the target object and the object to be superimposed There is a first mapping relationship between the second attribute information, and the object to be superimposed is a virtual object in the display area of the augmented reality glasses;
确定模块602,用于基于所述混合现实眼镜的第一现实坐标、所述混合现实眼镜的第一虚拟坐标以及所述目标对象的第二现实坐标,确定所述目标对象在所述增强现实眼镜的显示区域中的第二虚拟坐标;The determining module 602 is configured to determine that the target object is in the augmented reality glasses based on the first reality coordinates of the mixed reality glasses, the first virtual coordinates of the mixed reality glasses, and the second reality coordinates of the target object. The second virtual coordinate in the display area of;
叠加模块603,用于基于所述第一映射关系,确定与所述第一属性信息相匹配的所述第二属性信息,在目标区域将所述第一属性信息与所述第二属性信息进行叠加,所述目标区域为所述第二虚拟坐标在所述增强现实眼镜的显示区域中对应的区域。The overlay module 603 is configured to determine, based on the first mapping relationship, the second attribute information that matches the first attribute information, and compare the first attribute information with the second attribute information in the target area Superimposed, the target area is an area corresponding to the second virtual coordinate in the display area of the augmented reality glasses.
在一种可选的实现方式中,确定模块602,包括:In an optional implementation manner, the determining module 602 includes:
第一获取单元,用于获取所述混合现实眼镜相对于所述第一坐标原点的第一现实坐标,以及获取所述混合现实眼镜相对于所述第二坐标原点的第一虚拟坐标;A first acquiring unit, configured to acquire first reality coordinates of the mixed reality glasses relative to the origin of the first coordinates, and acquire first virtual coordinates of the mixed reality glasses relative to the origin of the second coordinates;
第一确定单元,用于确定所述第一现实坐标与所述第一虚拟坐标之间的第一坐标转换关系式;A first determining unit, configured to determine a first coordinate conversion relational expression between the first real coordinate and the first virtual coordinate;
转换单元,用于根据所述第一坐标转换关系式,将所述第二现实坐标转换为所述第二虚拟坐标,得到所述目标对象在所述增强现实眼镜的显示区域中的所述第二虚拟坐标。The conversion unit is configured to convert the second real coordinates into the second virtual coordinates according to the first coordinate conversion relational expression to obtain the first position of the target object in the display area of the augmented reality glasses Two virtual coordinates.
在一种可选的实现方式中,所述混合现实眼镜的第一虚拟坐标为所述第二坐标原点;In an optional implementation manner, the first virtual coordinate of the mixed reality glasses is the origin of the second coordinate;
所述第一确定单元,包括:The first determining unit includes:
映射子单元,用于将所述第一现实坐标映射在所述第二坐标原点上,得到所述第一坐标原点与所述第二坐标原点之间的所述第一坐标转换关系式。The mapping subunit is configured to map the first actual coordinate to the second coordinate origin to obtain the first coordinate conversion relational expression between the first coordinate origin and the second coordinate origin.
在一种可选的实现方式中,确定模块602,包括:In an optional implementation manner, the determining module 602 includes:
第二确定单元,用于根据预设的坐标校准法则确定所述第一现实坐标与所述第一虚拟坐标之间的第二坐标转换关系式;A second determining unit, configured to determine a second coordinate conversion relational expression between the first real coordinate and the first virtual coordinate according to a preset coordinate calibration rule;
第三确定单元,用于根据所述第二坐标转换关系式,确定所述目标对象在所述增强现实眼镜的显示区域中的所述第二虚拟坐标。The third determining unit is configured to determine the second virtual coordinates of the target object in the display area of the augmented reality glasses according to the second coordinate conversion relational expression.
在一种可选的实现方式中,所述增强现实眼镜和所述目标对象均具有GPS定位系统,所述第一现实坐标为所述增强现实眼镜的第一GPS坐标,所述第二现实坐标为所述目标对象的第二GPS坐标。In an optional implementation manner, both the augmented reality glasses and the target object have a GPS positioning system, the first reality coordinates are the first GPS coordinates of the augmented reality glasses, and the second reality coordinates are Is the second GPS coordinate of the target object.
在一种可选的实现方式中,确定模块,包括:In an optional implementation manner, the determining module includes:
第二获取单元,用于获取所述增强现实眼镜的第一GPS坐标和所述目标对象的第二GPS坐标;A second acquiring unit, configured to acquire the first GPS coordinates of the augmented reality glasses and the second GPS coordinates of the target object;
映射单元,用于将所述第一GPS坐标映射为虚拟坐标原点;A mapping unit, configured to map the first GPS coordinates to a virtual coordinate origin;
计算单元,用于计算所述第一GPS坐标与所述第二GPS坐标之间的坐标转换关系;A calculation unit, configured to calculate a coordinate conversion relationship between the first GPS coordinate and the second GPS coordinate;
第四确定单元,用于基于所述虚拟坐标原点,所述第一GPS坐标与所述第二GPS坐标之间的坐标转换关系,确定所述目标对象的所述第二虚拟坐标。The fourth determining unit is configured to determine the second virtual coordinates of the target object based on the origin of the virtual coordinates and the coordinate conversion relationship between the first GPS coordinates and the second GPS coordinates.
如图7所示,是本申请实施例提供的增强现实眼镜的示意图。由图7可知,该实施例的增强现实眼镜7包括:处理器70、存储器71以及存储在所述存储器71中并可在所述处理器70上运行的计算机程序72,例如增强现实程序。所述处理器70执行所述计算机程序72时实现上述各个增强现实方法实施例中的步骤,例如图1所示的步骤101至103。或者,所述处理器70执行所述计算机程序72时实现上述增强现实装置实施例中各模块/单元的功能,例如图6所示模块601至603的功能。As shown in FIG. 7, it is a schematic diagram of augmented reality glasses provided by an embodiment of the present application. It can be seen from FIG. 7 that the augmented reality glasses 7 of this embodiment includes a processor 70, a memory 71, and a computer program 72 stored in the memory 71 and running on the processor 70, such as an augmented reality program. When the processor 70 executes the computer program 72, the steps in the foregoing embodiments of the augmented reality method are implemented, for example, steps 101 to 103 shown in FIG. 1. Alternatively, when the processor 70 executes the computer program 72, the function of each module/unit in the above-mentioned augmented reality device embodiment is realized, for example, the functions of the modules 601 to 603 shown in FIG. 6.
示例性的,所述计算机程序72可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器71中,并由所述处理器70执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程 序指令段,该指令段用于描述所述计算机程序72在所述增强现实眼镜7中的执行过程。例如,所述计算机程序72可以被分割成获取模块、确定模块、叠加模块(虚拟装置中的模块),各模块具体功能如下:Exemplarily, the computer program 72 may be divided into one or more modules/units, and the one or more modules/units are stored in the memory 71 and executed by the processor 70 to complete This application. The one or more modules/units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program 72 in the augmented reality glasses 7. For example, the computer program 72 may be divided into an acquisition module, a determination module, and an overlay module (a module in a virtual device), and the specific functions of each module are as follows:
获取模块,用于获取混合现实眼镜的摄像头采集的真实场景中的第一图像,所述第一图像包括目标对象的第一属性信息,所述目标对象的第一属性信息与待叠加对象的第二属性信息之间存在第一映射关系,所述待叠加对象为所述增强现实眼镜的显示区域中的虚拟对象;The acquisition module is configured to acquire a first image in a real scene collected by a camera of the mixed reality glasses, the first image including the first attribute information of the target object, the first attribute information of the target object and the first image of the object to be superimposed There is a first mapping relationship between the two attribute information, and the object to be superimposed is a virtual object in the display area of the augmented reality glasses;
确定模块,用于基于所述混合现实眼镜的第一现实坐标、所述混合现实眼镜的第一虚拟坐标以及所述目标对象的第二现实坐标,确定所述目标对象在所述摄像头预览画面中的第二虚拟坐标;A determining module, configured to determine that the target object is in the camera preview image based on the first reality coordinates of the mixed reality glasses, the first virtual coordinates of the mixed reality glasses, and the second reality coordinates of the target object The second virtual coordinate;
叠加模块,用于基于所述第一映射关系,确定与所述第一属性信息相匹配的所述第二属性信息,在目标区域将所述第一属性信息与所述第二属性信息进行叠加,所述目标区域为所述第二虚拟坐标在所述增强现实眼镜的显示区域中对应的区域。An overlay module, configured to determine the second attribute information that matches the first attribute information based on the first mapping relationship, and superimpose the first attribute information and the second attribute information in a target area The target area is an area corresponding to the second virtual coordinate in the display area of the augmented reality glasses.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of description, only the division of the above functional units and modules is used as an example. In practical applications, the above functions can be allocated to different functional units and modules as needed. Module completion, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist alone physically, or two or more units can be integrated into one unit. The above-mentioned integrated units can be hardware-based Formal realization can also be realized in the form of software functional units. In addition, the specific names of the functional units and modules are only used to facilitate distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working process of the units and modules in the foregoing system, reference may be made to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail or recorded in an embodiment, reference may be made to related descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现 。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。A person of ordinary skill in the art may realize that the units and algorithm steps of the examples described in the embodiments disclosed in this document can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed by hardware or software depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
在本申请所提供的实施例中,应该理解到,所揭露的装置/终端设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/终端设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed device/terminal device and method may be implemented in other ways. For example, the device/terminal device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units. Or components can be combined or integrated into another system, or some features can be omitted or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个通信单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple communication units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
所述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、电载波信号、电信信号以及 软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。If the integrated module/unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiments and methods, and can also be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the program is executed by the processor, it can implement the steps of the foregoing method embodiments. . Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate forms. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (Read-Only Memory, ROM) , Random Access Memory (RAM), electrical carrier signal, telecommunications signal, and software distribution media, etc. It should be noted that the content contained in the computer-readable medium can be appropriately added or deleted according to the requirements of the legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to the legislation and patent practice, the computer-readable medium Does not include electrical carrier signals and telecommunication signals.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, a person of ordinary skill in the art should understand that it can still implement the foregoing The technical solutions recorded in the examples are modified, or some of the technical features are equivalently replaced; these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the application, and should be included in Within the scope of protection of this application.

Claims (15)

  1. 一种增强现实方法,其特征在于,包括:An augmented reality method, characterized in that it includes:
    获取混合现实眼镜的摄像头采集的真实场景中的第一图像,所述第一图像包括目标对象的第一属性信息,所述目标对象的第一属性信息与待叠加对象的第二属性信息之间存在第一映射关系,所述待叠加对象为所述增强现实眼镜的显示区域中的虚拟对象;Obtain a first image in a real scene collected by the camera of the mixed reality glasses, the first image including the first attribute information of the target object, and the difference between the first attribute information of the target object and the second attribute information of the object to be superimposed There is a first mapping relationship, and the object to be superimposed is a virtual object in the display area of the augmented reality glasses;
    基于所述混合现实眼镜的第一现实坐标、所述混合现实眼镜的第一虚拟坐标以及所述目标对象的第二现实坐标,确定所述目标对象在所述摄像头预览画面中的第二虚拟坐标;Based on the first reality coordinates of the mixed reality glasses, the first virtual coordinates of the mixed reality glasses, and the second reality coordinates of the target object, the second virtual coordinates of the target object in the camera preview screen are determined ;
    其中,所述第一现实坐标与所述第二现实坐标均为相对于第一坐标原点的坐标,所述第一虚拟坐标与所述第二虚拟坐标均为相对于第二坐标原点的坐标;所述第一坐标原点为所述第一图像的坐标原点,所述第二坐标原点为所述增强现实眼镜的显示区域的坐标原点;Wherein, the first real coordinates and the second real coordinates are both coordinates relative to the origin of the first coordinates, and the first virtual coordinates and the second virtual coordinates are both coordinates relative to the origin of the second coordinates; The first coordinate origin is the coordinate origin of the first image, and the second coordinate origin is the coordinate origin of the display area of the augmented reality glasses;
    基于所述第一映射关系,确定与所述第一属性信息相匹配的所述第二属性信息,在目标区域将所述第一图像与所述第二属性信息进行叠加显示,得到增强之后的第二图像,所述目标区域为所述第二虚拟坐标在所述增强现实眼镜的显示区域中对应的区域。Based on the first mapping relationship, the second attribute information that matches the first attribute information is determined, and the first image and the second attribute information are superimposed and displayed in the target area to obtain the enhanced image In the second image, the target area is an area corresponding to the second virtual coordinate in the display area of the augmented reality glasses.
  2. 如权利要求1所述的增强现实方法,其特征在于,所述基于所述混合现实眼镜的第一现实坐标、所述混合现实眼镜的第一虚拟坐标以及所述目标对象的第二现实坐标,确定所述目标对象在所述增强现实眼镜的显示区域中的第二虚拟坐标,包括:8. The augmented reality method of claim 1, wherein the first reality coordinates based on the mixed reality glasses, the first virtual coordinates of the mixed reality glasses, and the second reality coordinates of the target object are based on, Determining the second virtual coordinates of the target object in the display area of the augmented reality glasses includes:
    获取所述混合现实眼镜相对于所述第一坐标原点的第一现实坐标,以及获取所述混合现实眼镜相对于所述第二坐标原点的第一虚拟坐标;Acquiring first reality coordinates of the mixed reality glasses relative to the origin of the first coordinates, and acquiring first virtual coordinates of the mixed reality glasses relative to the origin of the second coordinates;
    确定所述第一现实坐标与所述第一虚拟坐标之间的第一坐标转换关系式;Determining a first coordinate conversion relational expression between the first real coordinate and the first virtual coordinate;
    根据所述第一坐标转换关系式,将所述第二现实坐标转换为所述 第二虚拟坐标,得到所述目标对象在所述增强现实眼镜的显示区域中的所述第二虚拟坐标。According to the first coordinate conversion relational expression, the second real coordinates are converted into the second virtual coordinates to obtain the second virtual coordinates of the target object in the display area of the augmented reality glasses.
  3. 如权利要求2所述的增强现实方法,其特征在于,所述混合现实眼镜的第一虚拟坐标为所述第二坐标原点;3. The augmented reality method of claim 2, wherein the first virtual coordinate of the mixed reality glasses is the origin of the second coordinate;
    所述确定所述第一现实坐标与所述第一虚拟坐标之间的第一坐标转换关系式,包括:The determining the first coordinate conversion relational expression between the first real coordinate and the first virtual coordinate includes:
    将所述第一现实坐标映射在所述第二坐标原点上,得到所述第一坐标原点与所述第二坐标原点之间的所述第一坐标转换关系式。The first real coordinate is mapped to the second coordinate origin to obtain the first coordinate conversion relational expression between the first coordinate origin and the second coordinate origin.
  4. 如权利要求1所述的增强现实方法,其特征在于,基于所述混合现实眼镜的第一现实坐标、所述混合现实眼镜的第一虚拟坐标以及所述目标对象的第二现实坐标,确定所述目标对象在所述增强现实眼镜的显示区域中的第二虚拟坐标,包括:The augmented reality method according to claim 1, wherein the determination is based on the first reality coordinates of the mixed reality glasses, the first virtual coordinates of the mixed reality glasses, and the second reality coordinates of the target object. The second virtual coordinates of the target object in the display area of the augmented reality glasses include:
    根据预设的坐标校准法则确定所述第一现实坐标与所述第一虚拟坐标之间的第二坐标转换关系式;Determining a second coordinate conversion relationship between the first real coordinate and the first virtual coordinate according to a preset coordinate calibration rule;
    根据所述第二坐标转换关系式,确定所述目标对象在所述增强现实眼镜的显示区域中的所述第二虚拟坐标。According to the second coordinate conversion relational expression, the second virtual coordinate of the target object in the display area of the augmented reality glasses is determined.
  5. 如权利要求4所述的增强现实方法,其特征在于,所述增强现实眼镜和所述目标对象均具有GPS定位系统,所述第一现实坐标为所述增强现实眼镜的第一GPS坐标,所述第二现实坐标为所述目标对象的第二GPS坐标。The augmented reality method of claim 4, wherein the augmented reality glasses and the target object both have a GPS positioning system, and the first reality coordinates are the first GPS coordinates of the augmented reality glasses, so The second actual coordinate is the second GPS coordinate of the target object.
  6. 如权利要求5所述的增强现实方法,其特征在于,所述基于所述混合现实眼镜的第一现实坐标、所述混合现实眼镜的第一虚拟坐标以及所述目标对象的第二现实坐标,确定所述目标对象在所述摄像头预览画面中的第二虚拟坐标,包括:8. The augmented reality method of claim 5, wherein the first reality coordinates based on the mixed reality glasses, the first virtual coordinates of the mixed reality glasses, and the second reality coordinates of the target object are based on, Determining the second virtual coordinates of the target object in the camera preview image includes:
    获取所述增强现实眼镜的第一GPS坐标和所述目标对象的第二GPS坐标;Acquiring the first GPS coordinates of the augmented reality glasses and the second GPS coordinates of the target object;
    将所述第一GPS坐标映射为虚拟坐标原点;Mapping the first GPS coordinates to a virtual coordinate origin;
    计算所述第一GPS坐标与所述第二GPS坐标之间的坐标转换关系;Calculating a coordinate conversion relationship between the first GPS coordinate and the second GPS coordinate;
    基于所述虚拟坐标原点,所述第一GPS坐标与所述第二GPS坐标之间的坐标转换关系,确定所述目标对象的所述第二虚拟坐标。Based on the origin of the virtual coordinates and the coordinate conversion relationship between the first GPS coordinates and the second GPS coordinates, the second virtual coordinates of the target object are determined.
  7. 一种增强现实装置,其特征在于,包括:An augmented reality device, characterized in that it comprises:
    获取模块,用于获取混合现实眼镜的摄像头采集的真实场景中的第一图像,所述第一图像包括目标对象的第一属性信息,所述目标对象的第一属性信息与待叠加对象的第二属性信息之间存在第一映射关系,所述待叠加对象为所述增强现实眼镜的显示区域中的虚拟对象;The acquisition module is configured to acquire a first image in a real scene collected by a camera of the mixed reality glasses, the first image including the first attribute information of the target object, the first attribute information of the target object and the first image of the object to be superimposed There is a first mapping relationship between the two attribute information, and the object to be superimposed is a virtual object in the display area of the augmented reality glasses;
    确定模块,用于基于所述混合现实眼镜的第一现实坐标、所述混合现实眼镜的第一虚拟坐标以及所述目标对象的第二现实坐标,确定所述目标对象在所述摄像头预览画面中的第二虚拟坐标;A determining module, configured to determine that the target object is in the camera preview image based on the first reality coordinates of the mixed reality glasses, the first virtual coordinates of the mixed reality glasses, and the second reality coordinates of the target object The second virtual coordinate;
    叠加模块,用于基于所述第一映射关系,确定与所述第一属性信息相匹配的所述第二属性信息,在目标区域将所述第一属性信息与所述第二属性信息进行叠加,所述目标区域为所述第二虚拟坐标在所述增强现实眼镜的显示区域中对应的区域。An overlay module, configured to determine the second attribute information that matches the first attribute information based on the first mapping relationship, and superimpose the first attribute information and the second attribute information in a target area The target area is an area corresponding to the second virtual coordinate in the display area of the augmented reality glasses.
  8. 如权利要求7所述的增强现实装置,其特征在于,所述确定模块,包括:8. The augmented reality device of claim 7, wherein the determining module comprises:
    第一获取单元,用于获取所述混合现实眼镜相对于所述第一坐标原点的第一现实坐标,以及获取所述混合现实眼镜相对于所述第二坐标原点的第一虚拟坐标;A first acquiring unit, configured to acquire first reality coordinates of the mixed reality glasses relative to the origin of the first coordinates, and acquire first virtual coordinates of the mixed reality glasses relative to the origin of the second coordinates;
    第一确定单元,用于确定所述第一现实坐标与所述第一虚拟坐标之间的第一坐标转换关系式;A first determining unit, configured to determine a first coordinate conversion relational expression between the first real coordinate and the first virtual coordinate;
    转换单元,用于根据所述第一坐标转换关系式,将所述第二现实坐标转换为所述第二虚拟坐标,得到所述目标对象在所述增强现实眼镜的显示区域中的所述第二虚拟坐标。The conversion unit is configured to convert the second real coordinates into the second virtual coordinates according to the first coordinate conversion relational expression to obtain the first position of the target object in the display area of the augmented reality glasses Two virtual coordinates.
  9. 一种混合现实眼镜,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如下步骤:A mixed reality glasses comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the following steps when the processor executes the computer program:
    获取混合现实眼镜的摄像头采集的真实场景中的第一图像,所述第一图像包括目标对象的第一属性信息,所述目标对象的第一属性信息与待叠加对象的第二属性信息之间存在第一映射关系,所述待叠加对象为所述增强现实眼镜的显示区域中的虚拟对象;Obtain a first image in a real scene collected by the camera of the mixed reality glasses, the first image including the first attribute information of the target object, and the difference between the first attribute information of the target object and the second attribute information of the object to be superimposed There is a first mapping relationship, and the object to be superimposed is a virtual object in the display area of the augmented reality glasses;
    基于所述混合现实眼镜的第一现实坐标、所述混合现实眼镜的第一虚拟坐标以及所述目标对象的第二现实坐标,确定所述目标对象在所述摄像头预览画面中的第二虚拟坐标;Based on the first reality coordinates of the mixed reality glasses, the first virtual coordinates of the mixed reality glasses, and the second reality coordinates of the target object, the second virtual coordinates of the target object in the camera preview screen are determined ;
    其中,所述第一现实坐标与所述第二现实坐标均为相对于第一坐标原点的坐标,所述第一虚拟坐标与所述第二虚拟坐标均为相对于第二坐标原点的坐标;所述第一坐标原点为所述第一图像的坐标原点,所述第二坐标原点为所述增强现实眼镜的显示区域的坐标原点;Wherein, the first real coordinates and the second real coordinates are both coordinates relative to the origin of the first coordinates, and the first virtual coordinates and the second virtual coordinates are both coordinates relative to the origin of the second coordinates; The first coordinate origin is the coordinate origin of the first image, and the second coordinate origin is the coordinate origin of the display area of the augmented reality glasses;
    基于所述第一映射关系,确定与所述第一属性信息相匹配的所述第二属性信息,在目标区域将所述第一图像与所述第二属性信息进行叠加显示,得到增强之后的第二图像,所述目标区域为所述第二虚拟坐标在所述增强现实眼镜的显示区域中对应的区域。Based on the first mapping relationship, the second attribute information that matches the first attribute information is determined, and the first image and the second attribute information are superimposed and displayed in the target area to obtain the enhanced image In the second image, the target area is an area corresponding to the second virtual coordinate in the display area of the augmented reality glasses.
  10. 如权利要求9所述的计算设置,其特征在于,所述基于所述混合现实眼镜的第一现实坐标、所述混合现实眼镜的第一虚拟坐标以及所述目标对象的第二现实坐标,确定所述目标对象在所述增强现实眼镜的显示区域中的第二虚拟坐标,包括:The calculation setting according to claim 9, wherein the determining is based on the first reality coordinates of the mixed reality glasses, the first virtual coordinates of the mixed reality glasses, and the second reality coordinates of the target object The second virtual coordinates of the target object in the display area of the augmented reality glasses include:
    获取所述混合现实眼镜相对于所述第一坐标原点的第一现实坐标,以及获取所述混合现实眼镜相对于所述第二坐标原点的第一虚拟坐标;Acquiring first reality coordinates of the mixed reality glasses relative to the origin of the first coordinates, and acquiring first virtual coordinates of the mixed reality glasses relative to the origin of the second coordinates;
    确定所述第一现实坐标与所述第一虚拟坐标之间的第一坐标转换关系式;Determining a first coordinate conversion relational expression between the first real coordinate and the first virtual coordinate;
    根据所述第一坐标转换关系式,将所述第二现实坐标转换为所述第二虚拟坐标,得到所述目标对象在所述增强现实眼镜的显示区域中的所述第二虚拟坐标。According to the first coordinate conversion relational expression, the second real coordinates are converted into the second virtual coordinates to obtain the second virtual coordinates of the target object in the display area of the augmented reality glasses.
  11. 如权利要求10所述的计算设备,其特征在于,所述混合现实眼镜的第一虚拟坐标为所述第二坐标原点;The computing device of claim 10, wherein the first virtual coordinate of the mixed reality glasses is the origin of the second coordinate;
    所述确定所述第一现实坐标与所述第一虚拟坐标之间的第一坐标转换关系式,包括:The determining the first coordinate conversion relational expression between the first real coordinate and the first virtual coordinate includes:
    将所述第一现实坐标映射在所述第二坐标原点上,得到所述第一坐标原点与所述第二坐标原点之间的所述第一坐标转换关系式。The first real coordinate is mapped to the second coordinate origin to obtain the first coordinate conversion relational expression between the first coordinate origin and the second coordinate origin.
  12. 如权利要求9所述的计算设备,其特征在于,基于所述混合现实眼镜的第一现实坐标、所述混合现实眼镜的第一虚拟坐标以及所述目标对象的第二现实坐标,确定所述目标对象在所述增强现实眼镜的显示区域中的第二虚拟坐标,包括:The computing device according to claim 9, wherein the determination of the first reality coordinates of the mixed reality glasses, the first virtual coordinates of the mixed reality glasses, and the second reality coordinates of the target object The second virtual coordinates of the target object in the display area of the augmented reality glasses include:
    根据预设的坐标校准法则确定所述第一现实坐标与所述第一虚拟坐标之间的第二坐标转换关系式;Determining a second coordinate conversion relationship between the first real coordinate and the first virtual coordinate according to a preset coordinate calibration rule;
    根据所述第二坐标转换关系式,确定所述目标对象在所述增强现实眼镜的显示区域中的所述第二虚拟坐标。According to the second coordinate conversion relational expression, the second virtual coordinate of the target object in the display area of the augmented reality glasses is determined.
  13. 如权利要求12所述的计算设备,其特征在于,所述增强现实眼镜和所述目标对象均具有GPS定位系统,所述第一现实坐标为所述增强现实眼镜的第一GPS坐标,所述第二现实坐标为所述目标对象的第二GPS坐标。The computing device of claim 12, wherein the augmented reality glasses and the target object both have a GPS positioning system, the first reality coordinates are the first GPS coordinates of the augmented reality glasses, and the The second actual coordinate is the second GPS coordinate of the target object.
  14. 如权利要求13所述的计算设备,其特征在于,所述基于所述混合现实眼镜的第一现实坐标、所述混合现实眼镜的第一虚拟坐标以及所述目标对象的第二现实坐标,确定所述目标对象在所述摄像头预览画面中的第二虚拟坐标,包括:The computing device according to claim 13, wherein the determining is based on the first reality coordinates of the mixed reality glasses, the first virtual coordinates of the mixed reality glasses, and the second reality coordinates of the target object The second virtual coordinates of the target object in the camera preview image include:
    获取所述增强现实眼镜的第一GPS坐标和所述目标对象的第二GPS坐标;Acquiring the first GPS coordinates of the augmented reality glasses and the second GPS coordinates of the target object;
    将所述第一GPS坐标映射为虚拟坐标原点;Mapping the first GPS coordinates to a virtual coordinate origin;
    计算所述第一GPS坐标与所述第二GPS坐标之间的坐标转换关系;Calculating a coordinate conversion relationship between the first GPS coordinate and the second GPS coordinate;
    基于所述虚拟坐标原点,所述第一GPS坐标与所述第二GPS坐标之间的坐标转换关系,确定所述目标对象的所述第二虚拟坐标。Based on the origin of the virtual coordinates and the coordinate conversion relationship between the first GPS coordinates and the second GPS coordinates, the second virtual coordinates of the target object are determined.
  15. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至7任一项所述增强现实方法的步骤。A computer-readable storage medium storing a computer program, wherein the computer program is executed by a processor to implement the steps of the augmented reality method according to any one of claims 1 to 7 .
PCT/CN2019/111692 2019-10-17 2019-10-17 Augmented reality scene implementation method, apparatus, device, and storage medium WO2021072702A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201980002020.3A CN110914873B (en) 2019-10-17 2019-10-17 Augmented reality method, device, mixed reality glasses and storage medium
PCT/CN2019/111692 WO2021072702A1 (en) 2019-10-17 2019-10-17 Augmented reality scene implementation method, apparatus, device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/111692 WO2021072702A1 (en) 2019-10-17 2019-10-17 Augmented reality scene implementation method, apparatus, device, and storage medium

Publications (1)

Publication Number Publication Date
WO2021072702A1 true WO2021072702A1 (en) 2021-04-22

Family

ID=69814305

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/111692 WO2021072702A1 (en) 2019-10-17 2019-10-17 Augmented reality scene implementation method, apparatus, device, and storage medium

Country Status (2)

Country Link
CN (1) CN110914873B (en)
WO (1) WO2021072702A1 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111162840B (en) * 2020-04-02 2020-09-29 北京外号信息技术有限公司 Method and system for setting virtual objects around optical communication device
CN111651055A (en) * 2020-06-09 2020-09-11 浙江商汤科技开发有限公司 City virtual sand table display method and device, computer equipment and storage medium
CN111651050A (en) * 2020-06-09 2020-09-11 浙江商汤科技开发有限公司 Method and device for displaying urban virtual sand table, computer equipment and storage medium
CN111653175B (en) * 2020-06-09 2022-08-16 浙江商汤科技开发有限公司 Virtual sand table display method and device
CN111857341B (en) * 2020-06-10 2023-06-13 浙江商汤科技开发有限公司 Display control method and device
WO2022027304A1 (en) * 2020-08-05 2022-02-10 华为技术有限公司 Testing method and apparatus for autonomous vehicle
CN114125415A (en) * 2020-08-28 2022-03-01 奥迪股份公司 System, method, and storage medium for presenting abnormal parts of vehicle through augmented reality
CN112165604A (en) * 2020-09-10 2021-01-01 珠海格力电器股份有限公司 AR-based method and apparatus for protecting women
CN112710608B (en) * 2020-12-16 2023-06-23 深圳晶泰科技有限公司 Experimental observation method and system
CN113842227B (en) * 2021-09-03 2024-04-05 上海涞秋医疗科技有限责任公司 Medical auxiliary three-dimensional model positioning and matching method, system, equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103500452A (en) * 2013-10-12 2014-01-08 杭州师范大学 Scenic spot scenery moving augmented reality method based on space relationship and image analysis
CN104102678A (en) * 2013-04-15 2014-10-15 腾讯科技(深圳)有限公司 Method and device for realizing augmented reality
US20150310279A1 (en) * 2014-04-25 2015-10-29 Huntington Ingalls, Inc. Augmented Reality Display of Dynamic Target Object Information
CN108154558A (en) * 2017-11-21 2018-06-12 中电海康集团有限公司 A kind of augmented reality methods, devices and systems
CN108958462A (en) * 2017-05-25 2018-12-07 阿里巴巴集团控股有限公司 A kind of methods of exhibiting and device of virtual objects
CN109445112A (en) * 2019-01-05 2019-03-08 西安维度视界科技有限公司 A kind of AR glasses and the augmented reality method based on AR glasses

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104102678A (en) * 2013-04-15 2014-10-15 腾讯科技(深圳)有限公司 Method and device for realizing augmented reality
CN103500452A (en) * 2013-10-12 2014-01-08 杭州师范大学 Scenic spot scenery moving augmented reality method based on space relationship and image analysis
US20150310279A1 (en) * 2014-04-25 2015-10-29 Huntington Ingalls, Inc. Augmented Reality Display of Dynamic Target Object Information
CN108958462A (en) * 2017-05-25 2018-12-07 阿里巴巴集团控股有限公司 A kind of methods of exhibiting and device of virtual objects
CN108154558A (en) * 2017-11-21 2018-06-12 中电海康集团有限公司 A kind of augmented reality methods, devices and systems
CN109445112A (en) * 2019-01-05 2019-03-08 西安维度视界科技有限公司 A kind of AR glasses and the augmented reality method based on AR glasses

Also Published As

Publication number Publication date
CN110914873A (en) 2020-03-24
CN110914873B (en) 2023-02-14

Similar Documents

Publication Publication Date Title
WO2021072702A1 (en) Augmented reality scene implementation method, apparatus, device, and storage medium
WO2020207191A1 (en) Method and apparatus for determining occluded area of virtual object, and terminal device
US11538229B2 (en) Image processing method and apparatus, electronic device, and computer-readable storage medium
WO2018119889A1 (en) Three-dimensional scene positioning method and device
Zollmann et al. Visualization techniques in augmented reality: A taxonomy, methods and patterns
US8933965B2 (en) Method for calculating light source information and generating images combining real and virtual images
CN102903144A (en) Cloud computing based interactive augmented reality system implementation method
CN110866977A (en) Augmented reality processing method, device and system, storage medium and electronic equipment
JP2023504608A (en) Display method, device, device, medium and program in augmented reality scene
CN112562056A (en) Control method, device, medium and equipment for virtual light in virtual studio
CN107995481B (en) A kind of display methods and device of mixed reality
KR20190061783A (en) Method and program for generating virtual reality contents
CN113838217A (en) Information display method and device, electronic equipment and readable storage medium
JP7150894B2 (en) AR scene image processing method and device, electronic device and storage medium
See et al. Virtual reality 360 interactive panorama reproduction obstacles and issues
CN109816791B (en) Method and apparatus for generating information
CN111932446B (en) Method and device for constructing three-dimensional panoramic map
CN107707879A (en) A kind of augmented reality method and system of distributed scene target identification
CN110363860B (en) 3D model reconstruction method and device and electronic equipment
CN110741327A (en) Clay toy system based on augmented reality and digital image processing and method thereof
US10713836B2 (en) Simulating lenses
CN114004953A (en) Method and system for realizing reality enhancement picture and cloud server
CN109887078A (en) Sky method for drafting, device, equipment and medium
JP7214926B1 (en) Image processing method, device, electronic device and computer-readable storage medium
CN109167992A (en) A kind of image processing method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19948911

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19948911

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 21.09.2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19948911

Country of ref document: EP

Kind code of ref document: A1