[go: up one dir, main page]

CN110349271B - Lens color adjustment method, device, storage medium and augmented reality equipment - Google Patents

Lens color adjustment method, device, storage medium and augmented reality equipment Download PDF

Info

Publication number
CN110349271B
CN110349271B CN201910624830.4A CN201910624830A CN110349271B CN 110349271 B CN110349271 B CN 110349271B CN 201910624830 A CN201910624830 A CN 201910624830A CN 110349271 B CN110349271 B CN 110349271B
Authority
CN
China
Prior art keywords
augmented reality
scene
lens
image
determining
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.)
Active
Application number
CN201910624830.4A
Other languages
Chinese (zh)
Other versions
CN110349271A (en
Inventor
李华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910624830.4A priority Critical patent/CN110349271B/en
Publication of CN110349271A publication Critical patent/CN110349271A/en
Application granted granted Critical
Publication of CN110349271B publication Critical patent/CN110349271B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B27/00Optical systems or apparatus not provided for by any of the groups G02B1/00 - G02B26/00, G02B30/00
    • G02B27/01Head-up displays
    • G02B27/017Head mounted
    • G02B27/0172Head mounted characterised by optical features
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • G06F3/013Eye tracking input arrangements
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/006Mixed reality
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/01Indexing scheme relating to G06F3/01
    • G06F2203/012Walk-in-place systems for allowing a user to walk in a virtual environment while constraining him to a given position in the physical environment
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2219/00Indexing scheme for manipulating 3D models or images for computer graphics
    • G06T2219/20Indexing scheme for editing of 3D models
    • G06T2219/2012Colour editing, changing, or manipulating; Use of colour codes

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Graphics (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Architecture (AREA)
  • Human Computer Interaction (AREA)
  • Optics & Photonics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the application discloses a lens color adjusting method, a device, a storage medium and augmented reality equipment, which are applied to the augmented reality equipment and comprise the following steps: determining a scene of a current augmented reality image; determining a lens color that matches a scene of the augmented reality image; and adjusting the lens in the lens augmented reality device according to the lens color. By adopting the technical scheme, the embodiment of the application determines the color of the lens in the augmented reality equipment by determining the scene of the augmented reality image seen by human eyes, adjusts the color of the lens, enables the color of the lens to be matched with the scene of the augmented reality image, improves the reality of the augmented reality image, and improves the immersion of the target object to the augmented reality image.

Description

透镜颜色调节方法、装置、存储介质及增强现实设备Lens color adjustment method, device, storage medium and augmented reality device

技术领域Technical field

本申请实施例涉及增强现实设备技术领域,尤其涉及一种透镜颜色调节方法、装换、存储介质及增强现实设备。The embodiments of the present application relate to the technical field of augmented reality equipment, and in particular to a lens color adjustment method, replacement, storage medium and augmented reality equipment.

背景技术Background technique

随着增强现实技术的不断发展,诸如增强现实设备等的头戴增强现实设备被用户广泛接受和应用。With the continuous development of augmented reality technology, head-mounted augmented reality devices such as augmented reality devices are widely accepted and used by users.

增强现实设备包括虚拟图像显示器和透光的透镜,虚拟图像显示器生成虚拟图像,虚拟图像的光线和透过透镜的环境光线同时进入人眼,使得佩戴增强现实设备的用户不仅能够看到现实的事物,还能够看到虚拟的图像,在人眼中形成增强现实图像。The augmented reality device includes a virtual image display and a light-transmitting lens. The virtual image display generates a virtual image. The light of the virtual image and the ambient light passing through the lens enter the human eye at the same time, so that the user wearing the augmented reality device can not only see real things. , you can also see virtual images, forming augmented reality images in human eyes.

目前的增强现实设备的透镜一般为固定颜色的透明或半透明透镜,一般外界环境中物体反射的光线通过透镜进入人眼,不受其他因素的影响,例如虚拟图像等变化时,进入人眼的现实物体的光线不变,无法自适应的调节人眼中形成的增强现实图像。The lenses of current augmented reality devices are generally fixed-color transparent or semi-transparent lenses. Generally, the light reflected by objects in the external environment enters the human eye through the lens and is not affected by other factors, such as changes in the virtual image. The light of real objects does not change, and the augmented reality image formed in the human eye cannot be adaptively adjusted.

发明内容Contents of the invention

本申请实施例提供一种透镜颜色调节方法、装置、存储介质及增强现实设备,提高增强现实设备的智能化,提高增强现实图像的可变性。Embodiments of the present application provide a lens color adjustment method, device, storage medium, and augmented reality equipment to improve the intelligence of the augmented reality equipment and improve the variability of the augmented reality image.

第一方面,本申请实施例提供了一种透镜颜色调节方法,应用于增强现实设备,包括:In the first aspect, embodiments of the present application provide a lens color adjustment method applied to augmented reality devices, including:

确定当前增强现实图像的场景;Determine the scene of the current augmented reality image;

确定与所述增强现实图像的场景相匹配的透镜颜色;determining a lens color that matches the scene of the augmented reality image;

根据所述透镜颜色调节所述透镜增强现实设备中透镜。Adjust the lens in the lens augmented reality device according to the lens color.

第二方面,本申请实施例提供了一种透镜颜色调节装置,包括:In a second aspect, embodiments of the present application provide a lens color adjustment device, including:

场景确定模块,用于确定当前增强现实图像的场景;Scene determination module, used to determine the scene of the current augmented reality image;

透镜颜色确定模块,用于确定与所述增强现实图像的场景相匹配的透镜颜色;a lens color determination module configured to determine a lens color that matches the scene of the augmented reality image;

透镜调节模块,用于根据所述透镜颜色调节所述透镜增强现实设备中透镜。A lens adjustment module, used to adjust the lens in the lens augmented reality device according to the lens color.

第三方面,本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本申请实施例所述的透镜颜色调节方法。In a third aspect, embodiments of the present application provide a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the lens color adjustment method as described in the embodiments of the present application is implemented.

第四方面,本申请实施例提供了一种增强现实设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如本申请实施例所述的透镜颜色调节方法。In the fourth aspect, embodiments of the present application provide an augmented reality device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following is implemented: The lens color adjustment method described in the application embodiment.

本申请实施例中提供的技术方案,通过确定人眼看到的增强现实图像的场景,确定增强现实设备中透镜的颜色,并调节透镜的颜色,使得透镜颜色与增强现实图像的场景相匹配,提高增强现实图像的真实性,以及目标对象对增强现实图像的沉浸感。The technical solution provided in the embodiment of the present application determines the scene of the augmented reality image seen by the human eye, determines the color of the lens in the augmented reality device, and adjusts the color of the lens so that the color of the lens matches the scene of the augmented reality image, thereby improving The authenticity of the augmented reality image, and the target subject's immersion in the augmented reality image.

附图说明Description of the drawings

图1A是本申请实施例提供的一种增强现实眼镜的结构示意图;Figure 1A is a schematic structural diagram of augmented reality glasses provided by an embodiment of the present application;

图1B是本申请实施例提供的增强现实眼镜的侧边框及内部部件剖视结构示意图;Figure 1B is a schematic cross-sectional structural diagram of the side frame and internal components of the augmented reality glasses provided by an embodiment of the present application;

图2为本申请实施例提供的一种透镜颜色调节方法流程示意图;Figure 2 is a schematic flow chart of a lens color adjustment method provided by an embodiment of the present application;

图3为本申请实施例提供的另一种透镜颜色调节方法的流程示意图;Figure 3 is a schematic flow chart of another lens color adjustment method provided by an embodiment of the present application;

图4为本申请实施例提供的另一种透镜颜色调节方法的流程示意图;Figure 4 is a schematic flow chart of another lens color adjustment method provided by an embodiment of the present application;

图5为本申请实施例提供的一种透镜颜色调节装置的结构示意图;Figure 5 is a schematic structural diagram of a lens color adjustment device provided by an embodiment of the present application;

图6为本申请实施例提供的一种增强现实设备的结构示意图;Figure 6 is a schematic structural diagram of an augmented reality device provided by an embodiment of the present application;

图7为本申请实施例提供的另一种增强现实设备的结构示意图。Figure 7 is a schematic structural diagram of another augmented reality device provided by an embodiment of the present application.

具体实施方式Detailed ways

下面结合附图并通过具体实施方式来进一步说明本申请的技术方案。可以理解的是,此处所描述的具体实施例仅仅用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。The technical solution of the present application will be further described below with reference to the accompanying drawings and through specific implementation methods. It can be understood that the specific embodiments described here are only used to explain the present application, but not to limit the present application. In addition, it should be noted that, for convenience of description, only some but not all structures related to the present application are shown in the drawings.

在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各步骤描述成顺序的处理,但是其中的许多步骤可以被并行地、并发地或者同时实施。此外,各步骤的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。Before discussing example embodiments in more detail, it should be mentioned that some example embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts depict steps as a sequential process, many of the steps may be performed in parallel, concurrently, or simultaneously. Additionally, the order of steps can be rearranged. The process may be terminated when its operation is completed, but may also have additional steps not included in the figures. The processing may correspond to a method, function, procedure, subroutine, subroutine, or the like.

本申请提供的增强现实设备包括但不限于增强现实眼镜、具有增强现实功能的手机、平板电脑等电子设备。以头戴增强现实设备(增强现实眼镜)为例,示例性的,参见图1A,图1A是本申请实施例提供的一种增强现实眼镜101的结构示意图,其中,增强现实眼镜101包括镜架104、左眼镜片、右眼镜片,分别设置在左眼镜片、右眼镜片上的左眼衍射整合器102、右眼衍射整合器103、处理单元105、现实信息采集器107、操作部件106,其中,左眼衍射整合器102和右眼衍射整合器103均为具有表面浮雕衍射光栅的紫外光固话/热固化树脂层构成,用于将虚拟图像反射入人眼。增强现实眼镜101还包括微显示器,微显示器可以是设置在镜腿上,用于输出虚拟图像,可以是与处理单元105电连接。现实信息采集器107、操作部件106分别与处理单元105电连接连接,其中,操作部件106可用于接收用户对增强现实眼镜101的输入操作,并将输入操作发送至处理单元105,操作部件106可以是由一个或多个按键组成。处理单元105用于接受操作部件106传输的操作指令,还用于控制现实信息采集器107获取现实信息,处理单元105还可以是通过无线传输等方式与其他设备108无线连接,其他设备108可以是但不限于手机、平板电脑等的移动设备,还可以是计算机、服务器等设备。The augmented reality devices provided by this application include but are not limited to augmented reality glasses, mobile phones with augmented reality functions, tablet computers and other electronic devices. Taking a head-mounted augmented reality device (augmented reality glasses) as an example, see FIG. 1A for example. FIG. 1A is a schematic structural diagram of an augmented reality glasses 101 provided by an embodiment of the present application. The augmented reality glasses 101 include a frame. 104. Left-eye lens and right-eye lens, left-eye diffraction integrator 102, right-eye diffraction integrator 103, processing unit 105, reality information collector 107, and operating component 106 respectively provided on the left-eye lens and right-eye lens, wherein , the left eye diffraction integrator 102 and the right eye diffraction integrator 103 are both composed of ultraviolet light fixed/thermosetting resin layers with surface relief diffraction gratings for reflecting virtual images into the human eye. The augmented reality glasses 101 also include a microdisplay, which may be disposed on the temples for outputting virtual images, and may be electrically connected to the processing unit 105 . The reality information collector 107 and the operating component 106 are electrically connected to the processing unit 105 respectively. The operating component 106 can be used to receive the user's input operation on the augmented reality glasses 101 and send the input operation to the processing unit 105. The operating component 106 can It consists of one or more keys. The processing unit 105 is used to accept operating instructions transmitted by the operating component 106, and is also used to control the real information collector 107 to obtain real information. The processing unit 105 can also be wirelessly connected to other devices 108 through wireless transmission, etc. The other devices 108 can be But it is not limited to mobile devices such as mobile phones and tablets, and can also be computers, servers and other devices.

示例性的,参见图1B,图1B是本申请实施例提供的增强现实眼镜的侧边框及内部部件剖视结构示意图。图1B中,虚线表示由微显示器109发射的虚拟光信号,透过镜片的实线为现实光信号,虚拟光信号和现实光信号同时摄入目标瞳孔,在目标瞳孔中形成增强现实图像。其中,现实光信号为携带现实物体信息的光信息后,虚拟光信号为电信号转换得到的,携带虚拟图像信息的光信号,目标瞳孔可以是佩戴或者使用增强现实设备的用户的瞳孔。For example, see FIG. 1B , which is a schematic cross-sectional structural diagram of the side frame and internal components of the augmented reality glasses provided by an embodiment of the present application. In Figure 1B, the dotted line represents the virtual light signal emitted by the microdisplay 109, and the solid line passing through the lens represents the real light signal. The virtual light signal and the real light signal are simultaneously absorbed into the target pupil, forming an augmented reality image in the target pupil. Among them, after the real light signal is the light information carrying the real object information, the virtual light signal is the light signal carrying the virtual image information obtained by converting the electrical signal. The target pupil can be the pupil of the user who wears or uses the augmented reality device.

图2为本申请实施例提供的一种透镜颜色调节方法的流程示意图,该方法可以由透镜颜色调节装置执行,其中该装置可由软件和/或硬件实现,一般可集成在增强现实设备中。如图2所示,该方法包括:Figure 2 is a schematic flowchart of a lens color adjustment method provided by an embodiment of the present application. The method can be executed by a lens color adjustment device, where the device can be implemented by software and/or hardware, and can generally be integrated in an augmented reality device. As shown in Figure 2, the method includes:

步骤201、确定当前增强现实图像的场景。Step 201: Determine the scene of the current augmented reality image.

步骤202、确定与所述增强现实图像的场景相匹配的透镜颜色。Step 202: Determine a lens color that matches the scene of the augmented reality image.

步骤203、根据所述透镜颜色调节所述透镜增强现实设备中透镜。Step 203: Adjust the lens in the lens augmented reality device according to the lens color.

其中,增强现实图像为现实图像和虚拟图像共同形成的图像,同时包括目标对象视线范围内的现实物体,还包括进入目标对象瞳孔的虚拟图像中携带的虚拟物体。本实施例中,确定在人眼中形成的增强现实图像的场景,可以是根据目标对象视线范围内的现实物体和虚拟图像中的物体共同确定,具体的,可以是提取虚拟图像中的物体,以及获取目标对象视线范围内的现实物体,基于虚拟图像中的物体和现实物体,和/或,虚拟图像中的物体和现实物体相对位置关系确定增强现实图像的场景。示例性的,增强现实图像的场景可以包括但不限于浪漫场景、温馨场景、悲伤场景、明媚场景、昏暗场景等,增强现实图像的场景可以是预先设置的,还可以根据用户需要进行增加、删除和修改。Among them, the augmented reality image is an image formed by a real image and a virtual image, and includes real objects within the line of sight of the target object, as well as virtual objects carried in the virtual image that enters the pupil of the target object. In this embodiment, determining the scene of the augmented reality image formed in the human eye can be determined based on the real objects within the sight range of the target object and the objects in the virtual image. Specifically, it can be by extracting the objects in the virtual image, and Obtain real objects within the line of sight of the target object, and determine the scene of the augmented reality image based on the relative positional relationship between the objects in the virtual image and the real objects, and/or the objects in the virtual image and the real objects. For example, the scenes of the augmented reality images may include but are not limited to romantic scenes, warm scenes, sad scenes, bright scenes, dim scenes, etc. The scenes of the augmented reality images may be preset, and may also be added or deleted according to user needs. and modifications.

在上述实施例的基础上,确定与所述增强现实图像的场景相匹配的透镜颜色,包括:根据场景与颜色的映射关系,以及所述增强现实图像的场景确定透镜颜色。增强现实设备中存储有场景与颜色的映射关系,在确定增强现实图像的场景后,在场景与颜色的映射关系中确定与增强现实图像的场景相对应的透镜颜色。其中,场景与颜色的映射关系可以是一对一的映射关系,还可以是多个场景与一个透镜颜色相对应。Based on the above embodiments, determining the lens color that matches the scene of the augmented reality image includes: determining the lens color according to the mapping relationship between the scene and the color and the scene of the augmented reality image. The augmented reality device stores a mapping relationship between scenes and colors. After determining the scene of the augmented reality image, the lens color corresponding to the scene of the augmented reality image is determined in the mapping relationship between the scene and color. The mapping relationship between scenes and colors can be a one-to-one mapping relationship, or multiple scenes can correspond to one lens color.

本实施例中,增强现实设备配置的透镜为电致变色透镜,该透镜与增强现实设备的供电模块电连接,可根据供电模块提供的电压调节透镜的颜色。可选的,透镜依次包括玻璃衬底、透明导电层、电致变色层、离子导体层、离子贮藏层、透明导电层、玻璃衬底,其中,透明导电层可以是与供电模块电连接。在两个透明导电层之间施加电压时,电致变色层在电压作用下发生氧化还原反应,颜色发生变化;离子导体层由特殊的导电材料组成,例如可以包括高氯酸锂、高氯酸纳等的溶液或固体电解质材料;离子贮藏层在电致变色材料发生氧化还原反应时起到储存相应的反离子,保持整个体系电荷平衡的作用,离子贮藏层也可以为一种与前面一层电致变色材料变色性能相反的电致变色材料,这样可以起到颜色叠加或互补的作用。示例性的,电致变色层的材料为阳极氧化变色材料,离子贮藏层可采用阴极还原变色材料。In this embodiment, the lens configured in the augmented reality device is an electrochromic lens. The lens is electrically connected to the power supply module of the augmented reality device, and the color of the lens can be adjusted according to the voltage provided by the power supply module. Optionally, the lens includes a glass substrate, a transparent conductive layer, an electrochromic layer, an ion conductor layer, an ion storage layer, a transparent conductive layer, and a glass substrate in sequence, wherein the transparent conductive layer may be electrically connected to the power supply module. When a voltage is applied between the two transparent conductive layers, the electrochromic layer undergoes an oxidation-reduction reaction under the action of the voltage, and the color changes; the ion conductor layer is composed of special conductive materials, such as lithium perchlorate, perchloric acid Solution or solid electrolyte material such as sodium; the ion storage layer plays the role of storing corresponding counter ions when the redox reaction of the electrochromic material occurs, maintaining the charge balance of the entire system. The ion storage layer can also be a kind of layer similar to the previous layer Electrochromic materials are electrochromic materials with opposite color-changing properties, which can play a role of color superposition or complementation. For example, the material of the electrochromic layer is an anodized color-changing material, and the ion storage layer can use a cathodic reduction color-changing material.

其中,增强现实设备配置的透镜可根据施加的电压调节透镜的颜色,即不同的电压施加在透镜时,透镜颜色不同。可选的,根据所述透镜颜色调节所述透镜增强现实设备中透镜,包括:根据所述透镜颜色确定施加在所述透镜上的电压,将确定的电压施加到透镜。示例性的,若增强现实图像包括太阳、树木、花朵时,可确定增强现实图像的场景为明媚场景,透镜颜色可以是透明或暖色;若增强现实图像中包括挥手离别的人时,可确定增强现实图像的场景为送别场景,透镜颜色可以是灰色;当增强现实图像包括微笑的男人和女人时,可确定增强现实图像的场景为浪漫场景,透镜颜色可以是粉色;当增强现实图像包括正在玩耍的家长和儿童时,可确定增强现实图像的场景为温馨场景,透镜颜色可以是淡粉色。Among them, the lens configured in the augmented reality device can adjust the color of the lens according to the applied voltage, that is, when different voltages are applied to the lens, the color of the lens will be different. Optionally, adjusting the lens in the lens augmented reality device according to the lens color includes: determining a voltage to be applied to the lens according to the lens color, and applying the determined voltage to the lens. For example, if the augmented reality image includes the sun, trees, and flowers, it can be determined that the scene of the augmented reality image is a bright scene, and the lens color can be transparent or warm; if the augmented reality image includes people waving goodbye, it can be determined that the augmented reality image contains people waving goodbye. The scene of the real image is a farewell scene, and the lens color can be gray; when the augmented reality image includes a smiling man and woman, it can be determined that the scene of the augmented reality image is a romantic scene, and the lens color can be pink; when the augmented reality image includes playing For parents and children, the scene of the augmented reality image can be determined to be a warm scene, and the lens color can be light pink.

本实施例中,通过调节透镜的颜色,使得透镜颜色与增强现实图像相匹配,避免现实光线与增强现实图像的场景相矛盾的问题,以提高用户对增强现实图像的沉浸感。示例性的,当虚拟图像中包括雨滴时,若现实环境中阳光明媚,则形成增强现实图像同时包括明媚的阳光和雨滴,增强现实图像与常规理论相矛盾。根据增强现实图像中的物体(雨滴)确定增强现实图像的场景为下雨场景,可确定增强现实设备的透镜颜色为灰度或者淡蓝色,基于透镜对投射入人眼的现实光线进行处理,使得在人眼中形成的增强现实图像的光线为灰色或者淡蓝色,符合下雨场景。In this embodiment, by adjusting the color of the lens so that the color of the lens matches the augmented reality image, the problem of conflict between the real light and the scene of the augmented reality image is avoided, thereby improving the user's immersion in the augmented reality image. For example, when the virtual image includes raindrops and the sun is shining brightly in the real environment, an augmented reality image will be formed that includes both bright sunshine and raindrops. The augmented reality image contradicts conventional theory. According to the objects (raindrops) in the augmented reality image, it is determined that the scene of the augmented reality image is a raining scene. The lens color of the augmented reality device can be determined to be grayscale or light blue. The real-life light projected into the human eye is processed based on the lens. The light of the augmented reality image formed in the human eye is gray or light blue, which is consistent with the rain scene.

本申请实施例中提供的透镜颜色调节方法,通过确定人眼看到的增强现实图像的场景,确定增强现实设备中透镜的颜色,并调节透镜的颜色,使得透镜颜色与增强现实图像的场景相匹配,提高增强现实图像的真实性,以及目标对象对增强现实图像的沉浸感。The lens color adjustment method provided in the embodiment of the present application determines the color of the lens in the augmented reality device by determining the scene of the augmented reality image seen by the human eye, and adjusts the color of the lens so that the color of the lens matches the scene of the augmented reality image. , improve the authenticity of augmented reality images, and the target object’s immersion in augmented reality images.

在上述实施例的基础上,透镜颜色调节还包括:采集环境光强度,根据所述环境光强度调节所述增强现实设备中透镜的透光率。当环境光强度较大时,易对人眼形成刺激,对人眼造成损伤,通过增强现实设备中配置的感光元件采集环境光强度,其中,现实信息采集器107中可以是包括感光元件。当环境光强度大于预设值时,降低透镜的透光率,其中,透镜的透光率与环境光强度负相关,即环境光强度越大,透镜的透光率越小,以保证透射至人眼的光强度在人眼的可接受范围内,降低强光对人眼的伤害,使得用户在强光下可观看增强现实图像。Based on the above embodiments, lens color adjustment also includes: collecting ambient light intensity, and adjusting the light transmittance of the lens in the augmented reality device according to the ambient light intensity. When the ambient light intensity is high, it is easy to irritate the human eyes and cause damage to the human eyes. The ambient light intensity is collected through photosensitive elements configured in the augmented reality device, where the reality information collector 107 may include photosensitive elements. When the ambient light intensity is greater than the preset value, the transmittance of the lens is reduced. The transmittance of the lens is negatively related to the ambient light intensity. That is, the greater the ambient light intensity, the smaller the transmittance of the lens to ensure that the transmittance is The light intensity of the human eye is within the acceptable range of the human eye, which reduces the damage of strong light to the human eye, allowing users to view augmented reality images under strong light.

图3为本申请实施例提供的另一种透镜颜色调节方法的流程示意图,参见图3,本实施例的方法包括如下步骤:Figure 3 is a schematic flow chart of another lens color adjustment method provided by an embodiment of the present application. Referring to Figure 3, the method of this embodiment includes the following steps:

步骤301、采集现实图像,并确定当前虚拟图像。Step 301: Collect real images and determine the current virtual image.

步骤302、将所述现实图像和所述当前虚拟图像进行融合,得到增强现实图像,识别所述增强现实图像的场景。Step 302: Fusion of the real image and the current virtual image to obtain an augmented reality image, and identify the scene of the augmented reality image.

步骤303、确定与所述增强现实图像的场景相匹配的透镜颜色。Step 303: Determine a lens color that matches the scene of the augmented reality image.

步骤304、根据所述透镜颜色调节所述透镜增强现实设备中透镜。Step 304: Adjust the lens in the lens augmented reality device according to the lens color.

本实施例中,通过增强现实设备中设置的摄像头采集现实图像,示例性的,现实信息采集器107中可以是包括摄像头。可选的,采集现实图像可以是对目标对象的进行瞳孔追踪,确定目标对象的瞳孔方向,根据所述目标对象的瞳孔方向调节所述摄像头的拍摄角度,控制所述摄像头在调节后的拍摄角度进行拍摄,生成现实图像。可选的,对瞳孔进行跟踪,确定瞳孔方向,包括:获取目标对象的眼部图像;对所述眼部图像进行边缘检测,确定眼部位置和瞳孔位置;根据所述瞳孔位置与所述眼部位置的相对关系确定目标对象的瞳孔方向。可选的,在增强现实眼镜的镜腿上设置跟踪摄像头,用于采集佩戴增强现实眼镜的目标对象的眼部图像。对采集的眼部图像进行边缘检测,将边缘检测结果与预设标准眼部图像和标准瞳孔图像进行匹配,确定眼部轮廓和瞳孔轮廓,将眼部轮廓坐在位置确定为眼部位置,瞳孔轮廓位置确定为瞳孔位置。可选的,对确定的眼部位置和瞳孔位置校验,其中,校验条件可以包括眼部和瞳孔的相对位置,瞳孔位于人眼内部;校验条件还可以包括眼部和瞳孔的尺寸和数量。根据瞳孔位置与眼部位置的相对关系确定瞳孔方向,进一步的,可以根据瞳孔中心位置与眼部中心位置的相对关系确定瞳孔方向,当瞳孔中心位置与眼部中心位置重合时,确定瞳孔方向为水平向前;当瞳孔中心位置与眼部中心位置存在间距时,确定瞳孔方向存在偏向角,例如,瞳孔中心位置在眼部中心位置的左方时,确定瞳孔方向向左,当瞳孔中心位置在眼部中心位置的下方时,确定瞳孔方向向下。确定瞳孔中心位置相对于眼部中心位置的方向和间距,确定瞳孔方向。In this embodiment, real images are collected through a camera provided in the augmented reality device. For example, the real information collector 107 may include a camera. Optionally, collecting real-life images may include pupil tracking of the target object, determining the pupil direction of the target object, adjusting the shooting angle of the camera according to the pupil direction of the target object, and controlling the adjusted shooting angle of the camera. Take photos and generate realistic images. Optionally, tracking the pupil and determining the pupil direction includes: obtaining an eye image of the target object; performing edge detection on the eye image to determine the eye position and pupil position; and based on the pupil position and the eye The relative relationship between the head positions determines the pupil direction of the target object. Optionally, a tracking camera is provided on the temples of the augmented reality glasses to collect eye images of the target object wearing the augmented reality glasses. Perform edge detection on the collected eye images, match the edge detection results with the preset standard eye images and standard pupil images, determine the eye contour and pupil contour, and determine the sitting position of the eye contour as the eye position and pupil The contour position is determined as the pupil position. Optionally, verify the determined eye position and pupil position, where the verification conditions may include the relative position of the eye and the pupil, and the pupil is located inside the human eye; the verification conditions may also include the size and size of the eye and pupil. quantity. The pupil direction is determined based on the relative relationship between the pupil position and the eye position. Furthermore, the pupil direction can be determined based on the relative relationship between the pupil center position and the eye center position. When the pupil center position coincides with the eye center position, the pupil direction is determined as Horizontally forward; when there is a distance between the pupil center position and the eye center position, determine the pupil direction and there is a deflection angle. For example, when the pupil center position is to the left of the eye center position, determine the pupil direction to the left. When the pupil center position is at When the center of the eye is below, make sure the pupil is directed downward. Determine the direction and distance of the pupil center position relative to the eye center position to determine the pupil direction.

根据瞳孔方向中瞳孔中心位置相对于眼部中心位置的方向和间距确定摄像头的拍摄角度,其中,根据瞳孔中心位置相对于眼部中心位置的方向确定摄像头的调节方向,该调节方向与瞳孔中心位置相对于眼部中心位置的方向一致,根据瞳孔中心位置相对于眼部中心位置的间距确定摄像头的调节值,其中,可以是根据摄像头的调节值与间距的预设映射关系确定摄像头的调节值。The shooting angle of the camera is determined according to the direction and distance of the pupil center position relative to the eye center position in the pupil direction. The adjustment direction of the camera is determined according to the direction of the pupil center position relative to the eye center position. The adjustment direction is consistent with the pupil center position. The direction relative to the center of the eye is consistent, and the adjustment value of the camera is determined based on the distance between the center of the pupil and the center of the eye. The adjustment value of the camera may be determined based on a preset mapping relationship between the adjustment value of the camera and the distance.

本实施例中,可以是从微显示器中提取当前虚拟图像,为了对现实图像和虚拟图像进行区别,在获取现实图像和虚拟图像后,对采集的现实图像和虚拟图像设置图像类型标识,其中,图像类型包括现实图像和虚拟图像,图像类型标识可以是数字、字符等,示例性的,现实图像的类型标识可以是1,虚拟图像可以是0。为了确定相匹配的现实图像和虚拟图像,在获取现实图像和虚拟图像后,对采集的现实图像和虚拟图像添加时间戳。In this embodiment, the current virtual image may be extracted from the microdisplay. In order to distinguish the real image and the virtual image, after obtaining the real image and the virtual image, an image type identifier is set for the collected real image and virtual image, where, The image type includes real images and virtual images. The image type identifier can be numbers, characters, etc. For example, the type identifier of the real image can be 1, and the virtual image can be 0. In order to determine matching real images and virtual images, after acquiring the real images and virtual images, add a timestamp to the collected real images and virtual images.

在一些实施例中,将所述现实图像和所述当前显示的虚拟图像进行融合,生成增强现实图像,包括:根据所述图像类型标识和时间戳确定相匹配的现实图像和虚拟图像;将所述相匹配的现实图像和虚拟图像进行融合,生成增强现实图像。示例性的,根据图像类型标识区分现实图像和虚拟图像,将具有相同时间戳的现实图像和虚拟图像确定为相匹配的现实图像和虚拟图像,对所述相匹配的现实图像和虚拟图像进行对齐,以保证进行融合的现实图像和虚拟图像符合用户观看角度,避免融合导致的误差。将对齐后的现实图像和虚拟图像进行融合,得到增强现实图像。示例性的,现实图像可以是用户A,虚拟图像为一顶帽子,经融合得到的增强现图像为待着帽子的用户A。可选的,当增强现实设备设置有两个摄像头(例如两个摄像头可以是分别设置在镜片上方的镜框中心)时,获得两个现实图像,基于两个现实图像得到具有深度信息的现实图像,并将具有深度信息的现实图像和对应的虚拟图像进行融合,得到具有深度信息的增强现实图像,提高了增强现实图像的立体感。In some embodiments, fusing the real image and the currently displayed virtual image to generate an augmented reality image includes: determining matching real images and virtual images according to the image type identifier and timestamp; The matching real images and virtual images are fused to generate augmented reality images. Exemplarily, real images and virtual images are distinguished according to image type identifiers, real images and virtual images with the same time stamp are determined as matching real images and virtual images, and the matching real images and virtual images are aligned. , to ensure that the fused real image and virtual image conform to the user's viewing angle and avoid errors caused by fusion. The aligned real images and virtual images are fused to obtain an augmented reality image. For example, the real image may be user A, the virtual image may be a hat, and the fused augmented reality image may be user A wearing the hat. Optionally, when the augmented reality device is equipped with two cameras (for example, the two cameras can be respectively set at the center of the frame above the lens), two real images are obtained, and a real image with depth information is obtained based on the two real images. And the real image with depth information and the corresponding virtual image are fused to obtain an augmented reality image with depth information, which improves the three-dimensional sense of the augmented reality image.

可选的,在生成增强现图像后,对增强现图像进行校验,判断增强现图像的融合状况,若存储融合误差,则调节现实图像和虚拟图像的相对位置,重新对调节后的现实图像和虚拟图像进行融合。示例性的,若融合后的增强现实图像中,帽子远离用户A的头部或者帽子对用户A的部分遮挡(例如遮盖了用户A的脸部),则确定该增加现实图像存在融合误差。根据该增强现实图像的误差确定现实图像和虚拟图像的调节值,该调节值包括水平移动距离和垂直移动距离,根据调节值调节现实图像或虚拟图像,生成新的增强现实图像。Optionally, after generating the augmented reality image, verify the augmented reality image to determine the fusion status of the augmented reality image. If the fusion error is stored, adjust the relative positions of the real image and the virtual image, and re-align the adjusted real image. fused with virtual images. For example, if in the fused augmented reality image, the hat is far away from user A's head or the hat partially blocks user A (for example, it covers user A's face), it is determined that there is a fusion error in the augmented reality image. The adjustment value of the real image and the virtual image is determined according to the error of the augmented reality image. The adjustment value includes a horizontal movement distance and a vertical movement distance. The real image or the virtual image is adjusted according to the adjustment value to generate a new augmented reality image.

需要说明的是,步骤302可以是由增强现实设备的处理单元105执行,还可以是由增强现实设备通过无线传输等方式与其他设备108,并控制其他设备108执行,接收其他设备108反馈的增强现实图像的场景,以减少增强现实设备的计算量,其中,其他设备108例如可以是手机、平板电脑或者计算机等移动终端。增强现实设备的处理单元105根据反馈的增强现实图像的场景调节透镜颜色。It should be noted that step 302 may be performed by the processing unit 105 of the augmented reality device, or may be performed by the augmented reality device communicating with other devices 108 through wireless transmission or other means, controlling other devices 108 to perform, and receiving enhancement feedback from other devices 108 Realistic image scenes to reduce the computational load of the augmented reality device, where the other devices 108 may be, for example, mobile terminals such as mobile phones, tablets, or computers. The processing unit 105 of the augmented reality device adjusts the lens color according to the scene of the fed-back augmented reality image.

本申请实施例中提供的透镜颜色调节方法,通过将采集的现实图像和虚拟图像进行融合,得到增强现实图像,根据增强现实图像的场景调节增强现实设备的透镜颜色,使得透镜颜色与增强现实图像的场景相匹配,提高增强现实图像的真实性,以及目标对象对增强现实图像的沉浸感。The lens color adjustment method provided in the embodiment of the present application obtains an augmented reality image by fusing the collected real images and virtual images, and adjusts the lens color of the augmented reality device according to the scene of the augmented reality image, so that the lens color is consistent with the augmented reality image. Match the scene, improve the authenticity of the augmented reality image, and the target object's immersion in the augmented reality image.

图4为本申请实施例提供的另一种透镜颜色调节方法的流程示意图,本实施例是上述实施例的一个可选方案,相应的,如图4所示,本实施例的方法包括如下步骤:Figure 4 is a schematic flow chart of another lens color adjustment method provided by an embodiment of the present application. This embodiment is an alternative to the above embodiment. Correspondingly, as shown in Figure 4, the method of this embodiment includes the following steps :

步骤401、采集现实图像,并确定当前虚拟图像。Step 401: Collect real images and determine the current virtual image.

步骤402、分别确定现实图像的第一场景和所述当前虚拟图像的第二场景。Step 402: Determine the first scene of the real image and the second scene of the current virtual image respectively.

步骤403、根据所述第一场景和所述第二场景确定所述增强现实图像的场景。Step 403: Determine the scene of the augmented reality image according to the first scene and the second scene.

步骤404、确定与所述增强现实图像的场景相匹配的透镜颜色。Step 404: Determine a lens color that matches the scene of the augmented reality image.

步骤405、根据所述透镜颜色调节所述透镜增强现实设备中透镜。Step 405: Adjust the lens in the lens augmented reality device according to the lens color.

本实施例中,在确定现实图像和当前虚拟图像后,分别对现实图像和当前虚拟图像进行场景识别,确定现实图像的第一场景和当前虚拟图像的第二场景,并进一步确定增强现实图像的场景,简化了增强现实图像的融合过程,减少了增强现实设备的计算量。其中,可以是分别将现实图像和当前虚拟图像输入至预先训练的场景识别模型中,根据场景识别模型的输出结果得到现实图像和当前虚拟图像的场景。场景识别模块为具有场景识别功能的机器学习模型,例如可以是神经网络模型等。In this embodiment, after determining the real image and the current virtual image, scene recognition is performed on the real image and the current virtual image respectively, the first scene of the real image and the second scene of the current virtual image are determined, and the augmented reality image is further determined. scene, which simplifies the fusion process of augmented reality images and reduces the calculation amount of augmented reality devices. The method may include inputting the real image and the current virtual image into a pre-trained scene recognition model respectively, and obtaining the scene of the real image and the current virtual image according to the output result of the scene recognition model. The scene recognition module is a machine learning model with scene recognition function, for example, it can be a neural network model, etc.

可选的,根据所述第一场景和所述第二场景确定所述增强现实图像的场景,包括:根据所述第一场景和所述第二场景的优先级确定所述增强现实图像的场景。其中,增强现实设备中可以是设置有场景优先级,例如浪漫场景、温馨场景、下雨场景的优先级依次下降,场景的优先级可以是根据用户需求设置,本实施例中不做限定。将第一场景和所述第二场景中优先级较高的场景确定为增强现实图像的场景,示例性的,若第一场景为浪漫场景,第二场景为下雨场景,第一场景的优先级高于第二场景的优先级,则确定增强现实图像的场景为浪漫场景。Optionally, determining the scene of the augmented reality image according to the first scene and the second scene includes: determining the scene of the augmented reality image according to the priorities of the first scene and the second scene. . Among them, the augmented reality device may be set with scene priorities. For example, the priorities of romantic scenes, warm scenes, and rain scenes decrease in order. The scene priorities may be set according to user needs, which are not limited in this embodiment. The scene with higher priority among the first scene and the second scene is determined as the scene of the augmented reality image. For example, if the first scene is a romantic scene and the second scene is a raining scene, the first scene will be given priority. If the priority of the first scene is higher than that of the second scene, the scene of the augmented reality image is determined to be a romantic scene.

可选的,根据所述第一场景和所述第二场景确定所述增强现实图像的场景,包括:根据预先设置的场景组合表,确定第一场景和第二场景的组合对应的增强现实图像的场景。其中,场景组合表中包括任意两种场景与目标场景的映射关系,目标场景为增强现实图像的场景。在确定第一场景和第二场景后,基于场景组合表可确定与第一场景和第二场景组合对应的目标场景,即增强现实图像的场景。需要说明的是,当第一场景和第二场景相同时,将第一场景或第二场景确定为增强现实图像的场景。Optionally, determining the scene of the augmented reality image according to the first scene and the second scene includes: determining the augmented reality image corresponding to the combination of the first scene and the second scene according to a preset scene combination table. scene. Among them, the scene combination table includes the mapping relationship between any two scenes and the target scene, and the target scene is the scene of the augmented reality image. After the first scene and the second scene are determined, the target scene corresponding to the combination of the first scene and the second scene can be determined based on the scene combination table, that is, the scene of the augmented reality image. It should be noted that when the first scene and the second scene are the same, the first scene or the second scene is determined as the scene of the augmented reality image.

本实施例提供的透镜颜色调节方法,通过基于现实图像的第一场景和虚拟图像的第二图像确定增强现实图像的场景,简化了增强现实图像的融合过程,减少了增强现实设备的计算量。根据增强现实图像的场景调节增强现实设备的透镜颜色,使得透镜颜色与增强现实图像的场景相匹配,提高增强现实图像的真实性,以及目标对象对增强现实图像的沉浸感。The lens color adjustment method provided in this embodiment determines the scene of the augmented reality image based on the first scene of the real image and the second image of the virtual image, thereby simplifying the fusion process of the augmented reality image and reducing the calculation amount of the augmented reality device. Adjust the lens color of the augmented reality device according to the scene of the augmented reality image so that the lens color matches the scene of the augmented reality image, thereby improving the authenticity of the augmented reality image and the target object's immersion in the augmented reality image.

图5为本申请实施例提供的一种透镜颜色调节装置的结构框图,该装置可由软件和/或硬件实现,一般集成在增强现实设备中,可通过执行增强现实设备的透镜颜色调节方法来对增强现实设备的透镜颜色进行调节。如图5所示,该装置包括:场景确定模块501、透镜颜色确定模块502和透镜调节模块503。Figure 5 is a structural block diagram of a lens color adjustment device provided by an embodiment of the present application. The device can be implemented by software and/or hardware, and is generally integrated in an augmented reality device. It can be adjusted by executing the lens color adjustment method of the augmented reality device. The lens color of the augmented reality device is adjusted. As shown in FIG. 5 , the device includes: a scene determination module 501 , a lens color determination module 502 and a lens adjustment module 503 .

场景确定模块501,用于确定当前增强现实图像的场景;Scene determination module 501, used to determine the scene of the current augmented reality image;

透镜颜色确定模块502,用于确定与所述增强现实图像的场景相匹配的透镜颜色;Lens color determination module 502, configured to determine a lens color that matches the scene of the augmented reality image;

透镜调节模块503,用于根据所述透镜颜色调节所述透镜增强现实设备中透镜。The lens adjustment module 503 is used to adjust the lens in the lens augmented reality device according to the lens color.

本申请实施例中提供的透镜颜色调节装置,通过确定人眼看到的增强现实图像的场景,确定增强现实设备中透镜的颜色,并调节透镜的颜色,使得透镜颜色与增强现实图像的场景相匹配,提高增强现实图像的真实性,以及目标对象对增强现实图像的沉浸感。The lens color adjustment device provided in the embodiment of the present application determines the color of the lens in the augmented reality device by determining the scene of the augmented reality image seen by the human eye, and adjusts the color of the lens so that the color of the lens matches the scene of the augmented reality image. , improve the authenticity of augmented reality images, and the target object’s immersion in augmented reality images.

在上述实施例的基础上,所述透镜为电致变色透镜。Based on the above embodiments, the lens is an electrochromic lens.

在上述实施例的基础上,透镜调节模块503用于:Based on the above embodiments, the lens adjustment module 503 is used for:

根据所述透镜颜色确定施加在所述透镜上的电压;determining a voltage to be applied to the lens based on the lens color;

将确定的电压施加到透镜。A determined voltage is applied to the lens.

在上述实施例的基础上,场景确定模块501包括:Based on the above embodiments, the scene determination module 501 includes:

第一图像确定单元,用于采集现实图像,并确定当前虚拟图像;The first image determination unit is used to collect real images and determine the current virtual image;

增强现实图像确定单元,用于将所述现实图像和所述当前虚拟图像进行融合,得到增强现实图像;An augmented reality image determination unit, configured to fuse the real image and the current virtual image to obtain an augmented reality image;

第一场景识别单元,用于识别所述增强现实图像的场景。The first scene identification unit is used to identify the scene of the augmented reality image.

在上述实施例的基础上,场景确定模块501包括:Based on the above embodiments, the scene determination module 501 includes:

第二图像确定模块,用于采集现实图像,并确定当前虚拟图像;The second image determination module is used to collect real images and determine the current virtual image;

第二场景识别单元,用于分别确定现实图像的第一场景和所述当前虚拟图像的第二场景;a second scene recognition unit, configured to respectively determine the first scene of the real image and the second scene of the current virtual image;

场景确定单元,用于根据所述第一场景和所述第二场景确定所述增强现实图像的场景。A scene determination unit, configured to determine the scene of the augmented reality image according to the first scene and the second scene.

在上述实施例的基础上,场景确定单元用于:Based on the above embodiments, the scene determination unit is used to:

根据所述第一场景和所述第二场景的优先级确定所述增强现实图像的场景。The scene of the augmented reality image is determined according to the priorities of the first scene and the second scene.

在上述实施例的基础上,场景确定单元用于:Based on the above embodiments, the scene determination unit is used to:

根据预先设置的场景组合表,确定所述第一场景和第二场景的组合对应的增强现实图像的场景。According to the preset scene combination table, the scene of the augmented reality image corresponding to the combination of the first scene and the second scene is determined.

在上述实施例的基础上,透镜颜色确定模块502用于:Based on the above embodiments, the lens color determination module 502 is used to:

根据场景与颜色的映射关系,以及所述增强现实图像的场景确定透镜颜色。The lens color is determined according to the mapping relationship between the scene and the color and the scene of the augmented reality image.

在上述实施例的基础上,还包括:On the basis of the above embodiments, it also includes:

光强度采集模块,用于采集环境光强度;Light intensity collection module, used to collect ambient light intensity;

透光率调节模块,用于根据所述环境光强度调节所述增强现实设备中透镜的透光率。A light transmittance adjustment module, configured to adjust the light transmittance of the lens in the augmented reality device according to the ambient light intensity.

本申请实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行透镜颜色调节方法,该方法包括:Embodiments of the present application also provide a storage medium containing computer-executable instructions, which when executed by a computer processor are used to perform a lens color adjustment method. The method includes:

确定当前增强现实图像的场景;Determine the scene of the current augmented reality image;

确定与所述增强现实图像的场景相匹配的透镜颜色;determining a lens color that matches the scene of the augmented reality image;

根据所述透镜颜色调节所述透镜增强现实设备中透镜。Adjust the lens in the lens augmented reality device according to the lens color.

存储介质——任何的各种类型的存储器设备或存储设备。术语“存储介质”旨在包括:安装介质,例如CD-ROM、软盘或磁带装置;计算机系统存储器或随机存取存储器,诸如DRAM、DDRRAM、SRAM、EDORAM,兰巴斯(Rambus)RAM等;非易失性存储器,诸如闪存、磁介质(例如硬盘或光存储);寄存器或其它相似类型的存储器元件等。存储介质可以还包括其它类型的存储器或其组合。另外,存储介质可以位于程序在其中被执行的第一计算机系统中,或者可以位于不同的第二计算机系统中,第二计算机系统通过网络(诸如因特网)连接到第一计算机系统。第二计算机系统可以提供程序指令给第一计算机用于执行。术语“存储介质”可以包括可以驻留在不同位置中(例如在通过网络连接的不同计算机系统中)的两个或更多存储介质。存储介质可以存储可由一个或多个处理器执行的程序指令(例如具体实现为计算机程序)。Storage media – Any memory device or storage device of any type. The term "storage media" is intended to include: installation media, such as CD-ROM, floppy disks, or tape devices; computer system memory or random access memory, such as DRAM, DDRRAM, SRAM, EDORAM, Rambus RAM, etc.; non- Volatile memory, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, etc. Storage media may also include other types of memory or combinations thereof. Additionally, the storage medium may be located in the first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network, such as the Internet. The second computer system may provide program instructions to the first computer for execution. The term "storage media" may include two or more storage media that may reside in different locations (eg, in different computer systems connected by a network). Storage media may store program instructions (eg, embodied as a computer program) executable by one or more processors.

当然,本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的透镜颜色调节操作,还可以执行本申请任意实施例所提供的透镜颜色调节方法中的相关操作。Of course, the embodiments of the present application provide a storage medium containing computer-executable instructions. The computer-executable instructions are not limited to the lens color adjustment operations described above, and can also perform the lens color adjustment provided by any embodiment of the application. Related operations in the method.

本申请实施例提供了一种增强现实设备,该增强现实设备中可集成本申请实施例提供的透镜颜色调节装置。图6为本申请实施例提供的一种增强现实设备的结构示意图。增强现实设备600可以包括:存储器601,处理器602及存储在存储器601上并可在处理器602运行的计算机程序,所述处理器602执行所述计算机程序时实现如本申请实施例所述的透镜颜色调节方法。The embodiment of the present application provides an augmented reality device, in which the lens color adjustment device provided by the embodiment of the present application can be integrated. Figure 6 is a schematic structural diagram of an augmented reality device provided by an embodiment of the present application. The augmented reality device 600 may include: a memory 601, a processor 602, and a computer program stored on the memory 601 and executable on the processor 602. When the processor 602 executes the computer program, it implements the methods described in the embodiments of the present application. Lens color adjustment method.

本申请实施例提供的增强现实设备,通过确定人眼看到的增强现实图像的场景,确定增强现实设备中透镜的颜色,并调节透镜的颜色,使得透镜颜色与增强现实图像的场景相匹配,提高增强现实图像的真实性,以及目标对象对增强现实图像的沉浸感。The augmented reality device provided by the embodiment of the present application determines the scene of the augmented reality image seen by human eyes, determines the color of the lens in the augmented reality device, and adjusts the color of the lens so that the color of the lens matches the scene of the augmented reality image, thereby improving The authenticity of the augmented reality image, and the target subject's immersion in the augmented reality image.

图7为本申请实施例提供的另一种增强现实设备的结构示意图。该增强现实设备可以包括:壳体(图中未示出)、存储器701、中央处理器(central processing unit,CPU)702(又称处理器,以下简称CPU)、电路板(图中未示出)和电源电路(图中未示出)。所述电路板安置在所述壳体围成的空间内部;所述CPU702和所述存储器701设置在所述电路板上;所述电源电路,用于为所述增强现实设备的各个电路或器件供电;所述存储器701,用于存储可执行程序代码;所述CPU702通过读取所述存储器701中存储的可执行程序代码来运行与所述可执行程序代码对应的计算机程序,以实现以下步骤:Figure 7 is a schematic structural diagram of another augmented reality device provided by an embodiment of the present application. The augmented reality device may include: a casing (not shown in the figure), a memory 701, a central processing unit (CPU) 702 (also called a processor, hereinafter referred to as the CPU), a circuit board (not shown in the figure) ) and power circuit (not shown in the figure). The circuit board is placed inside the space enclosed by the housing; the CPU 702 and the memory 701 are provided on the circuit board; the power circuit is used to provide various circuits or devices of the augmented reality device Power supply; the memory 701 is used to store executable program code; the CPU 702 reads the executable program code stored in the memory 701 to run the computer program corresponding to the executable program code to implement the following steps :

