CN114612643A - Image adjusting method and device for virtual object, electronic equipment and storage medium - Google Patents

Image adjusting method and device for virtual object, electronic equipment and storage medium Download PDF

Info

Publication number
CN114612643A
CN114612643A CN202210224365.7A CN202210224365A CN114612643A CN 114612643 A CN114612643 A CN 114612643A CN 202210224365 A CN202210224365 A CN 202210224365A CN 114612643 A CN114612643 A CN 114612643A
Authority
CN
China
Prior art keywords
virtual object
data
image information
image
adjusting
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.)
Granted
Application number
CN202210224365.7A
Other languages
Chinese (zh)
Other versions
CN114612643B (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.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202210224365.7A priority Critical patent/CN114612643B/en
Publication of CN114612643A publication Critical patent/CN114612643A/en
Application granted granted Critical
Publication of CN114612643B publication Critical patent/CN114612643B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/10Geometric effects
    • G06T15/20Perspective computation
    • G06T15/205Image-based rendering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/006Mixed reality

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Graphics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Architecture (AREA)
  • Computing Systems (AREA)
  • Geometry (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present disclosure provides an image adjustment method, apparatus, electronic device and storage medium for a virtual object, the method comprising: displaying image information of the virtual object in the electronic equipment, wherein the image information comprises a main body structure of the virtual object and a decorative article attached to the main body structure, the main body structure is generated after rendering skeletal data of the virtual object in a 3D rendering environment, and the decorative article is generated after rendering decorative article data in the 3D rendering environment; under the condition that a trigger event for adjusting the image information is detected, adjusting the bone data and/or the decorative article data to obtain adjusted target bone data and/or target decorative article data, rendering the target bone data and/or the target decorative data, and generating the image information of the adjusted virtual object. According to the embodiment of the disclosure, the bone data and/or the decorative article data of the virtual object are/is adjusted to meet the viewing requirements of different users, so that the viewing experience of the users is improved.

Description

虚拟对象的形象调整方法、装置、电子设备及存储介质Image adjustment method, device, electronic device and storage medium of virtual object

技术领域technical field

本公开涉及计算机技术领域,具体而言,涉及一种虚拟对象的 形象调整方法、虚拟对象的形象调整装置、电子设备以及计算机可 读存储介质。The present disclosure relates to the field of computer technology, and in particular, to a method for adjusting the image of a virtual object, a device for adjusting the image of a virtual object, an electronic device, and a computer-readable storage medium.

背景技术Background technique

近年来,虚拟对象直播在视频直播业务中占据着越来越大的比 例,虚拟对象直播是以特定的虚拟对象替代主播的真实形象进行视 频直播。然而,在虚拟对象的直播过程中,虚拟对象的展示效果是 由直播主体方进行控制的,也即,每个用户(观众)观看到的展示 效果是相同的,不能实现虚拟对象的个性化展示。In recent years, virtual object live broadcast has occupied a larger and larger proportion in the video live broadcast business. The virtual object live broadcast is a live video broadcast by replacing the real image of the host with a specific virtual object. However, during the live broadcast of virtual objects, the display effect of the virtual objects is controlled by the main party of the live broadcast, that is, each user (viewer) sees the same display effect, and the personalized display of virtual objects cannot be realized. .

发明内容SUMMARY OF THE INVENTION

本公开实施例至少提供一种虚拟对象的形象调整方法、虚拟对 象的形象调整装置、电子设备以及计算机可读存储介质,可以对虚 拟对象的形象信息进行调整,以满足不同用户的观赏需求,进而提 升用户的观赏体验。The embodiments of the present disclosure provide at least a method for adjusting the image of a virtual object, an image adjusting device for a virtual object, an electronic device, and a computer-readable storage medium, which can adjust the image information of the virtual object to meet the viewing needs of different users, and further Improve the viewing experience of users.

本公开实施例提供了一种虚拟对象的形象调整方法,包括:An embodiment of the present disclosure provides an image adjustment method for a virtual object, including:

在电子设备中展示虚拟对象的形象信息,所述形象信息包括虚 拟对象的主体结构以及附着于所述主体结构上的装饰物品,其中, 所述主体结构由3D渲染环境中的虚拟对象的骨骼数据经渲染后生 成,所述装饰物品由所述3D渲染环境中的装饰物品数据经渲染后生 成;The image information of the virtual object is displayed in the electronic device, the image information includes the main structure of the virtual object and the decorative items attached to the main structure, wherein the main structure is composed of the skeleton data of the virtual object in the 3D rendering environment Generated after rendering, and the decorative item is generated by rendering the decorative item data in the 3D rendering environment;

在检测到调整所述形象信息的触发事件的情况下,对所述骨骼 数据和/或所述装饰物品数据进行调整,得到调整后的目标骨骼数据 和/或目标装饰物品数据;In the case of detecting a trigger event for adjusting the image information, adjust the skeleton data and/or the decorative item data to obtain the adjusted target skeleton data and/or target decorative item data;

对所述目标骨骼数据和/或所述目标装饰数据进行渲染,生成调 整后的虚拟对象的形象信息。Rendering the target skeleton data and/or the target decoration data to generate image information of the adjusted virtual object.

本公开实施例中,在检测到调整形象信息的触发事件的情况 下,通过对骨骼数据和/或装饰物品数据进行调整,可以使得调整后 的形象信息更加丰富,能够满足不同用户对虚拟对象的形象需求, 进而提升用户的观赏体验。此外,在对虚拟对象的骨骼数据和/或装 饰物品数据进行调整时,可以将虚拟对象的骨骼与装饰物品进行分 离,如此,降低了骨骼与装饰物品之间的耦合性,也即,可以分别 对骨骼数据和装饰物品数据进行调整,使得虚拟对象的形象信息更 加灵活,并且在渲染过程中互不影响,有利于节约资源。In the embodiment of the present disclosure, when a triggering event for adjusting the image information is detected, by adjusting the skeleton data and/or the decorative item data, the adjusted image information can be enriched, which can satisfy different users' needs for virtual objects. image requirements, thereby enhancing the user's viewing experience. In addition, when adjusting the skeleton data and/or the decorative item data of the virtual object, the skeleton of the virtual object and the decorative item can be separated, thus reducing the coupling between the skeleton and the decorative item, that is, the skeleton and the decorative item can be separated. Adjusting the skeleton data and the decorative item data makes the image information of the virtual object more flexible, and does not affect each other during the rendering process, which is conducive to saving resources.

一种可选的实施方式中,所述在电子设备中展示虚拟对象的形 象信息,包括:In an optional implementation manner, the image information of the virtual object displayed in the electronic device includes:

获取所述电子设备所采集的现实场景图像;acquiring a real scene image collected by the electronic device;

基于所述现实场景图像,展示所述虚拟对象的形象信息。Based on the real scene image, image information of the virtual object is displayed.

本公开实施例中,基于现实场景图像,展示虚拟对象的形象信 息,也即,将虚拟对象的形象信息与真实场景相结合,如此,可以 呈现出虚实结合的效果,进而提升用户的观看体验。In the embodiment of the present disclosure, the image information of the virtual object is displayed based on the real scene image, that is, the image information of the virtual object is combined with the real scene, so that the effect of combining the virtual and the real can be presented, thereby improving the user's viewing experience.

一种可选的实施方式中,在所述虚拟对象的形象信息与所述现 实场景图像不匹配的情况下,确定检测到所述调整所述形象信息的 触发事件。In an optional implementation manner, in the case that the image information of the virtual object does not match the real scene image, it is determined that the trigger event for adjusting the image information is detected.

本公开实施例中,在检测到虚拟对象的形象信息与现实场景不 匹配的情况下,可以自动调整形象信息,使得形象信息与现实场景 相匹配,进而有利于丰富展示效果。In the embodiment of the present disclosure, when it is detected that the image information of the virtual object does not match the real scene, the image information can be automatically adjusted so that the image information matches the real scene, which is beneficial to enrich the display effect.

一种可选的实施方式中,所述方法还包括:In an optional embodiment, the method further includes:

基于所述现实场景的环境信息,确定所述虚拟对象的形象信息 与所述现实场景图像是否匹配,其中,所述环境信息包括所述现实 场景的天气信息、温度信息以及位置信息中的至少一种。Based on the environment information of the real scene, it is determined whether the image information of the virtual object matches the image of the real scene, wherein the environment information includes at least one of weather information, temperature information and location information of the real scene kind.

本公开实施例中,基于现实场景的环境信息,确定虚拟对象的 形象信息与现实场景图像是否匹配,如此,可以提高匹配的准确 性。In the embodiment of the present disclosure, based on the environmental information of the real scene, it is determined whether the image information of the virtual object matches the image of the real scene, so that the matching accuracy can be improved.

一种可选的实施方式中,所述主体结构包括多个部位;所述对 所述骨骼数据和/或所述装饰物品数据进行调整,包括:In an optional embodiment, the main body structure includes a plurality of parts; the adjustment of the skeleton data and/or the decorative item data includes:

从所述多个部位中确定待调整的至少一个目标部位;determining at least one target part to be adjusted from the plurality of parts;

对所述至少一个目标部位的骨骼数据进行调整。Adjusting the skeletal data of the at least one target part.

本公开实施例中,由于主体结构包括多个部位,可以针对多个 部位中的至少一个目标部位,对该目标部位的骨骼数据进行调整, 也即,可以进行骨骼数据的局部调整,而无需对整个主体结构的骨 骼数据进行调整,不仅有利于提高调整的效率,还可以节约资源。In the embodiment of the present disclosure, since the main body structure includes multiple parts, at least one target part in the multiple parts can be adjusted for the skeleton data of the target part, that is, the skeleton data can be adjusted locally without the need for Adjusting the skeletal data of the entire main structure not only helps to improve the efficiency of adjustment, but also saves resources.

一种可选的实施方式中,所述对所述至少一个目标部位的骨骼 数据进行调整之后,所述方法还包括:In an optional embodiment, after the skeletal data of the at least one target part is adjusted, the method further includes:

针对每个目标部位,判断调整后的目标部位的骨骼数据是否符 合预设要求;For each target part, determine whether the adjusted skeleton data of the target part meets the preset requirements;

在所述调整后的目标部位的骨骼数据不符合所述预设要求的情 况下,确定与所述目标部位相关联的其他部位;In the case that the skeleton data of the adjusted target part does not meet the preset requirements, determine other parts associated with the target part;

根据所述目标部位与所述其他部位之间的关联关系,对所述调 整后的目标部位的骨骼数据进行修正,以使修正后的目标部位的骨 骼数据符合所述预设要求。According to the association relationship between the target part and the other parts, the skeleton data of the adjusted target part is revised, so that the revised skeleton data of the target part meets the preset requirements.

本公开实施例中,若调整后的目标部位的骨骼数据不符合预设 要求,则根据目标部位与其他部位之间的关联关系,对调整后的目 标部位的骨骼数据进行修正,也即,可以实现目标部位与其他部位 之间的适配调整,使得各个部位之间的比例更加协调和美观,进而 提升用户的观赏体验。In this embodiment of the present disclosure, if the adjusted skeleton data of the target part does not meet the preset requirements, the adjusted skeleton data of the target part is modified according to the relationship between the target part and other parts, that is, it can be The adaptation adjustment between the target part and other parts is realized, so that the proportions between the parts are more coordinated and beautiful, thereby improving the user's viewing experience.

一种可选的实施方式中,所述对所述骨骼数据和/或所述装饰物 品数据进行调整,包括:In an optional implementation manner, the adjustment of the skeleton data and/or the decorative item data includes:

根据所述现实场景的环境信息,对所述装饰物品数据进行调 整。The decorative item data is adjusted according to the environmental information of the real scene.

本公开实施例中,能够根据现实场景的环境信息,自动对装饰物 品数据进行调整,也即,根据环境信息对装饰物品数据进行适配调 整,如此,使得装饰物品数据与现实场景更加贴合,进而提升用户 的观赏体验。In the embodiment of the present disclosure, the data of the decorative items can be automatically adjusted according to the environmental information of the real scene, that is, the data of the decorative items can be adapted and adjusted according to the environmental information, so that the data of the decorative items is more suitable for the real scene, Thereby, the viewing experience of the user is improved.

一种可选的实施方式中,所述装饰物品包括服装;所述根据所 述现实场景的环境信息,对所述装饰物品数据进行调整,包括:In an optional implementation manner, the decorative item includes clothing; and the data of the decorative item is adjusted according to the environmental information of the real scene, including:

根据所述环境信息,确定所述服装的类型以及所述服装的材 质;According to the environmental information, determine the type of the clothing and the material of the clothing;

基于所述服装的类型以及所述服装的材质,对所述装饰物品数 据的服装数据进行调整。The clothing data of the decorative item data is adjusted based on the type of clothing and the material of the clothing.

本公开实施例中,根据环境信息,确定服装的类型以及服装的材 质,基于服装的类型以及服装的材质,对服装数据进行调整,也 即,根据环境信息对服装数据进行适配调整,进而使得虚拟对象的 形象信息更加灵活以及更加贴合现实场景,进而提升用户的视觉体 验。In the embodiment of the present disclosure, the type of clothing and the material of the clothing are determined according to the environmental information, and the clothing data is adjusted based on the type of clothing and the material of the clothing, that is, the clothing data is adapted and adjusted according to the environmental information, so as to make The image information of the virtual object is more flexible and more suitable for the real scene, thereby improving the user's visual experience.

一种可选的实施方式中,所述调整所述形象信息的触发事件由 用户触发产生。In an optional implementation manner, the trigger event for adjusting the image information is triggered and generated by a user.

本公开实施例中,通过用户触发产生调整形象信息的触发事 件,也即不同的用户可以根据实际需求对形象信息进行调整,以实 现不同用户的不同需求,实现不同用户的个性化虚拟对象。In the embodiment of the present disclosure, a trigger event for adjusting image information is generated by user triggering, that is, different users can adjust image information according to actual needs, so as to meet different needs of different users and realize personalized virtual objects for different users.

本公开实施例还提供一种虚拟对象的形象调整装置,所述装置包 括:Embodiments of the present disclosure also provide a device for adjusting the image of a virtual object, the device comprising:

展示模块,用于在电子设备中展示虚拟对象的形象信息,所述 形象信息包括虚拟对象的主体结构以及附着于所述主体结构上的装 饰物品,其中,所述主体结构由3D渲染环境中的虚拟对象的骨骼数 据经渲染后生成,所述装饰物品由所述3D渲染环境中的装饰物品数 据经渲染后生成;The display module is used to display the image information of the virtual object in the electronic device, and the image information includes the main structure of the virtual object and the decorative items attached to the main structure, wherein the main structure is formed by the 3D rendering environment. The skeleton data of the virtual object is generated after rendering, and the decorative item is generated by rendering the decorative item data in the 3D rendering environment;

调整模块,用于在检测到调整所述形象信息的触发事件的情况 下,对所述骨骼数据和/或所述装饰物品数据进行调整,得到调整后 的目标骨骼数据和/或目标装饰物品数据;An adjustment module, configured to adjust the skeleton data and/or the decorative item data when a trigger event for adjusting the image information is detected to obtain adjusted target skeleton data and/or target decorative item data ;

渲染模块,用于对所述目标骨骼数据和/或所述目标装饰数据进 行渲染,生成调整后的虚拟对象的形象信息。A rendering module, configured to render the target skeleton data and/or the target decoration data, and generate the image information of the adjusted virtual object.

一种可选的实施方式中,所述展示模块具体用于:In an optional implementation manner, the display module is specifically used for:

获取所述电子设备所采集的现实场景图像;acquiring a real scene image collected by the electronic device;

基于所述现实场景图像,展示所述虚拟对象的形象信息。Based on the real scene image, image information of the virtual object is displayed.

一种可选的实施方式中,在所述虚拟对象的形象信息与所述现 实场景图像不匹配的情况下,确定检测到所述调整所述形象信息的 触发事件。In an optional implementation manner, in the case that the image information of the virtual object does not match the real scene image, it is determined that the trigger event for adjusting the image information is detected.

一种可选的实施方式中,所述展示模块还具体用于:In an optional implementation manner, the display module is also specifically used for:

基于所述现实场景的环境信息,确定所述虚拟对象的形象信息 与所述现实场景图像是否匹配,其中,所述环境信息包括所述现实 场景的天气信息、温度信息以及位置信息中的至少一种。Based on the environment information of the real scene, it is determined whether the image information of the virtual object matches the image of the real scene, wherein the environment information includes at least one of weather information, temperature information and location information of the real scene kind.

一种可选的实施方式中,所述主体结构包括多个部位;所述调 整模块具体用于:In an optional embodiment, the main body structure includes a plurality of parts; the adjustment module is specifically used for:

从所述多个部位中确定待调整的至少一个目标部位;determining at least one target part to be adjusted from the plurality of parts;

对所述至少一个目标部位的骨骼数据进行调整。Adjusting the skeletal data of the at least one target part.

一种可选的实施方式中,所述调整模块还具体用于:In an optional implementation manner, the adjustment module is also specifically used for:

针对每个目标部位,判断调整后的目标部位的骨骼数据是否符 合预设要求;For each target part, determine whether the adjusted skeleton data of the target part meets the preset requirements;

在所述调整后的目标部位的骨骼数据不符合所述预设要求的情 况下,确定与所述目标部位相关联的其他部位;In the case that the skeleton data of the adjusted target part does not meet the preset requirements, determine other parts associated with the target part;

根据所述目标部位与所述其他部位之间的关联关系,对所述调 整后的目标部位的骨骼数据进行修正,以使修正后的目标部位的骨 骼数据符合所述预设要求。According to the association relationship between the target part and the other parts, the skeleton data of the adjusted target part is revised, so that the revised skeleton data of the target part meets the preset requirements.

一种可选的实施方式中,所述调整模块具体用于:In an optional implementation manner, the adjustment module is specifically used for:

根据所述现实场景的环境信息,对所述装饰物品数据进行调 整。The decorative item data is adjusted according to the environmental information of the real scene.

一种可选的实施方式中,所述调整模块具体用于:In an optional implementation manner, the adjustment module is specifically used for:

根据所述环境信息,确定所述服装的类型以及所述服装的材 质;According to the environmental information, determine the type of the clothing and the material of the clothing;

基于所述服装的类型以及所述服装的材质,对所述装饰物品数 据的服装数据进行调整。The clothing data of the decorative item data is adjusted based on the type of clothing and the material of the clothing.

一种可选的实施方式中,所述调整所述形象信息的触发事件由 用户触发产生。In an optional implementation manner, the trigger event for adjusting the image information is triggered and generated by a user.

本公开实施例还提供一种电子设备,包括:处理器、存储器和 总线,所述存储器存储有所述处理器可执行的机器可读指令,当电 子设备运行时,所述处理器与所述存储器之间通过总线通信,所述 机器可读指令被所述处理器执行时执行上述虚拟对象的形象调整方 法。Embodiments of the present disclosure further provide an electronic device, including: a processor, a memory, and a bus, where the memory stores machine-readable instructions executable by the processor, and when the electronic device runs, the processor and the The memories communicate with each other through a bus, and the machine-readable instructions are executed by the processor to execute the above-mentioned method for adjusting the image of the virtual object.

本公开实施例还提供一种计算机可读存储介质,该计算机可读 存储介质上存储有计算机程序,该计算机程序被处理器运行时执行 上述虚拟对象的形象调整方法。Embodiments of the present disclosure further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is run by a processor, the above-mentioned method for adjusting the image of a virtual object is executed.

关于上述虚拟对象的形象调整装置、电子设备、及计算机可读 存储介质的效果描述参见上述虚拟对象的形象调整方法的说明,这 里不再赘述。For the description of the effect of the image adjustment apparatus, electronic device, and computer-readable storage medium of the virtual object, please refer to the description of the image adjustment method of the virtual object, which will not be repeated here.

为使本公开的上述目的、特征和优点能更明显易懂,下文特举 较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned objects, features and advantages of the present disclosure more obvious and easy to understand, the preferred embodiments are exemplified below, and are described in detail as follows in conjunction with the accompanying drawings.

附图说明Description of drawings

为了更清楚地说明本公开实施例的技术方案,下面将对实施例 中所需要使用的附图作简单地介绍,此处的附图被并入说明书中并 构成本说明书中的一部分,这些附图示出了符合本公开的实施例, 并与说明书一起用于说明本公开的技术方案。应当理解,以下附图 仅示出了本公开的某些实施例,因此不应被看作是对范围的限定, 对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还 可以根据这些附图获得其他相关的附图。In order to explain the technical solutions of the embodiments of the present disclosure more clearly, the following briefly introduces the accompanying drawings required in the embodiments, which are incorporated into the specification and constitute a part of the specification. The drawings illustrate embodiments consistent with the present disclosure, and together with the description, serve to explain the technical solutions of the present disclosure. It should be understood that the following drawings only show some embodiments of the present disclosure, and therefore should not be regarded as limiting the scope. Other related figures are obtained from these figures.

图1示出了本公开实施例所提供的一种虚拟对象的形象调整方 法的执行主体的示意图;Fig. 1 shows a schematic diagram of an execution body of a method for adjusting the image of a virtual object provided by an embodiment of the present disclosure;

图2为本公开实施例所提供的一种虚拟对象的形象调整方法的 流程图;Fig. 2 is the flow chart of the image adjustment method of a kind of virtual object provided by the embodiment of the present disclosure;

图3为本公开实施例所提供的一种虚拟对象的形象信息的示意 图;3 is a schematic diagram of image information of a virtual object provided by an embodiment of the present disclosure;

图4为本公开实施例所提供的一种展示虚拟对象的形象信息方 法的流程图;4 is a flowchart of a method for displaying image information of a virtual object provided by an embodiment of the present disclosure;

图5为本公开实施例所提供的一种产生触发事件的示意图;FIG. 5 is a schematic diagram of generating a trigger event according to an embodiment of the present disclosure;

图6为本公开实施例所提供的一种调整前的形象信息与调整后 的形象信息的示意图;6 is a schematic diagram of image information before adjustment and image information after adjustment according to an embodiment of the present disclosure;

图7为本公开实施例所提供的一种调整骨骼数据和/或装饰物品 数据的方法流程图;7 is a flowchart of a method for adjusting bone data and/or decorative item data according to an embodiment of the present disclosure;

图8为本公开实施例所提供的另一种调整骨骼数据和/或装饰物 品数据的方法流程图;8 is a flowchart of another method for adjusting bone data and/or decorative object data provided by an embodiment of the present disclosure;

图9为本公开实施例所提供的一种调整装饰物品数据的方法流 程图;9 is a flowchart of a method for adjusting decorative item data according to an embodiment of the present disclosure;

图10为本公开实施例所提供的一种虚拟对象的形象调整装置的 结构示意图;10 is a schematic structural diagram of a device for adjusting an image of a virtual object according to an embodiment of the present disclosure;

图11为本公开实施例所提供的另一种虚拟对象的形象调整装置 的结构示意图;11 is a schematic structural diagram of another apparatus for adjusting the image of a virtual object according to an embodiment of the present disclosure;

图12为本公开实施例所提供的一种电子设备的示意图。FIG. 12 is a schematic diagram of an electronic device provided by an embodiment of the present disclosure.

具体实施方式Detailed ways

为使本公开实施例的目的、技术方案和优点更加清楚,下面将 结合本公开实施例中附图,对本公开实施例中的技术方案进行清 楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分实施 例,而不是全部的实施例。通常在此处附图中描述和示出的本公开实施例的组件可以以各种不同的配置来布置和设计。因此,以下对 在附图中提供的本公开的实施例的详细描述并非旨在限制要求保护 的本公开的范围,而是仅仅表示本公开的选定实施例。基于本公开 的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本公开保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only These are some, but not all, embodiments of the present disclosure. The components of the disclosed embodiments generally described and illustrated in the drawings herein may be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the accompanying drawings is not intended to limit the scope of the disclosure as claimed, but is merely representative of selected embodiments of the disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the present disclosure.

应注意到:相似的标号和字母在下面的附图中表示类似项,因 此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对 其进行进一步定义和解释。It should be noted that like numerals and letters refer to like items in the following figures, so once an item is defined in one figure, it does not require further definition and explanation in subsequent figures.

本文中术语“和/或”,仅仅是描述一种关联关系,表示可以存在 三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A 和B,单独存在B这三种情况。另外,本文中术语“至少一种”表示 多种中的任意一种或多种中的至少两种的任意组合,例如,包括 A、B、C中的至少一种,可以表示包括从A、B和C构成的集合中 选择的任意一个或多个元素。The term "and/or" in this document only describes an association relationship, which means that there can be three kinds of relationships, for example, A and/or B can mean that A exists alone, A and B exist at the same time, and B exists alone. a situation. In addition, the term "at least one" herein refers to any combination of any one of the plurality or at least two of the plurality, for example, including at least one of A, B, and C, and may mean including from A, B, and C. Any one or more elements selected from the set of B and C.

近年来,虚拟对象直播在视频直播业务中占据着越来越大的比 例,虚拟对象直播是以特定的虚拟对象替代主播的真实形象进行视 频直播。然而,在虚拟对象的直播过程中,虚拟对象的展示效果是 由直播主体方进行控制的,也即,每个用户(观众)观看到的展示 效果是相同的,不能实现虚拟对象的个性化展示。In recent years, virtual object live broadcast has occupied a larger and larger proportion in the video live broadcast business. The virtual object live broadcast is a live video broadcast by replacing the real image of the host with a specific virtual object. However, during the live broadcast of virtual objects, the display effect of the virtual objects is controlled by the main party of the live broadcast, that is, each user (viewer) sees the same display effect, and the personalized display of virtual objects cannot be realized. .

基于上述研究,本公开实施例提供了一种虚拟对象的形象调整 方法,该方法包括:在电子设备中展示虚拟对象的形象信息,所述 形象信息包括虚拟对象的主体结构以及附着于所述主体结构上的装 饰物品,其中,所述主体结构由3D渲染环境中的虚拟对象的骨骼数 据经渲染后生成,所述装饰物品由所述3D渲染环境中的装饰物品数 据经渲染后生成;在检测到调整所述形象信息的触发事件的情况 下,对所述骨骼数据和/或所述装饰物品数据进行调整,得到调整后 的目标骨骼数据和/或目标装饰物品数据;对所述目标骨骼数据和/或 所述目标装饰数据进行渲染,生成调整后的虚拟对象的形象信息。Based on the above research, an embodiment of the present disclosure provides a method for adjusting the image of a virtual object. The method includes: displaying image information of a virtual object in an electronic device, where the image information includes a main body structure of the virtual object and a method attached to the main body. A decorative item on a structure, wherein the main structure is generated by rendering the skeleton data of a virtual object in a 3D rendering environment, and the decorative item is generated by rendering the decorative item data in the 3D rendering environment; In the case of adjusting the triggering event of the image information, adjust the skeleton data and/or the decorative item data to obtain the adjusted target skeleton data and/or target decorative item data; and/or the target decoration data is rendered to generate the adjusted image information of the virtual object.

本公开实施例中,在检测到调整形象信息的触发事件的情况 下,通过对骨骼数据和/或装饰物品数据进行调整,可以使得调整后 的形象信息更加丰富,能够满足不同用户对虚拟对象的形象需求, 进而提升用户的观赏体验。In the embodiment of the present disclosure, when a triggering event for adjusting the image information is detected, by adjusting the skeleton data and/or the decorative item data, the adjusted image information can be enriched, which can satisfy different users' needs for virtual objects. image requirements, thereby enhancing the user's viewing experience.

此外,在对虚拟对象的骨骼数据和/或装饰物品数据进行调整 时,可以将虚拟对象的骨骼与装饰物品进行分离,如此,降低了骨 骼与装饰物品之间的耦合性,也即,可以分别对骨骼数据和装饰物 品数据进行调整,使得虚拟对象的形象信息更加灵活,并且在渲染过程中互不影响,有利于节约资源。In addition, when adjusting the skeleton data and/or the decorative item data of the virtual object, the skeleton of the virtual object and the decorative item can be separated, thus reducing the coupling between the skeleton and the decorative item, that is, the skeleton and the decorative item can be separated. Adjusting the skeleton data and the decorative item data makes the image information of the virtual object more flexible, and does not affect each other during the rendering process, which is conducive to saving resources.

请参阅图1,为本公开实施例所提供的一种虚拟对象的形象调 整方法的执行主体的示意图,该方法的执行主体为电子设备100, 其中电子设备100可以包括终端。其中,终端可以是图1中所示智 能手机110、笔记本电脑120、平板电脑130等,还可以是图1中未 示出的智能音箱、智能手表、台式计算机等,并不限定。在其他实 施方式中,电子设备100可以包括服务器,其中,服务器可以是独 立的物理服务器,也可以是多个物理服务器构成的服务器集群或者 分布式系统,还可以是提供云服务、云数据库、云计算、云存储、 大数据和人工智能平台等基础云计算服务的云服务器。Please refer to FIG. 1 , which is a schematic diagram of an execution body of a method for adjusting an image of a virtual object according to an embodiment of the present disclosure. The execution body of the method is an electronic device 100, where the electronic device 100 may include a terminal. The terminal may be a smart phone 110, a notebook computer 120, a tablet computer 130, etc. shown in FIG. 1, or a smart speaker, a smart watch, a desktop computer, etc. not shown in FIG. 1, which is not limited. In other embodiments, the electronic device 100 may include a server, where the server may be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, or may provide cloud services, cloud databases, cloud Cloud servers for basic cloud computing services such as computing, cloud storage, big data, and artificial intelligence platforms.

在另一些实施方式中,电子设备100还可以包括AR (Augmented Reality,增强现实)设备、VR(Virtual Reality,虚拟 现实)设备、MR(Mixed Reality,混合现实)设备等。比如,AR 设备可以是具有AR功能的手机或平板电脑,也可以是AR眼镜,在 此不做限定。In other embodiments, the electronic device 100 may further include an AR (Augmented Reality, augmented reality) device, a VR (Virtual Reality, virtual reality) device, an MR (Mixed Reality, mixed reality) device, and the like. For example, the AR device may be a mobile phone or tablet with AR function, or AR glasses, which is not limited here.

在一些实施方式中,该虚拟对象的形象调整方法应用于电子设 备(比如图1中的智能手机110),也即该虚拟对象可以是在本地电 子设备中展示,还可以是在直播视频中所展示。在另一些实施方式 中,该虚拟对象的形象调整方法可以通过处理器调用存储器中存储 的计算机可读指令的方式来实现。In some embodiments, the method for adjusting the image of the virtual object is applied to an electronic device (such as the smartphone 110 in FIG. 1 ), that is, the virtual object may be displayed on the local electronic device or displayed in the live video. exhibit. In other embodiments, the method for adjusting the image of the virtual object may be implemented by the processor calling computer-readable instructions stored in the memory.

请参阅图2,图2为本公开实施例所提供的一种虚拟对象的形 象调整方法的流程图。如图2所示,本公开实施例提供的一种虚拟 对象的形象调整方法包括以下S101~S103:Please refer to FIG. 2, which is a flowchart of a method for adjusting the image of a virtual object according to an embodiment of the present disclosure. As shown in FIG. 2, a method for adjusting the image of a virtual object provided by an embodiment of the present disclosure includes the following S101-S103:

S101,在电子设备中展示虚拟对象的形象信息,所述形象信息 包括虚拟对象的主体结构以及附着于所述主体结构上的装饰物品, 其中,所述主体结构由3D渲染环境中的虚拟对象的骨骼数据经渲染 后生成,所述装饰物品由所述3D渲染环境中的装饰物品数据经渲染 后生成。S101. Display image information of a virtual object in an electronic device, where the image information includes a main structure of the virtual object and decorative items attached to the main structure, wherein the main structure is determined by the image of the virtual object in the 3D rendering environment. The skeleton data is generated after rendering, and the decorative item is generated by rendering the decorative item data in the 3D rendering environment.

其中,所述虚拟对象的主体结构由3D渲染环境中的虚拟对象的 骨骼数据经渲染后生成,也即,所述主体结构是指虚拟对象的骨骼 模型。Wherein, the main structure of the virtual object is generated by rendering the skeleton data of the virtual object in the 3D rendering environment, that is, the main structure refers to the skeleton model of the virtual object.

示例性地,请参见图3,为本公开实施例所提供的一种虚拟对 象的形象信息的示意图,如图3中所示,所述虚拟对象的形象信息 10包括虚拟对象的骨骼11(例如,虚拟对象的头、身体、四肢)以 及附着于骨骼11上的装饰物品12,其中,装饰物品12可以包括服 装(例如,衣服、鞋子、裤子或者裙子)以及配饰(例如,包、耳 环、雨伞、帽子或者项链等)。Exemplarily, please refer to FIG. 3 , which is a schematic diagram of avatar information of a virtual object provided by an embodiment of the present disclosure. As shown in FIG. 3 , the avatar information 10 of the virtual object includes the bones 11 of the virtual object (for example, , virtual object's head, body, limbs), and decorative items 12 attached to bones 11, where decorative items 12 may include clothing (eg, clothes, shoes, pants, or skirts) and accessories (eg, bags, earrings, umbrellas) , hat or necklace, etc.).

其中,3D渲染环境可以是运行于电子设备中的3D引擎,能够 基于待渲染数据生成基于一个或者多个视角的影像信息。虚拟对象 的形象信息包括虚拟对象的主体结构以及附着于主体结构上的装饰 物品,主体结构由虚拟对象的骨骼数据在3D引擎中经渲染后生成, 所述装饰物品由装饰物品数据在3D引擎中经渲染后生成。虚拟对象 可以包括虚拟人物形象、虚拟动物形象、虚拟卡通形象等,在此不 做限定。The 3D rendering environment may be a 3D engine running in the electronic device, which can generate image information based on one or more viewing angles based on the data to be rendered. The image information of the virtual object includes the main structure of the virtual object and the decorative items attached to the main structure. The main structure is generated by the skeleton data of the virtual object after rendering in the 3D engine, and the decorative items are generated by the decorative item data in the 3D engine. Generated after rendering. The virtual objects may include virtual characters, virtual animals, virtual cartoon images, etc., which are not limited here.

虚拟对象的形象信息由虚拟对象的形象数据经渲染后生成,其 中,虚拟对象的形象数据包括虚拟对象的骨骼数据以及装饰物品数 据。虚拟对象的形象数据可以运行于计算机CPU(Central Processing Unit,中央处理器)、GPU(Graphics Processing Unit,图形处理器)以及存储器中,其包含网格化的模型信息以及和贴图纹 理信息。相应地,作为示例,虚拟对象的形象数据包含但不限于网 格化的模型数据、体素数据及贴图纹理数据或者其组合。其中,网 格包括但不限于三角形网格、四边形网格、其他多边形网格或者其 组合。The image information of the virtual object is generated by rendering the image data of the virtual object, wherein the image data of the virtual object includes the skeleton data of the virtual object and the decorative item data. The image data of the virtual object may run in a computer CPU (Central Processing Unit, central processing unit), GPU (Graphics Processing Unit, graphics processing unit) and memory, and it includes meshed model information and texture information. Accordingly, by way of example, the avatar data of the virtual object includes, but is not limited to, meshed model data, voxel data, and texture data, or a combination thereof. Wherein, the meshes include but are not limited to triangular meshes, quadrilateral meshes, other polygonal meshes or combinations thereof.

可以理解,虚拟对象通过动作捕捉设备捕捉的控制信息驱动, 也即,虚拟对象的动作是由演员进行驱动的,示例性地,可以通过 动作捕捉设备获取虚拟对象的各个部位的控制信息。其中,动作捕 捉设备包括穿在演员身体上衣服及戴在演员手上的手套等。其中,衣服用于捕捉演员的肢体动作,手套用于捕捉演员的手部动作。具 体的,该动作捕捉设备包含多个待识别特征点,该多个待识别特征 点可以与演员骨骼的关键点对应。例如,可以在动作捕捉设备与演 员骨骼的各个关节(如膝关节、肘关节、指关节)对应处设置特征 点,该特征点可以通过特定材料(如纳米材料)制成,进而可以通 过摄像头来获取该多个特征点的位置信息,得到控制信息。It can be understood that the virtual object is driven by the control information captured by the motion capture device, that is, the action of the virtual object is driven by the actor, for example, the control information of each part of the virtual object can be obtained through the motion capture device. Among them, the motion capture equipment includes clothes worn on the actor's body and gloves on the actor's hands. Among them, the clothes are used to capture the actor's body movements, and the gloves are used to capture the actor's hand movements. Specifically, the motion capture device includes a plurality of feature points to be recognized, and the plurality of feature points to be recognized may correspond to key points of the actor's skeleton. For example, feature points can be set at the corresponding joints of the motion capture device and the actor's bones (such as knee joints, elbow joints, and finger joints). The position information of the multiple feature points is acquired to obtain the control information.

相应地,为了实现对虚拟对象的驱动,虚拟对象包含了与该多 个待识别特征点匹配的受控特征点,例如,演员的肘关节的待识别 特征点与虚拟对象的肘关节受控点相匹配,也即,演员的骨骼关键 点与虚拟对象的骨骼关键点之间存在一一对应的关系,如此,在获 取到演员的肘关节的待识别特征点的控制信息后,即可驱动虚拟对 象的肘关节相应的改变,进而由有多个受控点的变化形成虚拟对象 的动作变化。Correspondingly, in order to realize the driving of the virtual object, the virtual object includes controlled feature points that match the plurality of feature points to be identified, for example, the feature points to be identified of the elbow joint of the actor and the controlled point of the elbow joint of the virtual object. Matching, that is, there is a one-to-one correspondence between the key points of the bones of the actor and the key points of the bones of the virtual object. In this way, after the control information of the feature points to be identified of the elbow joint of the actor is obtained, the virtual object can be driven. The elbow joint of the object changes correspondingly, and the movement of the virtual object is formed by the change of a plurality of controlled points.

为了提升用户的观赏体验,本公开实施例将虚拟对象的形象信 息与现实场景进行结合展示,也即,针对步骤S101,在电子设备中 展示虚拟对象的形象信息时,参见图4,可以包括以下 S1011~S1012:In order to improve the viewing experience of the user, the embodiment of the present disclosure displays the image information of the virtual object in combination with the real scene. That is, for step S101, when displaying the image information of the virtual object in the electronic device, referring to FIG. 4, the following may be included S1011~S1012:

S1011,获取所述电子设备所采集的现实场景图像。S1011: Acquire a real scene image collected by the electronic device.

S1012,基于所述现实场景图像,展示所述虚拟对象的形象信 息。S1012, based on the real scene image, display the image information of the virtual object.

可以理解,可以通过电子设备上所设置的摄像装置采集现实场 景的图像。然后,可以根据现实场景图像中的内容,基于增强现实 (Augmented Reality,AR)技术,在现实场景图像的基础上,展示 虚拟对象的形象信息。It can be understood that the image of the real scene can be collected by the camera device provided on the electronic device. Then, according to the content in the real scene image, based on Augmented Reality (AR) technology, on the basis of the real scene image, the image information of the virtual object can be displayed.

示例性地,若现实场景图像中存在一张桌子,则可以在桌子上 展示虚拟对象的形象信息,也即,虚拟对象可以站在桌子上进行表 演。如此,可以将虚拟对象的形象信息与真实场景相结合,以呈现 出虚实结合的效果,进而提升用户的观看体验。Exemplarily, if there is a table in the real scene image, the image information of the virtual object can be displayed on the table, that is, the virtual object can stand on the table to perform. In this way, the image information of the virtual object can be combined with the real scene to present the effect of combining the virtual and the real, thereby improving the user's viewing experience.

其中,增强现实(Augmented Reality,AR)技术是一种将虚拟 信息与真实场景巧妙融合的技术,广泛运用了多媒体、三维建模、 实时跟踪及注册、智能交互、传感等多种技术手段,将计算机生成 的文字、图像、三维模型、音乐、视频等虚拟信息模拟仿真后,应 用到真实场景中,两种信息互为补充,从而实现对真实场景的“增 强”。Among them, Augmented Reality (AR) technology is a technology that ingeniously integrates virtual information and real scenes. The computer-generated text, images, 3D models, music, videos and other virtual information are simulated and applied to the real scene, and the two kinds of information complement each other, thereby realizing the "enhancement" of the real scene.

S102,在检测到调整所述形象信息的触发事件的情况下,对所 述骨骼数据和/或所述装饰物品数据进行调整,得到调整后的目标骨 骼数据和/或目标装饰物品数据。S102, when a trigger event for adjusting the image information is detected, adjust the skeleton data and/or the decorative item data to obtain adjusted target skeleton data and/or target decorative item data.

在一些实施方式中,所述调整所述形象信息的触发事件是由用 户触发产生的。示例性地,请参见图5,为本公开实施例所提供的 一种产生触发事件的示意图,如图5中所示,在电子设备A中展示 虚拟对象的形象信息的显示屏A1中,还可以展示调整形象信息的触发图标A2,响应于用户针对该触发图标A2的触发操作,即可产生 调整形象信息的触发事件。In some embodiments, the triggering event for adjusting the avatar information is triggered by a user. 5, which is a schematic diagram of generating a trigger event provided by an embodiment of the present disclosure, as shown in FIG. A trigger icon A2 for adjusting the image information can be displayed, and in response to a user's triggering operation on the trigger icon A2, a trigger event for adjusting the image information can be generated.

需要说明的是,图5所示出的产生触发事件的过程仅是示意性 的,在其他实施方式中,该触发事件还可以是通过其他方式产生 的,例如,还可以是响应于用户点击虚拟对象的形象信息10的任一 区域,即可产生触发事件,在此不做限定。It should be noted that the process of generating a trigger event shown in FIG. 5 is only illustrative, and in other embodiments, the trigger event may also be generated in other ways, for example, in response to a user clicking a virtual Any area of the object's image information 10 can generate a trigger event, which is not limited here.

根据上述内容可知,由于每个用户都可以对其看到的虚拟对象 的形象信息进行调整,不会影响其他用户的观看,因此,不同用户 看到的虚拟对象的形象信息可能是不同的,例如,用户张三看到的 虚拟对象是高挑的形象,并穿着裙子;而用户李四看到的虚拟对象 是瘦小的形象,并穿着运动外套。According to the above content, since each user can adjust the image information of the virtual object that he sees, it will not affect the viewing of other users. Therefore, the image information of the virtual object seen by different users may be different. For example, , the virtual object seen by user Zhang San is a tall figure wearing a skirt; while the virtual object seen by user Li Si is a thin figure wearing a sports jacket.

在其他实施例中,由于虚拟对象的形象信息是在现实场景图像 的基础上展示的,因此,除上述实施例中的手动触发方式,还可以 通过自动触发的方式来调整所述形象信息,比如,在所述虚拟对象 的形象信息与所述现实场景图像不匹配的情况下,则可以检测到所 述调整所述形象信息的触发事件,并自动对形象信息进行调整。示 例性地,若虚拟对象的衣服色调与现实场景图像的色调不匹配,此 时,确定检测到该触发事件,进而对所述虚拟对象的衣服的数据进 行调整,直至色调匹配,并得到调整后的目标装饰物品数据。In other embodiments, since the image information of the virtual object is displayed on the basis of the real scene image, in addition to the manual triggering method in the above embodiment, the image information can also be adjusted by an automatic triggering method, such as , in the case that the image information of the virtual object does not match the real scene image, the trigger event for adjusting the image information can be detected, and the image information can be adjusted automatically. Exemplarily, if the color tone of the clothes of the virtual object does not match the color tone of the real scene image, at this time, it is determined that the trigger event is detected, and then the data of the clothes of the virtual object is adjusted until the color tone matches, and the adjusted value is obtained. The target decoration item data.

在一些实施方式中,在判断所述虚拟对象的形象信息与所述现 实场景图像是否匹配时,可以基于所述现实场景的环境信息,确定 所述虚拟对象的形象信息是否与所述现实场景图像是否匹配,其 中,所述环境信息包括所述现实场景的天气信息、温度信息以及位 置信息中的至少一种。In some embodiments, when judging whether the image information of the virtual object matches the real scene image, it may be determined whether the image information of the virtual object matches the real scene image based on the environment information of the real scene Whether it matches, wherein the environment information includes at least one of weather information, temperature information and location information of the real scene.

示例性地,若现实场景的天气信息为下雨,而展示出的虚拟对 象的形象信息并未撑伞,如此,认为虚拟对象的形象信息与所述现 实场景图像不匹配。再比如,若现实场景的温度信息为零下20度, 而展示出的虚拟对象的形象信息是穿着裙子的,如此,也会认为虚拟对象的形象信息与所述现实场景图像不匹配。然后,若检测到虚 拟对象的形象信息与所述现实场景图像不匹配,也即,检测到调整 所述形象信息的触发事件的情况下,则可以调整所述骨骼数据和/或 所述装饰物品数据,例如,在装饰物品数据中添加雨伞的数据等。Exemplarily, if the weather information of the real scene is rain, and the displayed image information of the virtual object does not hold an umbrella, it is considered that the image information of the virtual object does not match the image of the real scene. For another example, if the temperature information of the real scene is minus 20 degrees, and the displayed image information of the virtual object is wearing a skirt, it will also be considered that the image information of the virtual object does not match the image of the real scene. Then, if it is detected that the image information of the virtual object does not match the real scene image, that is, when a trigger event for adjusting the image information is detected, the skeleton data and/or the decorative item can be adjusted Data, for example, add umbrella data to decorative item data, etc.

S103,对所述目标骨骼数据和/或所述目标装饰数据进行渲染, 生成调整后的虚拟对象的形象信息。S103: Render the target skeleton data and/or the target decoration data to generate adjusted image information of the virtual object.

可以理解,在得到调整后的目标骨骼数据以及目标装饰数据 后,需要再次进行渲染,如此,即可生成调整后的虚拟对象的形象 信息并对其进行展示。It can be understood that after obtaining the adjusted target skeleton data and target decoration data, it needs to be rendered again, so that the image information of the adjusted virtual object can be generated and displayed.

本实施方式中,以虚拟对象的形象信息与现实场景的天气信息 不匹配为例进行详细说明。示例性地,请同时参见图6和图7,图6 为本公开实施例所提供的一种调整前的形象信息的示意图,图7为 调整后的形象信息的示意图。如图6中所示,现实场景的天气信息指示当前天气为雨天,当前展示出的虚拟对象的形象信息中不包括 雨伞,也即,虚拟对象的形象信息与现实场景的天气信息是不匹配 的,此时需要对虚拟形象的装饰物品数据进行调整,然后对调整后 的装饰物品数据进行渲染,得到如图7中所展示出的调整后的形象信息,如图7中所示,调整后的虚拟对象的形象信息中包括雨伞。In the present embodiment, the image information of the virtual object does not match the weather information of the real scene as an example for detailed description. Exemplarily, please refer to FIG. 6 and FIG. 7 at the same time, FIG. 6 is a schematic diagram of image information before adjustment provided by an embodiment of the present disclosure, and FIG. 7 is a schematic diagram of image information after adjustment. As shown in FIG. 6 , the weather information of the real scene indicates that the current weather is rainy, and the image information of the virtual object currently displayed does not include an umbrella, that is, the image information of the virtual object does not match the weather information of the real scene , at this time, it is necessary to adjust the decorative item data of the virtual image, and then render the adjusted decorative item data to obtain the adjusted image information shown in Figure 7. As shown in Figure 7, the adjusted The image information of the virtual object includes an umbrella.

本公开实施例中,在检测到调整形象信息的触发事件的情况 下,通过对骨骼数据和/或装饰物品数据进行调整,可以使得调整后 的形象信息更加丰富,能够满足不同用户对虚拟对象的形象需求, 进而提升用户的观赏体验。此外,在对虚拟对象的骨骼数据和/或装 饰物品数据进行调整时,可以将虚拟对象的骨骼与装饰物品进行分 离,如此,降低了骨骼与装饰物品之间的耦合性,也即,可以分别 对骨骼数据和装饰物品数据进行调整,互不影响,使得虚拟对象的 形象信息更加灵活,有利于节约资源。In the embodiment of the present disclosure, when a triggering event for adjusting the image information is detected, by adjusting the skeleton data and/or the decorative item data, the adjusted image information can be enriched, which can satisfy different users' needs for virtual objects. image requirements, thereby enhancing the user's viewing experience. In addition, when adjusting the skeleton data and/or decorative item data of the virtual object, the skeleton of the virtual object and the decorative item can be separated, so that the coupling between the skeleton and the decorative item is reduced, that is, the skeleton and the decorative item can be separated. Adjusting the skeleton data and the decorative item data without affecting each other makes the image information of the virtual object more flexible, which is beneficial to saving resources.

在一些实施方式中,所述主体结构包括多个部位,例如,主体 结构包括:四肢、头部、身体以及面部,以及四肢还可以包括胳 膊、腿部;面部还包括耳朵、鼻子、嘴、眉毛以及眼睛等。因此, 在对所述骨骼数据和/或所述装饰物品数据进行调整时,可以对多个 部位进行调整,例如,响应于用户的选择操作,从多个部位中确定 出眼睛和眉毛,并对眼睛和眉毛所对应的骨骼数据进行调整。再比 如,还可以响应于用户针对虚拟对象的面部的拖拽操作(或者响应 于用户针对“捏脸”图标的触发操作),来调整虚拟对象的面部骨骼 数据。In some embodiments, the main structure includes multiple parts, for example, the main structure includes: limbs, head, body and face, and limbs can also include arms, legs; face also includes ears, nose, mouth, eyebrows and eyes etc. Therefore, when adjusting the skeleton data and/or the decorative item data, a plurality of parts may be adjusted, for example, in response to a user's selection operation, eyes and eyebrows are determined from the plurality of parts, and the Adjust the skeleton data corresponding to the eyes and eyebrows. For another example, the facial skeleton data of the virtual object can also be adjusted in response to the user's drag operation on the face of the virtual object (or in response to the user's triggering operation on the "pinch face" icon).

也即,所述主体结构包括多个部位;在对所述骨骼数据和/或所 述装饰物品数据进行调整时,请参见图8,包括以下S701~S702:That is, the main body structure includes multiple parts; when adjusting the skeleton data and/or the decorative item data, please refer to FIG. 8 , including the following S701-S702:

S701,从所述多个部位中确定待调整的至少一个目标部位;S701, determining at least one target part to be adjusted from the multiple parts;

S702,对所述至少一个目标部位的骨骼数据进行调整。S702: Adjust the skeleton data of the at least one target part.

需要说明的是,在上述调整的过程中,尽管虚拟对象的骨骼数 据发生变化,但是虚拟对象的神态或者表情是不会变化的,也即, 由于虚拟对象的表情以及神态是由演员驱动的,因此,调整骨骼数 据不会影响虚拟对象的正常表演,例如,若当前虚拟对象在表演哭戏,不同用户看到的虚拟对象的形象信息是不同的(例如,身高不 同,胖瘦不同或者装饰不同),但是不同用户看到的虚拟对象都是处 于哭的状态。It should be noted that, in the process of the above adjustment, although the skeleton data of the virtual object changes, the demeanor or expression of the virtual object will not change, that is, since the expression and demeanor of the virtual object are driven by the actor, Therefore, adjusting the skeleton data will not affect the normal performance of the virtual object. For example, if the current virtual object is performing a crying scene, the image information of the virtual object seen by different users is different (for example, different heights, different fat and thin or different decorations). ), but the virtual objects seen by different users are all in a crying state.

本实施方式中,可以实现骨骼数据的局部调整,而无需对整个 主体结构的骨骼数据进行调整,不仅有利于提高调整的效率,还可 以节约资源。In this embodiment, local adjustment of the skeleton data can be realized without adjusting the skeleton data of the entire main body structure, which is not only beneficial to improve the efficiency of the adjustment, but also saves resources.

可以理解,在实际调整的过程中,在对目标部位的骨骼数据进 行调整时,还需要确保虚拟对象的形象信息的美观度,因此,请参 见图9,在步骤S702之后,所述方法还可以包括以下S703~S705:It can be understood that in the actual adjustment process, when adjusting the skeleton data of the target part, it is also necessary to ensure the aesthetics of the image information of the virtual object. Therefore, referring to FIG. 9 , after step S702, the method can also Including the following S703~S705:

S703,针对每个目标部位,判断调整后的目标部位的骨骼数据 是否符合预设要求。S703, for each target part, determine whether the adjusted skeleton data of the target part meets the preset requirements.

其中,针对不同部位,其对应的预设要求均不同,示例性地, 针对眼睛和眉毛,其对应的预设要求是不相同的,例如,眼睛的长 度对应的预设要求的范围是2cm-3cm、宽度对应的预设要求的范围 是1cm-2cm,眉毛的长度对应的预设要求的范围可以是2cm-4cm、 宽度对应的预设要求的范围是1cm-1.5cm,在此不做限定。并且, 眼睛的上边缘与眉毛之间的距离也具有预设范围,例如0.5cm- 1.5cm。Wherein, for different parts, the corresponding preset requirements are different, for example, for eyes and eyebrows, the corresponding preset requirements are different, for example, the range of the preset requirements corresponding to the length of the eyes is 2cm- The range of preset requirements corresponding to 3cm and width is 1cm-2cm, the range of preset requirements corresponding to the length of the eyebrows can be 2cm-4cm, and the range of preset requirements corresponding to width is 1cm-1.5cm, which is not limited here. . Also, the distance between the upper edge of the eye and the eyebrow also has a preset range, for example, 0.5cm-1.5cm.

需要说明的是,上述举例说明的预设要求的范围仅是示例性 的,在实际应用过程中,可以根据实际因素和实际需求进行设置, 并且,针对不同的虚拟对象,都具有其各自不同部位所对应的不同 的预设要求。It should be noted that the range of the preset requirements described above is only an example, and in the actual application process, it can be set according to actual factors and actual needs, and, for different virtual objects, each has its own different parts. The corresponding different preset requirements.

S704,在所述调整后的目标部位的骨骼数据不符合所述预设要 求的情况下,确定与所述目标部位相关联的其他部位。S704, in the case that the adjusted skeleton data of the target part does not meet the preset requirements, determine other parts associated with the target part.

示例性地,若调整后的眼睛的骨骼数据所指示的眼睛的长度和 宽度不符合预设要求,则可以确定与眼睛相关联的其他部位,包括 眉毛以及鼻子。Exemplarily, if the length and width of the eyes indicated by the adjusted skeletal data of the eyes do not meet the preset requirements, other parts associated with the eyes may be determined, including the eyebrows and the nose.

S705,根据所述目标部位与所述其他部位之间的关联关系,对 所述调整后的目标部位的骨骼数据进行修正,以使修正后的目标部 位的骨骼数据符合所述预设要求。S705, according to the association relationship between the target part and the other parts, modify the skeleton data of the adjusted target part, so that the skeleton data of the revised target part meets the preset requirements.

其中,所述目标部位与所述其他部位之间的关联关系可以是尺 寸关联关系,位置关联关系等,在此不做限定。Wherein, the relationship between the target part and the other parts may be a size relationship, a position relationship, etc., which is not limited here.

示例性地,可以根据眼睛与眉毛之间的位置关系,对调整后的 眼睛的骨骼数据进行修正,比如,若眼睛与眉毛之间的距离小于预 设范围的最小值0.5cm,则需要将眼睛的骨骼数据进行修正,直至 修正后的眼睛的骨骼数据指示眼睛与眉毛之间的距离满足预设范围。如此,可以实现目标部位与其他部位之间的适配调整,使得各 个部位之间的比例更加协调和美观,进而提升用户的观赏体验。Exemplarily, the skeleton data of the adjusted eye can be corrected according to the positional relationship between the eyes and the eyebrows. For example, if the distance between the eyes and the eyebrows is less than the minimum value of 0.5 cm in the preset range, The skeletal data of the eye is corrected until the corrected skeleton data of the eye indicates that the distance between the eye and the eyebrow satisfies the preset range. In this way, the adaptation adjustment between the target part and other parts can be realized, so that the proportions between the parts are more coordinated and beautiful, thereby improving the user's viewing experience.

在一些实施方式中,为了丰富虚拟对象的形象信息,在对所述 骨骼数据和/或所述装饰物品数据进行调整时,还可以根据所述现实 场景的环境信息,对所述装饰物品数据进行调整。示例性地,若现 实场景的温度信息为32摄氏度,则可以添加太阳帽的装饰物品数 据,以对装饰物品数据进行调整。In some embodiments, in order to enrich the image information of the virtual object, when adjusting the skeleton data and/or the decorative item data, the decorative item data may also be adjusted according to the environmental information of the real scene. Adjustment. Exemplarily, if the temperature information of the real scene is 32 degrees Celsius, the decorative item data of the sun hat may be added to adjust the decorative item data.

本实施方式中,由于装饰物品包括服装,因此,在根据所述现 实场景的环境信息,对所述装饰物品数据进行调整时,请参见图 10,包括以下S901~S902:In this embodiment, since the decorative item includes clothing, when the data of the decorative item is adjusted according to the environmental information of the real scene, please refer to FIG. 10 , including the following S901-S902:

S901,根据所述环境信息,确定所述服装的类型以及所述服装 的材质。S901, according to the environmental information, determine the type of the clothing and the material of the clothing.

S902,基于所述服装的类型以及所述服装的材质,对所述装饰 物品数据的服装数据进行调整。S902, based on the type of the clothing and the material of the clothing, adjust the clothing data of the decorative item data.

可以理解,可以根据所述环境信息中的天气信息,温度信息以 及位置信息中的至少一种,确定所述服装的类型以及所述服装的材 质。例如,若温度信息指示当前温度为零下20度,则可以确定服装 的类型为外套,所述服装的材质可以是羽绒材质。It can be understood that the type of the clothing and the material of the clothing can be determined according to at least one of weather information, temperature information and location information in the environmental information. For example, if the temperature information indicates that the current temperature is minus 20 degrees, it can be determined that the type of clothing is a jacket, and the material of the clothing can be down.

然后,在确定服装的类型和材质之后,可以对服装数据进行调 整,如此,可以使得虚拟对象的形象信息能够与环境信息更加贴 合,进而提升用户的观看体验。Then, after determining the type and material of the clothing, the clothing data can be adjusted, so that the image information of the virtual object can be more closely matched with the environmental information, thereby improving the user's viewing experience.

本领域技术人员可以理解,在具体实施方式的上述方法中,各 步骤的撰写顺序并不意味着严格的执行顺序而对实施过程构成任何 限定,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确 定。Those skilled in the art can understand that in the above method of the specific implementation, the writing order of each step does not mean a strict execution order but constitutes any limitation on the implementation process, and the specific execution order of each step should be based on its function and possible Internal logic is determined.

基于同一发明构思,本公开实施例中还提供了与虚拟对象的形 象调整方法对应的虚拟对象的形象调整装置,由于本公开实施例中 的装置解决问题的原理与本公开实施例上述虚拟对象的形象调整方 法相似,因此装置的实施可以参阅方法的实施,重复之处不再赘 述。Based on the same inventive concept, the embodiment of the present disclosure also provides a device for adjusting the image of a virtual object corresponding to the method for adjusting the image of the virtual object. The image adjustment methods are similar, so the implementation of the device can refer to the implementation of the method, and the repetition will not be repeated.

请参阅图11,为本公开实施例提供的一种虚拟对象的形象调整 装置的结构示意图,所述虚拟对象的形象调整装置1000包括:展示 模块1010、调整模块1020以及渲染模块1030;其中,Please refer to FIG. 11 , which is a schematic structural diagram of a device for adjusting the image of a virtual object according to an embodiment of the present disclosure. The device for adjusting the image of a virtual object 1000 includes: a display module 1010, an adjustment module 1020, and a rendering module 1030; wherein,

展示模块1010,用于在电子设备中展示虚拟对象的形象信息, 所述形象信息包括虚拟对象的主体结构以及附着于所述主体结构上 的装饰物品,其中,所述主体结构由3D渲染环境中的虚拟对象的骨 骼数据经渲染后生成,所述装饰物品由所述3D渲染环境中的装饰物 品数据经渲染后生成;The display module 1010 is used to display the image information of the virtual object in the electronic device, the image information includes the main structure of the virtual object and the decorative items attached to the main structure, wherein the main structure is displayed in the 3D rendering environment. The skeleton data of the virtual object is generated after rendering, and the decorative item is generated by rendering the decorative item data in the 3D rendering environment;

调整模块1020,用于在检测到调整所述形象信息的触发事件的 情况下,对所述骨骼数据和/或所述装饰物品数据进行调整,得到调 整后的目标骨骼数据和/或目标装饰物品数据;The adjustment module 1020 is configured to adjust the skeleton data and/or the decorative item data in the case of detecting a triggering event for adjusting the image information to obtain the adjusted target skeleton data and/or the target decorative item data;

渲染模块1030,用于对所述目标骨骼数据和/或所述目标装饰数 据进行渲染,生成调整后的虚拟对象的形象信息。The rendering module 1030 is configured to render the target bone data and/or the target decoration data, and generate the image information of the adjusted virtual object.

一种可选的实施方式中,所述展示模块1010具体用于:In an optional implementation manner, the display module 1010 is specifically used for:

获取所述电子设备所采集的现实场景图像;obtaining the real scene image collected by the electronic device;

基于所述现实场景图像,展示所述虚拟对象的形象信息。Based on the real scene image, image information of the virtual object is displayed.

一种可选的实施方式中,在所述虚拟对象的形象信息与所述现 实场景图像不匹配的情况下,确定检测到所述调整所述形象信息的 触发事件。In an optional implementation manner, in the case that the image information of the virtual object does not match the real scene image, it is determined that the trigger event for adjusting the image information is detected.

一种可选的实施方式中,所述展示模块1010还具体用于:In an optional implementation manner, the display module 1010 is further specifically used for:

基于所述现实场景的环境信息,确定所述虚拟对象的形象信息 与所述现实场景图像是否匹配,其中,所述环境信息包括所述现实 场景的天气信息、温度信息以及位置信息中的至少一种。Based on the environment information of the real scene, it is determined whether the image information of the virtual object matches the image of the real scene, wherein the environment information includes at least one of weather information, temperature information and location information of the real scene kind.

一种可选的实施方式中,所述主体结构包括多个部位;所述调 整模块1020具体用于:In an optional embodiment, the main body structure includes a plurality of parts; the adjustment module 1020 is specifically used for:

从所述多个部位中确定待调整的至少一个目标部位;determining at least one target part to be adjusted from the plurality of parts;

对所述至少一个目标部位的骨骼数据进行调整。Adjusting the skeletal data of the at least one target part.

一种可选的实施方式中,所述调整模块1020还具体用于:In an optional implementation manner, the adjustment module 1020 is further specifically configured to:

针对每个目标部位,判断调整后的目标部位的骨骼数据是否符 合预设要求;For each target part, determine whether the adjusted skeleton data of the target part meets the preset requirements;

在所述调整后的目标部位的骨骼数据不符合所述预设要求的情 况下,确定与所述目标部位相关联的其他部位;In the case that the skeleton data of the adjusted target part does not meet the preset requirements, determine other parts associated with the target part;

根据所述目标部位与所述其他部位之间的关联关系,对所述调 整后的目标部位的骨骼数据进行修正,以使修正后的目标部位的骨 骼数据符合所述预设要求。According to the association relationship between the target part and the other parts, the skeleton data of the adjusted target part is revised, so that the revised skeleton data of the target part meets the preset requirements.

一种可选的实施方式中,所述调整模块1020具体用于:In an optional implementation manner, the adjustment module 1020 is specifically configured to:

根据所述现实场景的环境信息,对所述装饰物品数据进行调 整。The decorative item data is adjusted according to the environmental information of the real scene.

一种可选的实施方式中,所述调整模块1020具体用于:In an optional implementation manner, the adjustment module 1020 is specifically configured to:

根据所述环境信息,确定所述服装的类型以及所述服装的材 质;According to the environmental information, determine the type of the clothing and the material of the clothing;

基于所述服装的类型以及所述服装的材质,对所述装饰物品数 据的服装数据进行调整。The clothing data of the decorative item data is adjusted based on the type of clothing and the material of the clothing.

一种可选的实施方式中,所述调整所述形象信息的触发事件由 用户触发产生。In an optional implementation manner, the trigger event for adjusting the image information is triggered and generated by a user.

关于装置中的各模块的处理流程、以及各模块之间的交互流程的 描述可以参照上述方法实施例中的相关说明,这里不再详述。For the description of the processing flow of each module in the apparatus and the interaction flow between the modules, reference may be made to the relevant descriptions in the foregoing method embodiments, which will not be described in detail here.

基于同一技术构思,本公开实施例还提供了一种电子设备。参 照图12所示,为本公开实施例提供的电子设备800的结构示意图, 包括处理器801、存储器802、和总线803。其中,存储器802用于 存储执行指令,包括内存8021和外部存储器8022;这里的内存 8021也称内存储器,用于暂时存放处理器801中的运算数据,以及 与硬盘等外部存储器8022交换的数据,处理器801通过内存8021 与外部存储器8022进行数据交换。Based on the same technical concept, an embodiment of the present disclosure also provides an electronic device. Referring to FIG. 12 , a schematic structural diagram of an electronic device 800 provided by an embodiment of the present disclosure includes a processor 801, a memory 802, and a bus 803. Among them, the memory 802 is used to store the execution instructions, including the memory 8021 and the external memory 8022; the memory 8021 here is also called the internal memory, and is used to temporarily store the operation data in the processor 801 and the data exchanged with the external memory 8022 such as the hard disk, The processor 801 exchanges data with the external memory 8022 through the memory 8021 .

本申请实施例中,存储器802具体用于存储执行本申请方案的 应用程序代码,并由处理器801来控制执行。也即,当电子设备 800运行时,处理器801与存储器802之间通过总线803通信,使得 处理器801执行存储器802中存储的应用程序代码,进而执行前述 任一实施例中的方法。In the embodiment of the present application, the memory 802 is specifically used to store the application code for executing the solution of the present application, and the processor 801 controls the execution. That is, when the electronic device 800 is running, the processor 801 communicates with the memory 802 through the bus 803, so that the processor 801 executes the application code stored in the memory 802, and then executes the method in any of the foregoing embodiments.

处理器801可能是一种集成电路芯片,具有信号的处理能力。 上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(NetworkProcessor,NP) 等;还可以是数字信号处理器(DSP)、专用集成电路(ASIC)、现 场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶 体管逻辑器件、分立硬件组件。可以实现或者执行本公开实施例中 的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或 者该处理器也可以是任何常规的处理器等。The processor 801 may be an integrated circuit chip with signal processing capability. The above-mentioned processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), Field Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The disclosed methods, steps and logical block diagrams in the embodiments of the present disclosure can be implemented or executed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.

其中,存储器802可以是,但不限于,随机存取存储器(Random Access Memory,RAM),只读存储器(Read Only Memory,ROM),可编程只读存储器(Programmable Read-Only Memory,PROM),可擦除只读存储器(Erasable Programmable Read -Only Memory,EPROM),电可擦除只读存储器(Electric Erasable Programmable Read-Only Memory,EEPROM)等。Wherein, the memory 802 may be, but not limited to, random access memory (Random Access Memory, RAM), read only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), or Erasable Read-Only Memory (Erasable Programmable Read-Only Memory, EPROM), Electrical Erasable Programmable Read-Only Memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc.

可以理解的是,本申请实施例示意的结构并不构成对电子设备 800的具体限定。在本申请另一些实施例中,电子设备800可以包括 比图示更多或更少的部件,或者组合某些部件,或者拆分某些部 件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 800. In other embodiments of the present application, the electronic device 800 may include more or less components than those shown, or some components may be combined, or some components may be separated, or different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

本公开实施例还提供一种计算机可读存储介质,该计算机可读 存储介质上存储有计算机程序,该计算机程序被处理器运行时执行 上述方法实施例中所述的虚拟对象的形象调整方法的步骤。其中, 该存储介质可以是易失性或非易失的计算机可读取存储介质。Embodiments of the present disclosure further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is run by a processor, the method for adjusting the image of a virtual object described in the above method embodiments is executed. step. Wherein, the storage medium may be a volatile or non-volatile computer-readable storage medium.

本公开实施例还提供一种计算机程序产品,该计算机程序产品 承载有程序代码,所述程序代码包括的指令可用于执行上述方法实 施例中所述的虚拟对象的形象调整方法的步骤,具体可参阅上述方 法实施例,在此不再赘述。Embodiments of the present disclosure further provide a computer program product, where the computer program product carries program codes, and the instructions included in the program codes can be used to execute the steps of the method for adjusting the image of a virtual object described in the above method embodiments. Refer to the above method embodiments, which are not repeated here.

其中,上述计算机程序产品可以具体通过硬件、软件或其结合 的方式实现。在一个可选实施例中,所述计算机程序产品具体体现 为计算机存储介质,在另一个可选实施例中,计算机程序产品具体 体现为软件产品,例如软件开发包(Software Development Kit,SDK)等等。Wherein, the above-mentioned computer program product can be specifically implemented by hardware, software or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), etc. Wait.