确定当前增强现实图像的场景;Determine the scene of the current augmented reality image;

确定与所述增强现实图像的场景相匹配的透镜颜色;determining a lens color that matches the scene of the augmented reality image;

根据所述透镜颜色调节所述透镜增强现实设备中透镜。Adjust the lens in the lens augmented reality device according to the lens color.

所述增强现实设备还包括:外设接口703、RF(Radio Frequency,射频)电路705、音频电路706、扬声器711、电源管理芯片708、输入/输出(I/O)子系统709、其他输入/控制设备710、触摸屏712、其他输入/控制设备710以及外部端口704,这些部件通过一个或多个通信总线或信号线707来通信。The augmented reality device also includes: peripheral interface 703, RF (Radio Frequency, radio frequency) circuit 705, audio circuit 706, speaker 711, power management chip 708, input/output (I/O) subsystem 709, other input/ Control device 710, touch screen 712, other input/control devices 710, and external ports 704, these components communicate through one or more communication buses or signal lines 707.

应该理解的是,图示增强现实设备700仅仅是增强现实设备的一个范例,并且增强现实设备700可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It should be understood that the illustrated augmented reality device 700 is only one example of an augmented reality device, and that the augmented reality device 700 may have more or fewer components than shown in the figures, and two or more may be combined. components, or may have different component configurations. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.

下面就本实施例提供的用于对透镜颜色调节操作的增强现实设备进行详细的描述,该增强现实设备以手机为例。The following is a detailed description of the augmented reality device provided in this embodiment for adjusting the lens color. The augmented reality device takes a mobile phone as an example.

存储器701,所述存储器701可以被CPU702、外设接口703等访问,所述存储器701可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Memory 701. The memory 701 can be accessed by the CPU 702, the peripheral interface 703, etc. The memory 701 can include high-speed random access memory, and can also include non-volatile memory, such as one or more disk storage devices, flash memory devices. , or other volatile solid-state storage devices.

外设接口703,所述外设接口703可以将设备的输入和输出外设连接到CPU702和存储器701。Peripheral interface 703, which can connect the input and output peripherals of the device to the CPU 702 and the memory 701.

I/O子系统709,所述I/O子系统709可以将设备上的输入输出外设,例如触摸屏712和其他输入/控制设备710,连接到外设接口703。I/O子系统709可以包括显示控制器7091和用于控制其他输入/控制设备710的一个或多个输入控制器7092。其中,一个或多个输入控制器7092从其他输入/控制设备710接收电信号或者向其他输入/控制设备710发送电信号,其他输入/控制设备710可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器7092可以与以下任一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。I/O subsystem 709, which can connect input and output peripherals on the device, such as touch screen 712 and other input/control devices 710, to peripheral interface 703. I/O subsystem 709 may include a display controller 7091 and one or more input controllers 7092 for controlling other input/control devices 710 . One or more input controllers 7092 receive electrical signals from or send electrical signals to other input/control devices 710 , which may include physical buttons (press buttons, rocker buttons, etc. ), dials, slide switches, joysticks, click wheels. It is worth noting that the input controller 7092 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.