所属领域的技术人员可以清楚地了解到,为描述的方便和简 洁,上述描述的系统和终端的具体工作过程,可以参考前述方法实 施例中的对应过程,在此不再赘述。在本公开所提供的几个实施例 中,应该理解到,所揭露的系统、终端和方法,可以通过其它的方式实现。以上所描述的终端实施例仅仅是示意性的,例如,所述单 元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划 分方式,又例如,多个单元或组件可以结合或者可以集成到另一个 系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的 相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口, 或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。Those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the system and terminal described above, reference may be made to the corresponding process in the foregoing method embodiments, and details are not repeated here. In the several embodiments provided by the present disclosure, it should be understood that the disclosed system, terminal and method may be implemented in other manners. The terminal embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some communication interfaces, or indirect coupling or communication connection of units, which may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分 开的,作为单元显示的部件可以是或者也可以不是物理单元,即可 以位于一个地方,或者也可以分布到多个网络单元上。可以根据实 际的需要选择其中的部分或者全部单元来实现本实施例方案的目 的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本公开各个实施例中的各功能单元可以集成在一个处 理单元中,也可以是各个单元单独物理存在,也可以两个或两个以 上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销 售或使用时,可以存储在一个处理器可执行的非易失的计算机可读 取存储介质中。基于这样的理解,本公开的技术方案本质上或者说 对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品 的形式体现出来,该计算机软件产品存储在一个存储介质中,包括 若干指令用以使得一台电子设备(可以是个人计算机,服务器,或 者网络设备等)执行本公开各个实施例所述方法的全部或部分步 骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory, RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a processor-executable non-volatile computer-readable storage medium. Based on this understanding, the technical solutions of the present disclosure can be embodied in the form of software products in essence, or the parts that make contributions to the prior art or the parts of the technical solutions. The computer software products are stored in a storage medium, including Several instructions are used to cause an electronic device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present disclosure. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes .

最后应说明的是:以上所述实施例,仅为本公开的具体实施方 式,用以说明本公开的技术方案,而非对其限制,本公开的保护范 围并不局限于此,尽管参照前述实施例对本公开进行了详细的说 明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,其依然可以对前述实施例所记载 的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征 进行等同替换;而这些修改、变化或者替换,并不使相应技术方案 的本质脱离本公开实施例技术方案的精神和范围,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应所述以权利要求的 保护范围为准。Finally, it should be noted that the above-mentioned embodiments are only specific implementations of the present disclosure, and are used to illustrate the technical solutions of the present disclosure rather than limit them. The protection scope of the present disclosure is not limited thereto, although referring to the foregoing The embodiments describe the present disclosure in detail, and those skilled in the art should understand that: any person skilled in the art can still modify the technical solutions described in the foregoing embodiments within the technical scope disclosed by the present disclosure. Changes can be easily thought of, or equivalent replacements are made to some of the technical features; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be covered in the present disclosure. within the scope of protection. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims (12)

1.一种虚拟对象的形象调整方法,其特征在于,包括:1. an image adjustment method of a virtual object, is characterized in that, comprises: 在电子设备中展示虚拟对象的形象信息,所述形象信息包括虚拟对象的主体结构以及附着于所述主体结构上的装饰物品,其中,所述主体结构由3D渲染环境中的虚拟对象的骨骼数据经渲染后生成,所述装饰物品由所述3D渲染环境中的装饰物品数据经渲染后生成;The image information of the virtual object is displayed in the electronic device, the image information includes the main structure of the virtual object and the decorative items attached to the main structure, wherein the main structure is composed of the skeleton data of the virtual object in the 3D rendering environment Generated after rendering, and the decorative item is generated by rendering the decorative item data in the 3D rendering environment; 在检测到调整所述形象信息的触发事件的情况下,对所述骨骼数据和/或所述装饰物品数据进行调整,得到调整后的目标骨骼数据和/或目标装饰物品数据;In the case of detecting a triggering event for adjusting the image information, adjusting the skeleton data and/or the decorative item data to obtain adjusted target skeleton data and/or target decorative item data; 对所述目标骨骼数据和/或所述目标装饰数据进行渲染,生成调整后的虚拟对象的形象信息。Rendering the target bone data and/or the target decoration data to generate image information of the adjusted virtual object. 2.根据权利要求1所述的方法,其特征在于,所述在电子设备中展示虚拟对象的形象信息,包括:2. The method according to claim 1, wherein the displaying the image information of the virtual object in the electronic device comprises: 获取所述电子设备所采集的现实场景图像;obtaining the real scene image collected by the electronic device; 基于所述现实场景图像,展示所述虚拟对象的形象信息。Based on the real scene image, image information of the virtual object is displayed. 3.根据权利要求2所述的方法,其特征在于,在所述虚拟对象的形象信息与所述现实场景图像不匹配的情况下,确定检测到所述调整所述形象信息的触发事件。3 . The method according to claim 2 , wherein in the case that the image information of the virtual object does not match the real scene image, it is determined that the trigger event for adjusting the image information is detected. 4 . 4.根据权利要求3所述的方法,其特征在于,所述方法还包括:4. The method according to claim 3, wherein the method further comprises: 基于所述现实场景的环境信息,确定所述虚拟对象的形象信息与所述现实场景图像是否匹配,其中,所述环境信息包括所述现实场景的天气信息、温度信息以及位置信息中的至少一种。Based on the environment information of the real scene, it is determined whether the image information of the virtual object matches the image of the real scene, wherein the environment information includes at least one of weather information, temperature information and location information of the real scene kind. 5.根据权利要求1所述的方法,其特征在于,所述主体结构包括多个部位;所述对所述骨骼数据和/或所述装饰物品数据进行调整,包括:5. The method according to claim 1, wherein the main body structure comprises a plurality of parts; and the adjusting the skeleton data and/or the decorative item data comprises: 从所述多个部位中确定待调整的至少一个目标部位;determining at least one target part to be adjusted from the plurality of parts; 对所述至少一个目标部位的骨骼数据进行调整。Adjusting the skeletal data of the at least one target part. 6.根据权利要求5所述的方法,其特征在于,所述对所述至少一个目标部位的骨骼数据进行调整之后,所述方法还包括:6. The method according to claim 5, wherein after the adjustment of the skeletal data of the at least one target part, the method further comprises: 针对每个目标部位,判断调整后的目标部位的骨骼数据是否符合预设要求;For each target part, determine whether the adjusted skeleton data of the target part meets the preset requirements; 在所述调整后的目标部位的骨骼数据不符合所述预设要求的情况下,确定与所述目标部位相关联的其他部位;In the case that the adjusted skeleton data of the target part does not meet the preset requirements, determine other parts associated with the target part; 根据所述目标部位与所述其他部位之间的关联关系,对所述调整后的目标部位的骨骼数据进行修正,以使修正后的目标部位的骨骼数据符合所述预设要求。According to the association relationship between the target part and the other parts, the adjusted skeleton data of the target part is modified, so that the revised skeleton data of the target part meets the preset requirements. 7.根据权利要求3所述的方法,其特征在于,所述对所述骨骼数据和/或所述装饰物品数据进行调整,包括:7. The method according to claim 3, wherein the adjusting the skeleton data and/or the decorative item data comprises: 根据所述现实场景的环境信息,对所述装饰物品数据进行调整。The decorative item data is adjusted according to the environmental information of the real scene. 8.根据权利要求7所述的方法,其特征在于,所述装饰物品包括服装;所述根据所述现实场景的环境信息,对所述装饰物品数据进行调整,包括:8 . The method according to claim 7 , wherein the decorative item comprises clothing; and the adjustment of the decorative item data according to the environmental information of the real scene comprises: 8 . 根据所述环境信息,确定所述服装的类型以及所述服装的材质;According to the environmental information, determine the type of the clothing and the material of the clothing; 基于所述服装的类型以及所述服装的材质,对所述装饰物品数据的服装数据进行调整。The clothing data of the decorative item data is adjusted based on the type of clothing and the material of the clothing. 9.根据权利要求1所述的方法,其特征在于,所述调整所述形象信息的触发事件由用户触发产生。9 . The method according to claim 1 , wherein the triggering event for adjusting the image information is triggered and generated by a user. 10 . 10.一种虚拟对象的形象调整装置,其特征在于,包括:10. A device for adjusting the image of a virtual object, comprising: 展示模块,用于在电子设备中展示虚拟对象的形象信息,所述形象信息包括虚拟对象的主体结构以及附着于所述主体结构上的装饰物品,其中,所述主体结构由3D渲染环境中的虚拟对象的骨骼数据经渲染后生成,所述装饰物品由所述3D渲染环境中的装饰物品数据经渲染后生成;The display module is used to display the image information of the virtual object in the electronic device, and the image information includes the main structure of the virtual object and the decorative items attached to the main structure, wherein the main structure is formed by the 3D rendering environment. The skeleton data of the virtual object is generated after rendering, and the decorative item is generated by rendering the decorative item data in the 3D rendering environment; 调整模块,用于在检测到调整所述形象信息的触发事件的情况下,对所述骨骼数据和/或所述装饰物品数据进行调整,得到调整后的目标骨骼数据和/或目标装饰物品数据;An adjustment module, configured to adjust the skeleton data and/or the decorative item data when a trigger event for adjusting the image information is detected to obtain adjusted target skeleton data and/or target decorative item data ; 渲染模块,用于对所述目标骨骼数据和/或所述目标装饰数据进行渲染,生成调整后的虚拟对象的形象信息。A rendering module, configured to render the target skeleton data and/or the target decoration data, and generate the adjusted image information of the virtual object. 11.一种电子设备,其特征在于,包括:处理器、存储器和总线,所述存储器存储有所述处理器可执行的机器可读指令,当所述电子设备运行时,所述处理器与所述存储器之间通过所述总线通信,所述机器可读指令被所述处理器执行时执行如权利要求1至9任意一项所述的虚拟对象的形象调整方法。11. An electronic device, comprising: a processor, a memory, and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device runs, the processor is connected to a bus. The memories communicate with each other through the bus, and when the machine-readable instructions are executed by the processor, the method for adjusting the image of a virtual object according to any one of claims 1 to 9 is executed. 12.一种计算机可读存储介质,其特征在于,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行如权利要求1至9任意一项所述的虚拟对象的形象调整方法。12. A computer-readable storage medium, characterized in that, a computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to execute the virtual object according to any one of claims 1 to 9. Image adjustment method.
CN202210224365.7A 2022-03-07 2022-03-07 Method, device, electronic device and storage medium for adjusting image of virtual object Active CN114612643B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210224365.7A CN114612643B (en) 2022-03-07 2022-03-07 Method, device, electronic device and storage medium for adjusting image of virtual object

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210224365.7A CN114612643B (en) 2022-03-07 2022-03-07 Method, device, electronic device and storage medium for adjusting image of virtual object