触摸屏712,所述触摸屏712是用户增强现实设备与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。Touch screen 712. The touch screen 712 is the input interface and output interface between the user's augmented reality device and the user, and displays visual output to the user. The visual output may include graphics, text, icons, videos, etc.

I/O子系统709中的显示控制器7091从触摸屏712接收电信号或者向触摸屏712发送电信号。触摸屏712检测触摸屏上的接触,显示控制器7091将检测到的接触转换为与显示在触摸屏712上的用户界面对象的交互,即实现人机交互,显示在触摸屏712上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。值得说明的是,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸。Display controller 7091 in I/O subsystem 709 receives electrical signals from or sends electrical signals to touch screen 712 . The touch screen 712 detects contact on the touch screen, and the display controller 7091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 712, that is, human-computer interaction is realized. The user interface object displayed on the touch screen 712 can be a running The icon of the game, the icon of connecting to the corresponding network, etc. It is worth noting that the device may also include an optical mouse, which is a touch-sensitive surface that does not display visual output, or is an extension of the touch-sensitive surface formed by the touch screen.

RF电路705,主要用于建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息、电子邮件等。具体地,RF电路705接收并发送RF信号,RF信号也称为电磁信号,RF电路705将电信号转换为电磁信号或将电磁信号转换为电信号,并且通过该电磁信号与通信网络以及其他设备进行通信。RF电路705可以包括用于执行这些功能的已知电路,其包括但不限于天线系统、RF收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、CODEC(COder-DECoder,编译码器)芯片组、用户标识模块(Subscriber Identity Module,SIM)等等。The RF circuit 705 is mainly used to establish communication between the mobile phone and the wireless network (i.e., the network side), and realize data reception and transmission between the mobile phone and the wireless network. For example, send and receive text messages, emails, etc. Specifically, the RF circuit 705 receives and sends RF signals, which are also called electromagnetic signals. The RF circuit 705 converts electrical signals into electromagnetic signals or electromagnetic signals into electrical signals, and communicates with communication networks and other devices through the electromagnetic signals. communicate. RF circuitry 705 may include known circuitry for performing these functions, including, but not limited to, antenna systems, RF transceivers, one or more amplifiers, tuners, one or more oscillators, digital signal processors, CODECs ( COder-DECoder, codec) chipset, Subscriber Identity Module (Subscriber Identity Module, SIM), etc.

音频电路706,主要用于从外设接口703接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器711。The audio circuit 706 is mainly used to receive audio data from the peripheral interface 703, convert the audio data into electrical signals, and send the electrical signals to the speaker 711.

扬声器711,用于将手机通过RF电路705从无线网络接收的语音信号,还原为声音并向用户播放该声音。The speaker 711 is used to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 705 into a sound and play the sound to the user.

电源管理芯片708,用于为CPU702、I/O子系统及外设接口所连接的硬件进行供电及电源管理。The power management chip 708 is used to provide power supply and power management for the hardware connected to the CPU 702, I/O subsystem and peripheral interfaces.

上述实施例中提供的透镜颜色调节装置、存储介质及增强现实设备可执行本申请任意实施例所提供的透镜颜色调节方法,具备执行该方法相应的功能模块和有益效果。未在上述实施例中详尽描述的技术细节,可参见本申请任意实施例所提供的透镜颜色调节方法。The lens color adjustment device, storage medium and augmented reality device provided in the above embodiments can execute the lens color adjustment method provided in any embodiment of the present application, and have corresponding functional modules and beneficial effects for executing the method. For technical details that are not described in detail in the above embodiments, please refer to the lens color adjustment method provided in any embodiment of this application.

注意,上述仅为本申请的较佳实施例及所运用技术原理。本领域技术人员会理解,本申请不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本申请的保护范围。因此,虽然通过以上实施例对本申请进行了较为详细的说明,但是本申请不仅仅限于以上实施例,在不脱离本申请构思的情况下,还可以包括更多其他等效实施例,而本申请的范围由所附的权利要求范围决定。Note that the above are only the preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of the present application. Therefore, although the present application has been described in detail through the above embodiments, the present application is not limited to the above embodiments, and may also include more other equivalent embodiments without departing from the concept of the present application, and the present application The scope is determined by the scope of the appended claims.