Publications (2)

Publication Number Publication Date
CN114612643A true CN114612643A (en) 2022-06-10
CN114612643B CN114612643B (en) 2024-04-12

Family

ID=81861376

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210224365.7A Active CN114612643B (en) 2022-03-07 2022-03-07 Method, device, electronic device and storage medium for adjusting image of virtual object

Country Status (1)

Country Link
CN (1) CN114612643B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114758042A (en) * 2022-06-14 2022-07-15 深圳智华科技发展有限公司 Novel virtual simulation engine, virtual simulation method and device
CN115619923A (en) * 2022-09-30 2023-01-17 北京百度网讯科技有限公司 Rendering method and device for virtual object, electronic equipment and storage medium
CN116051694A (en) * 2022-12-20 2023-05-02 百度时代网络技术(北京)有限公司 Avatar generation method, apparatus, electronic device, and storage medium
CN116069159A (en) * 2022-09-14 2023-05-05 领悦数字信息技术有限公司 Method, apparatus and medium for displaying avatar
WO2024212702A1 (en) * 2023-04-11 2024-10-17 腾讯科技(深圳)有限公司 Avatar configuration method and apparatus, device, and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9129404B1 (en) * 2012-09-13 2015-09-08 Amazon Technologies, Inc. Measuring physical objects and presenting virtual articles
CN110766777A (en) * 2019-10-31 2020-02-07 北京字节跳动网络技术有限公司 Virtual image generation method and device, electronic equipment and storage medium
CN111147873A (en) * 2019-12-19 2020-05-12 武汉西山艺创文化有限公司 Virtual image live broadcasting method and system based on 5G communication
CN111583415A (en) * 2020-05-08 2020-08-25 维沃移动通信有限公司 Information processing method and device and electronic equipment
CN111815781A (en) * 2020-06-30 2020-10-23 北京市商汤科技开发有限公司 Augmented reality data presentation method, apparatus, device and computer storage medium
CN112184862A (en) * 2020-10-12 2021-01-05 网易(杭州)网络有限公司 Control method and device of virtual object and electronic equipment
CN113633977A (en) * 2021-08-09 2021-11-12 北京字跳网络技术有限公司 Virtual article processing method, device, equipment and storage medium
CN113838217A (en) * 2021-09-23 2021-12-24 北京百度网讯科技有限公司 Information display method and device, electronic equipment and readable storage medium
CN113905251A (en) * 2021-10-26 2022-01-07 北京字跳网络技术有限公司 Virtual object control method, device, electronic device and readable storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9129404B1 (en) * 2012-09-13 2015-09-08 Amazon Technologies, Inc. Measuring physical objects and presenting virtual articles
CN110766777A (en) * 2019-10-31 2020-02-07 北京字节跳动网络技术有限公司 Virtual image generation method and device, electronic equipment and storage medium
CN111147873A (en) * 2019-12-19 2020-05-12 武汉西山艺创文化有限公司 Virtual image live broadcasting method and system based on 5G communication
CN111583415A (en) * 2020-05-08 2020-08-25 维沃移动通信有限公司 Information processing method and device and electronic equipment
CN111815781A (en) * 2020-06-30 2020-10-23 北京市商汤科技开发有限公司 Augmented reality data presentation method, apparatus, device and computer storage medium
CN112184862A (en) * 2020-10-12 2021-01-05 网易(杭州)网络有限公司 Control method and device of virtual object and electronic equipment
CN113633977A (en) * 2021-08-09 2021-11-12 北京字跳网络技术有限公司 Virtual article processing method, device, equipment and storage medium
CN113838217A (en) * 2021-09-23 2021-12-24 北京百度网讯科技有限公司 Information display method and device, electronic equipment and readable storage medium
CN113905251A (en) * 2021-10-26 2022-01-07 北京字跳网络技术有限公司 Virtual object control method, device, electronic device and readable storage medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114758042A (en) * 2022-06-14 2022-07-15 深圳智华科技发展有限公司 Novel virtual simulation engine, virtual simulation method and device
CN116069159A (en) * 2022-09-14 2023-05-05 领悦数字信息技术有限公司 Method, apparatus and medium for displaying avatar
CN115619923A (en) * 2022-09-30 2023-01-17 北京百度网讯科技有限公司 Rendering method and device for virtual object, electronic equipment and storage medium
CN115619923B (en) * 2022-09-30 2023-12-12 北京百度网讯科技有限公司 Rendering method and device for virtual object, electronic equipment and storage medium
CN116051694A (en) * 2022-12-20 2023-05-02 百度时代网络技术(北京)有限公司 Avatar generation method, apparatus, electronic device, and storage medium
CN116051694B (en) * 2022-12-20 2023-10-03 百度时代网络技术(北京)有限公司 Avatar generation method, apparatus, electronic device, and storage medium
WO2024212702A1 (en) * 2023-04-11 2024-10-17 腾讯科技(深圳)有限公司 Avatar configuration method and apparatus, device, and storage medium