Claims (10)

1. A lens color adjustment method for use in an augmented reality device, comprising:
determining a scene of a current augmented reality image;
determining a lens color that matches a scene of the augmented reality image;
adjusting a lens in a lens augmented reality device according to the lens color;
the determining a lens color that matches a scene of the augmented reality image includes:
determining a lens color according to the mapping relation between the scene and the color and the scene of the augmented reality image;
the augmented reality image is an image formed by a reality image and a virtual image together, and comprises a real object in a sight range of a target object, a virtual object carried in the virtual image entering the pupil of the target object, and/or a scene of the augmented reality image is determined based on the relative position relationship between the object in the virtual image and the real object.
2. The method of claim 1, wherein the lens is an electrochromic lens.
3. The method of claim 2, wherein adjusting the lens in the lens augmented reality device according to the lens color comprises:
determining a voltage applied to the lens based on the lens color;
the determined voltage is applied to the lens.
4. The method of claim 1, wherein determining the scene of the current augmented reality image comprises:
acquiring a real image and determining a current virtual image;
fusing the reality image and the current virtual image to obtain an augmented reality image;
a scene of the augmented reality image is identified.
5. The method of claim 1, wherein determining the scene of the current augmented reality image comprises:
acquiring a real image and determining a current virtual image;
respectively determining a first scene of a real image and a second scene of the current virtual image;
and determining the scene of the augmented reality image according to the first scene and the second scene.
6. The method of claim 5, wherein determining the scene of the augmented reality image from the first scene and the second scene comprises:
determining a scene of the augmented reality image according to the priorities of the first scene and the second scene; or,
and determining the scene of the augmented reality image corresponding to the combination of the first scene and the second scene according to a preset scene combination table.
7. The method according to claim 1, wherein the method further comprises:
collecting the intensity of ambient light;
and adjusting the light transmittance of a lens in the augmented reality device according to the ambient light intensity.
8. A lens color adjustment device, comprising:
the scene determining module is used for determining the scene of the current augmented reality image;
a lens color determination module for determining a lens color that matches a scene of the augmented reality image;
a lens adjustment module for adjusting a lens in a lens augmented reality device according to the lens color;
the lens color determination module is used for:
determining a lens color according to the mapping relation between the scene and the color and the scene of the augmented reality image;
the augmented reality image is an image formed by a reality image and a virtual image together, and comprises a real object in a sight range of a target object, a virtual object carried in the virtual image entering the pupil of the target object, and/or a scene of the augmented reality image is determined based on the relative position relationship between the object in the virtual image and the real object.
9. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the lens color adjustment method according to any one of claims 1-7.
10. An augmented reality device comprising a memory, a processor and a computer program stored on the memory and executable by the processor, the processor implementing the lens colour adjustment method according to any one of claims 1 to 7 when executing the computer program.
CN201910624830.4A 2019-07-11 2019-07-11 Lens color adjustment method, device, storage medium and augmented reality equipment Active CN110349271B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910624830.4A CN110349271B (en) 2019-07-11 2019-07-11 Lens color adjustment method, device, storage medium and augmented reality equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910624830.4A CN110349271B (en) 2019-07-11 2019-07-11 Lens color adjustment method, device, storage medium and augmented reality equipment

Publications (2)

Publication Number Publication Date
CN110349271A CN110349271A (en) 2019-10-18
CN110349271B true CN110349271B (en) 2023-10-20

Family

ID=68175027

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910624830.4A Active CN110349271B (en) 2019-07-11 2019-07-11 Lens color adjustment method, device, storage medium and augmented reality equipment

Country Status (1)

Country Link
CN (1) CN110349271B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111830718B (en) * 2020-08-03 2024-02-27 Oppo广东移动通信有限公司 Augmented reality device
CN115248501B (en) * 2021-04-27 2023-11-21 广州视享科技有限公司 Display method and device of augmented reality equipment and augmented reality equipment
CN114554050B (en) * 2022-02-08 2024-02-27 维沃移动通信有限公司 Image processing methods, devices and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104781853A (en) * 2012-11-13 2015-07-15 高通股份有限公司 Modifying virtual object display properties to increase power performance of augmented reality devices
CN106373197A (en) * 2016-09-06 2017-02-01 广州视源电子科技股份有限公司 Augmented reality method and augmented reality device
CN109683707A (en) * 2018-12-13 2019-04-26 谷东科技有限公司 A kind of method and system for keeping AR glasses projected color adaptive
CN109697738A (en) * 2018-12-28 2019-04-30 Oppo广东移动通信有限公司 Image processing method, device, terminal device and storage medium
CN109905597A (en) * 2019-02-13 2019-06-18 深圳市欧蒂姆光学有限公司 Eyeglass color-changing control method, device, glasses and readable storage medium storing program for executing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104781853A (en) * 2012-11-13 2015-07-15 高通股份有限公司 Modifying virtual object display properties to increase power performance of augmented reality devices
CN106373197A (en) * 2016-09-06 2017-02-01 广州视源电子科技股份有限公司 Augmented reality method and augmented reality device
CN109683707A (en) * 2018-12-13 2019-04-26 谷东科技有限公司 A kind of method and system for keeping AR glasses projected color adaptive
CN109697738A (en) * 2018-12-28 2019-04-30 Oppo广东移动通信有限公司 Image processing method, device, terminal device and storage medium
CN109905597A (en) * 2019-02-13 2019-06-18 深圳市欧蒂姆光学有限公司 Eyeglass color-changing control method, device, glasses and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN110349271A (en) 2019-10-18