Also Published As

Publication number Publication date
CN114612643B (en) 2024-04-12

Similar Documents

Publication Publication Date Title
JP7098120B2 (en) Image processing method, device and storage medium
CN114612643A (en) Image adjusting method and device for virtual object, electronic equipment and storage medium
US12282594B2 (en) Presenting avatars in three-dimensional environments
CN112348937B (en) Face image processing method and electronic device
CN106803057B (en) Image information processing method and device
JP2020042802A (en) Location-based virtual element modality in three-dimensional content
CN111627117B (en) Image display special effect adjusting method and device, electronic equipment and storage medium
CN106157363A (en) A camera method, device and mobile terminal based on augmented reality
WO2019114328A1 (en) Augmented reality-based video processing method and device thereof
CN111242682A (en) Article display method
CN113362263A (en) Method, apparatus, medium, and program product for changing the image of a virtual idol
CN108563327B (en) Augmented reality method, device, storage medium and electronic device
KR20240125620A (en) Real-time upper body clothing exchange
JP2022172061A (en) Methods, devices and systems for delivering recommendations
CN114615513A (en) Video data generation method, device, electronic device and storage medium
CN114049468A (en) Display method, device, equipment and storage medium
EP4505421A1 (en) Pixel depth determination for object
WO2023192426A1 (en) Surface normals for pixel-aligned object
US12148105B2 (en) Surface normals for pixel-aligned object
CN117036575A (en) Image processing method, device, electronic equipment and medium
CN114758041A (en) Virtual object display method, device, electronic device and storage medium
CN116069159A (en) Method, apparatus and medium for displaying avatar
CN114779948A (en) Method, device and equipment for controlling instant interaction of animation characters based on facial recognition
CN111627118A (en) Scene portrait showing method and device, electronic equipment and storage medium
US20250216931A1 (en) Presenting avatars in three-dimensional environments

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