Similar Documents

Publication Publication Date Title
US11636641B2 (en) Electronic device for displaying avatar corresponding to external object according to change in position of external object
US20250086970A1 (en) Electronic device for providing shooting mode based on virtual character and operation method thereof
US11189071B2 (en) Electronic device for providing avatar animation and method thereof
CN110412765B (en) Augmented reality image capturing method, device, storage medium and augmented reality device
US10976558B2 (en) Electronic device capable of adjusting distance between housings
CN110349526A (en) Augmented reality adjusting method, device, storage medium and augmented reality equipment
EP4167019A1 (en) Method of changing settings of display and electronic device
CN105786170A (en) Mobile Terminal And Method For Controlling The Same
CN110349271B (en) Lens color adjustment method, device, storage medium and augmented reality equipment
KR102859998B1 (en) Electronic device and method for providing vitural reality service
CN116830065A (en) Electronic device and method for tracking user gaze and providing augmented reality services
US12003697B2 (en) Wearable electronic device and method of outputting three-dimensional image
RU118140U1 (en) PERSONAL ELECTRONIC COMMUNICATOR
CN108921815A (en) Photo interaction method, device, storage medium and terminal equipment
CN110333785A (en) Information processing method, device, storage medium and augmented reality device
CN110362203B (en) Information processing method, device, storage medium and augmented reality device
US12299814B2 (en) Electronic device for providing contents in connection with external electronic device and method of the same
US12348856B2 (en) Method and device for obtaining image of object
CN108765321A (en) Shooting repair method and device, storage medium and terminal equipment
KR20230080276A (en) Electronic device for providing contents in connection with outer electronic device and method of the same
CN114416237A (en) Display state switching method, device and system, electronic device, storage medium
US12455954B2 (en) Apparatus and method for authenticating user in augmented reality
KR20230047871A (en) Content output control method using eye tracking and electronic device therefor
KR20240043025A (en) Method for displaying augmented reality object and electronic device supporting the same
KR20240080050A (en) Electronic device and method for generating redering image according to senario context

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
GR01 Patent grant
GR01 Patent grant