WO2021238126A1 - Three-dimensional face reconstruction method and apparatus - Google Patents

Three-dimensional face reconstruction method and apparatus Download PDF

Info

Publication number
WO2021238126A1
WO2021238126A1 PCT/CN2020/132460 CN2020132460W WO2021238126A1 WO 2021238126 A1 WO2021238126 A1 WO 2021238126A1 CN 2020132460 W CN2020132460 W CN 2020132460W WO 2021238126 A1 WO2021238126 A1 WO 2021238126A1
Authority
WO
WIPO (PCT)
Prior art keywords
dimensional face
face model
model
target
dimensional
Prior art date
Application number
PCT/CN2020/132460
Other languages
French (fr)
Chinese (zh)
Inventor
金博
张国鑫
马里千
刘晓强
张博宁
孙佳佳
Original Assignee
北京达佳互联信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京达佳互联信息技术有限公司 filed Critical 北京达佳互联信息技术有限公司
Publication of WO2021238126A1 publication Critical patent/WO2021238126A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/10Internal combustion engine [ICE] based vehicles
    • Y02T10/40Engine management systems

Abstract

The present disclosure relates to a three-dimensional face reconstruction method and apparatus, an electronic device and a storage medium. The method comprises: acquiring a target three-dimensional face model and a standard three-dimensional face model; according to the shape of the target three-dimensional face model, fitting the standard three-dimensional face model to obtain a fitted three-dimensional face model; and transforming the vertex in the fitted three-dimensional face model to the vertex in the target three-dimensional face model to obtain a three-dimensional face reconstruction model corresponding to the target three-dimensional face model. According to the present disclosure, the standard three-dimensional face model is fitted based on the shape of the target three-dimensional face model, and on the basis of the alignment of the fitted three-dimensional face model with the target three-dimensional face model, the vertex in the fitted three-dimensional face model is transformed to the vertex in the target three-dimensional face model, thereby minimizing the error between the three-dimensional face reconstruction model and the target three-dimensional face model to be constructed, making the finally obtained three-dimensional face reconstruction model more natural, and improving the reconstruction precision of the three-dimensional face model.

Description

三维人脸重建方法及装置Three-dimensional face reconstruction method and device
本公开基于申请号为202010479102.1、申请日为2020年5月29日、发明名称为《三维人脸重建方法、装置、电子设备及存储介质》的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本公开作为参考。This disclosure is based on a Chinese patent application with an application number of 202010479102.1, an application date of May 29, 2020, and an invention title of "Three-dimensional face reconstruction method, device, electronic equipment and storage medium", and the priority of the Chinese patent application is requested Right, the entire content of the Chinese patent application is hereby incorporated into the present disclosure as a reference.
技术领域Technical field
本公开涉及图像处理领域,尤其涉及一种三维人脸重建方法、装置、电子设备及存储介质。The present disclosure relates to the field of image processing, and in particular to a method, device, electronic device, and storage medium for three-dimensional face reconstruction.
背景技术Background technique
随着人脸识别技术的不断发展,三维人脸重建技术逐渐发展为计算机图形学(Computer Graphics,CG)的一个重要应用分支。三维人脸模型比二维人脸模型有更强的描述能力,能更好的表达出真实人脸的特征,因此,基于三维人脸模型的人脸识别在识别准确率和活体检测准确率上均有较大的提高。传统三维人脸重建方法中,通常是通过人工在待重建的三维人脸模型上进行三维点的标注,并辅以形变迁移算法(Deformation Transfer Algorithm),使得标准三维人脸模型与待重建的三维人脸模型尽量相似,以实现三维人脸重建的目的。With the continuous development of face recognition technology, 3D face reconstruction technology has gradually developed into an important application branch of Computer Graphics (CG). The three-dimensional face model has a stronger descriptive ability than the two-dimensional face model, and can better express the characteristics of the real face. Therefore, the face recognition based on the three-dimensional face model is more accurate in recognition and live detection. Both have been greatly improved. In the traditional 3D face reconstruction method, the 3D points are usually marked manually on the 3D face model to be reconstructed, supplemented by the Deformation Transfer Algorithm, so that the standard 3D face model is compared with the 3D face model to be reconstructed. The face models are as similar as possible to achieve the purpose of 3D face reconstruction.
发明内容Summary of the invention
本公开提供一种基于三维人脸重建方法、装置、电子设备及存储介质。本公开的技术方案如下:The present disclosure provides a method, device, electronic equipment and storage medium based on three-dimensional face reconstruction. The technical solutions of the present disclosure are as follows:
根据本公开实施例的第一方面,提供一种三维人脸重建方法,包括:According to a first aspect of the embodiments of the present disclosure, there is provided a three-dimensional face reconstruction method, including:
获取目标三维人脸模型和标准三维人脸模型;Obtain the target three-dimensional face model and the standard three-dimensional face model;
按照所述目标三维人脸模型的形状,对所述标准三维人脸模型进行拟合,得到拟合三维人脸模型;Fitting the standard three-dimensional face model according to the shape of the target three-dimensional face model to obtain a fitted three-dimensional face model;
将所述拟合三维人脸模型中的顶点变换至所述目标三维人脸模型中的顶点处,得到所述目标三维人脸模型对应的三维人脸重建模型。Transforming the vertices in the fitted three-dimensional face model to the vertices in the target three-dimensional face model to obtain a three-dimensional face reconstruction model corresponding to the target three-dimensional face model.
根据本公开实施例的第二方面,提供一种三维人脸重建装置,包括:According to a second aspect of the embodiments of the present disclosure, there is provided a three-dimensional face reconstruction device, including:
三维人脸模型获取单元,被配置为执行获取目标三维人脸模型和标准三维人脸模型;The three-dimensional face model acquisition unit is configured to perform acquisition of the target three-dimensional face model and the standard three-dimensional face model;
三维人脸模型拟合单元,被配置为执行按照所述目标三维人脸模型的形状,对所述标准三维人脸模型进行拟合,得到拟合三维人脸模型;A three-dimensional face model fitting unit configured to perform fitting the standard three-dimensional face model according to the shape of the target three-dimensional face model to obtain a fitted three-dimensional face model;
三维人脸模型重建单元,被配置为执行将所述拟合三维人脸模型中的顶点变换至所述目标三维人脸模型中的顶点处,得到所述目标三维人脸模型对应的三维人脸重建模型。A three-dimensional face model reconstruction unit configured to perform transformation of the vertices in the fitted three-dimensional face model to the vertices in the target three-dimensional face model to obtain the three-dimensional face corresponding to the target three-dimensional face model Rebuild the model.
根据本公开实施例的第三方面,提供一种电子设备,包括:According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, including:
处理器;processor;
用于存储所述处理器可执行指令的存储器;A memory for storing executable instructions of the processor;
其中,所述处理器被配置为执行所述指令,以实现上述第一方面任一项实施例中所述的三维人脸重建方法。Wherein, the processor is configured to execute the instructions to implement the three-dimensional face reconstruction method described in any one of the embodiments of the first aspect.
根据本公开实施例的第四方面,提供一种存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得所述电子设备能够执行上述第一方面所述的三维人脸重建方法。According to a fourth aspect of the embodiments of the present disclosure, a storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the three-dimensional face described in the first aspect. Reconstruction method.
根据本公开实施例的第五方面,提供一种计算机程序产品,所述程序产品包括计算机程序,所述计算机程序存储在可读存储介质中,设备的至少一个处理器从所述可读存储介质读取并执行所述计算机程序,使得设备执行上述第一方面任一项实施例中所述的三维人脸重建方法。According to a fifth aspect of the embodiments of the present disclosure, a computer program product is provided, the program product includes a computer program, the computer program is stored in a readable storage medium, and at least one processor of the device obtains data from the readable storage medium. The computer program is read and executed, so that the device executes the three-dimensional face reconstruction method described in any one of the embodiments of the first aspect.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure.
附图说明Description of the drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理,并不构成对本公开的不当限定。The drawings herein are incorporated into the specification and constitute a part of the specification, show embodiments conforming to the disclosure, and together with the specification are used to explain the principle of the disclosure, and do not constitute an improper limitation of the disclosure.
图1是根据一示例性实施例示出的一种三维人脸重建方法的流程图。Fig. 1 is a flow chart showing a method for reconstructing a three-dimensional face according to an exemplary embodiment.
图2是根据一示例性实施例示出的步骤S200的一种可实施方式的流程图。Fig. 2 is a flowchart showing an implementable manner of step S200 according to an exemplary embodiment.
图3是根据一示例性实施例示出的步骤S220的一种可实施方式的流程图。Fig. 3 is a flowchart showing an implementable manner of step S220 according to an exemplary embodiment.
图4(a)是根据一示例性实施例示出的目标三维人脸模型。Fig. 4(a) shows a target three-dimensional face model according to an exemplary embodiment.
图4(b)是根据一示例性实施例示出的二维人脸图像。Fig. 4(b) shows a two-dimensional face image according to an exemplary embodiment.
图4(c)是根据一示例性实施例示出的目标三维人脸关键点。Fig. 4(c) shows the key points of the target three-dimensional face according to an exemplary embodiment.
图5是根据一示例性实施例示出的步骤S300的一种可实施方式的流程图。Fig. 5 is a flowchart showing an implementable manner of step S300 according to an exemplary embodiment.
图6(a)是根据一示例性实施例示出的目标三维人脸模型。Fig. 6(a) shows a target three-dimensional face model according to an exemplary embodiment.
图6(b)是根据一示例性实施例示出的拟合三维人脸模型。Fig. 6(b) shows a fitting three-dimensional face model according to an exemplary embodiment.
图6(c)是根据一示例性实施例示出的经拉普拉斯形变后的三维人脸重建模型。Fig. 6(c) is a three-dimensional face reconstruction model after Laplace deformation according to an exemplary embodiment.
图7是根据一示例性实施例示出的一种三维人脸重建装置的框图。Fig. 7 is a block diagram showing a device for reconstructing a three-dimensional face according to an exemplary embodiment.
图8是根据一示例性实施例示出的一种用于三维人脸重建的电子设备的内部结构图。Fig. 8 is an internal structure diagram of an electronic device for 3D face reconstruction according to an exemplary embodiment.
具体实施方式Detailed ways
为了使本领域普通人员更好地理解本公开的技术方案,下面将结合附图,对本公开实施例中的技术方案进行清楚、完整地描述。In order to enable those of ordinary skill in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be described clearly and completely with reference to the accompanying drawings.
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开的实施例能够以除了在这里图示或描 述的那些以外的顺序实施。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。It should be noted that the terms “first” and “second” in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
图1是根据一示例性实施例示出的一种三维人脸重建方法的流程图,如图1所示,包括以下步骤:Fig. 1 is a flow chart showing a method for 3D face reconstruction according to an exemplary embodiment. As shown in Fig. 1, the method includes the following steps:
在步骤S100中,获取目标三维人脸模型和标准三维人脸模型。In step S100, a target three-dimensional face model and a standard three-dimensional face model are acquired.
在步骤S200中,按照目标三维人脸模型的形状,对标准三维人脸模型进行拟合,得到拟合三维人脸模型。In step S200, according to the shape of the target three-dimensional face model, the standard three-dimensional face model is fitted to obtain the fitted three-dimensional face model.
在步骤S300中,将拟合三维人脸模型中的顶点变换至目标三维人脸模型中的顶点处,得到目标三维人脸模型对应的三维人脸重建模型。In step S300, the vertices in the fitted three-dimensional face model are transformed to the vertices in the target three-dimensional face model to obtain a three-dimensional face reconstruction model corresponding to the target three-dimensional face model.
其中,三维(three-dimensional,3D)人脸模型指人脸的三维立体模型,三维人脸模型比二维(two-dimension,2D)人脸模型有更强的描述能力,能更好的表达出真实人脸的特征。目标三维人脸模型是指待重建的三维人脸结构和三维人脸纹理。标准三维人脸模型是预先设置好的理想的三维人脸模型。Among them, a three-dimensional (3D) face model refers to a three-dimensional model of a human face, and a three-dimensional face model has a stronger description ability and a better expression than a two-dimension (2D) face model. Features of real human faces. The target three-dimensional face model refers to the three-dimensional face structure and the three-dimensional face texture to be reconstructed. The standard 3D face model is an ideal 3D face model set in advance.
在一些实施例中,获取待重建的目标三维人脸模型和标准三维人脸模型,以目标三维人脸模型的形状为基准,将标准三维人脸模型拟合至目标三维人脸模型上,使得到的拟合三维人脸模型与目标三维人脸模型尽量对齐,在拟合三维人脸模型与目标三维人脸模型对齐的基础上,将拟合三维人脸模型中的顶点变换至目标三维人脸模型中的顶点处,得到待重建的目标三维人脸模型对应的三维人脸重建模型。In some embodiments, the target three-dimensional face model and the standard three-dimensional face model to be reconstructed are acquired, and the standard three-dimensional face model is fitted to the target three-dimensional face model based on the shape of the target three-dimensional face model, so that The fitted 3D face model is aligned with the target 3D face model as much as possible. Based on the alignment of the fitted 3D face model with the target 3D face model, the vertices in the fitted 3D face model are transformed to the target 3D face At the vertices in the face model, a three-dimensional face reconstruction model corresponding to the target three-dimensional face model to be reconstructed is obtained.
例如,标准三维人脸模型是预先设置好的各个面部形状基和表情基组形成的三维人脸模型。其中,形状基是指预先设计的人脸面部的器官或区域的形状和尺寸,例如眼睛的形状、嘴巴的形状、面部肌肉的形状或眉毛的形状等,以眉毛为例对形状基进行说明,眉毛对应的形状基可以为柳叶眉、拱形眉、上挑眉、平直眉等反应眉毛的形状。表情基是指人脸面部的器官或区域的的状态或动作,例如眼睛的开合状态、嘴巴的的开合状态、面部肌肉动作形态或眉毛的动作形态等,以眉毛为例对表情基进行说明,眉毛对应的表情基可以为挑眉、皱眉、闪眉等反应表情的状态或形态。For example, the standard three-dimensional face model is a three-dimensional face model formed by pre-set facial shape bases and expression base groups. Among them, the shape base refers to the shape and size of the organs or regions of the face designed in advance, such as the shape of the eyes, the shape of the mouth, the shape of the facial muscles or the shape of the eyebrows, etc. The shape base is explained by taking the eyebrows as an example. The shape base corresponding to the eyebrows can be willow-leaf eyebrows, arched eyebrows, raised eyebrows, straight eyebrows, and other shapes reflecting eyebrows. The expression base refers to the state or action of the organs or regions of the face, such as the opening and closing state of the eyes, the opening and closing state of the mouth, the facial muscle action form or the action form of the eyebrows, etc., take the eyebrows as an example to perform the expression base Explain that the expression base corresponding to the eyebrows can be a state or form that reflects expressions such as raising eyebrows, frowning, flashing eyebrows, etc.
在获取到待重建的目标三维人脸模型和标准三维人脸模型后,将预先设置好的各个面部形状基和表情基组形成的标准三维人脸模型向着目标三维人脸模型拟合,得到拟合三维人脸模型。此时的拟合三维人脸模型与待重建的目标三维人脸模型在形状和表情上相似或一致。接着,将拟合三维人脸模型中的顶点变换至目标三维人脸模型中的顶点处,使得拟合三维人脸模型在更加细小的顶点处与待重建的目标三维人脸模型一致,使三维人脸重建模型与待重建的目标三维人脸模型之间的误差最小化,得到更加自然的三维人脸重建模型。After obtaining the target three-dimensional face model and standard three-dimensional face model to be reconstructed, the standard three-dimensional face model formed by the pre-set facial shape bases and expression base groups is fitted to the target three-dimensional face model, and the pseudo-face model is obtained. Integrate a three-dimensional face model. The fitted three-dimensional face model at this time is similar or identical in shape and expression to the target three-dimensional face model to be reconstructed. Then, the vertices in the fitted 3D face model are transformed to the vertices in the target 3D face model, so that the fitted 3D face model is consistent with the target 3D face model to be reconstructed at the finer vertices, so that the 3D The error between the face reconstruction model and the target 3D face model to be reconstructed is minimized, and a more natural 3D face reconstruction model is obtained.
上述三维人脸重建方法中,获取目标三维人脸模型和标准三维人脸模型,以目标三维人脸模型的形状为基准,对标准三维人脸模型进行拟合,能够使得到的拟合三维人脸模型 与目标三维人脸模型尽量对齐,并在拟合三维人脸模型与目标三维人脸模型对齐的基础上,将拟合三维人脸模型中的顶点变换至目标三维人脸模型中的顶点处,最小化三维人脸重建模型与待重建的目标三维人脸模型之间的误,使最终得到的三维人脸重建模型更加自然,提高三维人脸模型重建的精度。能够为根据三维人脸重建模型进行注册、识别提供基础,提高注册、识别的成功率。In the above-mentioned three-dimensional face reconstruction method, the target three-dimensional face model and the standard three-dimensional face model are obtained, and the standard three-dimensional face model is fitted based on the shape of the target three-dimensional face model, so that the obtained three-dimensional face model can be fitted. The face model is aligned with the target 3D face model as much as possible, and based on the alignment of the fitted 3D face model with the target 3D face model, the vertices in the fitted 3D face model are transformed to the vertices in the target 3D face model Therefore, the error between the 3D face reconstruction model and the target 3D face model to be reconstructed is minimized, so that the finally obtained 3D face reconstruction model is more natural, and the accuracy of the 3D face model reconstruction is improved. It can provide a basis for registration and recognition based on the 3D face reconstruction model, and improve the success rate of registration and recognition.
图2是根据一示例性实施例示出的步骤S200的一种可实施方式的流程图,如图2所示,步骤S200,按照目标三维人脸模型的形状,对标准三维人脸模型进行拟合,得到拟合三维人脸模型,包括以下步骤:Fig. 2 is a flowchart of an implementable manner of step S200 according to an exemplary embodiment. As shown in Fig. 2, step S200 is to fit a standard three-dimensional face model according to the shape of the target three-dimensional face model , To obtain a fitted three-dimensional face model, including the following steps:
在步骤S210中,按照目标三维人脸模型的形状,对标准三维人脸模型进行拟合,得到初始三维人脸模型;其中,初始三维人脸模型中的初始三维人脸关键点与标准三维人脸关键点一一对应。In step S210, according to the shape of the target three-dimensional face model, the standard three-dimensional face model is fitted to obtain the initial three-dimensional face model; wherein, the initial three-dimensional face key points in the initial three-dimensional face model are the same as those of the standard three-dimensional face model. The key points of the face correspond one-to-one.
在步骤S220中,获取目标三维人脸模型中的目标三维人脸关键点。In step S220, the key points of the target three-dimensional face in the target three-dimensional face model are acquired.
在步骤S230中,根据初始三维人脸关键点和目标三维人脸关键点,构建损失函数。In step S230, a loss function is constructed according to the key points of the initial three-dimensional face and the key points of the target three-dimensional face.
在步骤S240中,将满足预设条件的损失函数对应的初始三维人脸模型,确定为拟合三维人脸模型。In step S240, the initial three-dimensional face model corresponding to the loss function that meets the preset conditions is determined as the fitted three-dimensional face model.
其中,标准三维人脸模型中包括标准三维人脸关键点。标准三维人脸模型上的三维人脸关键点是从统一的标准三维人脸模型库中直接获取的,标准三维人脸模型库中的标准三维人脸模型对应的三维人脸关键点是预先进行人工标注得到的,一个标准三维人脸模型仅需人工标注一次。Among them, the standard three-dimensional face model includes key points of the standard three-dimensional face. The three-dimensional face key points on the standard three-dimensional face model are directly obtained from the unified standard three-dimensional face model library. The three-dimensional face key points corresponding to the standard three-dimensional face model in the standard three-dimensional face model library are pre-processed Manually annotated, a standard three-dimensional face model only needs to be manually annotated once.
在一些实施例中,应用三维人脸形变模型(3D Morphable Model,3DMM)算法,对标准三维人脸模型进行拟合,可以得到拟合三维人脸模型。其中,初始三维人脸模型中的初始三维人脸关键点与标准三维人脸关键点一一对应。3DMM算法指在三维人脸数据库的基础上,以人脸形状和人脸纹理统计为约束,同时考虑了人脸的姿态和光照因素的影响,进行的三维形变得到三维人脸模型的算法模型,此算法模型生成的三维人脸模型精度较高。In some embodiments, using a 3D Morphable Model (3DMM) algorithm to fit a standard 3D face model, a fitted 3D face model can be obtained. Among them, the initial three-dimensional face key points in the initial three-dimensional face model correspond one-to-one with the standard three-dimensional face key points. The 3DMM algorithm refers to the algorithm model of the three-dimensional face model based on the three-dimensional face database, taking the face shape and face texture statistics as constraints, and taking into account the posture of the face and the influence of the lighting factors. The 3D face model generated by this algorithm model has high accuracy.
通过3DMM拟合,可以使得标准三维人脸模型形状尽可能的和待重建的目标三维人脸模型中的三维人脸结构和三维人脸纹理一致,并且具备与待重建的目标三维人脸模型中的人脸相近的表情。在一些实施例中,3DMM算法的实现方式如公式(1)所示:Through 3DMM fitting, the shape of the standard 3D face model can be made as consistent as possible with the 3D face structure and 3D face texture in the target 3D face model to be reconstructed, and have the same shape as the target 3D face model to be reconstructed. The facial expressions are similar. In some embodiments, the implementation of the 3DMM algorithm is as shown in formula (1):
Figure PCTCN2020132460-appb-000001
Figure PCTCN2020132460-appb-000001
其中,S model为拟合之后的拟合三维人脸模型,s i为3DMM的形状基,a i为形状基对应的参数,n为形状基的数量,e i为3DMM的表情基,b i为表情基对应的参数,m为表情基的数量。 Among them, S model is the fitted 3D face model after fitting, s i is the shape base of 3DMM, a i is the parameter corresponding to the shape base, n is the number of shape bases, e i is the expression base of 3DMM, b i Is the parameter corresponding to the expression base, and m is the number of the expression base.
获取目标三维人脸模型中的目标三维人脸关键点,根据初始三维人脸关键点和目标三 维人脸关键点,构建损失函数。其中,3DMM的拟合过程的损失函数如公式(2)所示:Obtain the target 3D face key points in the target 3D face model, and construct the loss function according to the initial 3D face key points and the target 3D face key points. Among them, the loss function of the 3DMM fitting process is shown in formula (2):
Figure PCTCN2020132460-appb-000002
Figure PCTCN2020132460-appb-000002
其中,S landmark表示待重建的目标三维人脸关键点,S model表示拟合之后的拟合三维人脸模型中的三维人脸关键点,L为三维关键点的个数。 Among them, S landmark represents the key points of the target three-dimensional face to be reconstructed, S model represents the key points of the three-dimensional face in the fitted three-dimensional face model after fitting, and L is the number of three-dimensional key points.
在一些实施例中,拟合过程是求公式(1)中的参数a i和b i,以目标三维人脸关键点为基准,对标准三维人脸关键点进行拟合,并将满足预设条件的损失函数对应的初始三维人脸模型,确定为拟合三维人脸模型。在一些实施例中,所采用的拟合算法还可以是形变迁移算法(Deformation Transfer Algorithm)、最小二乘法等。 In some embodiments, the fitting process is to find the parameters a i and b i in formula (1), and use the target three-dimensional face key points as a reference to fit the standard three-dimensional face key points, and satisfy the preset The initial three-dimensional face model corresponding to the conditional loss function is determined to be the fitted three-dimensional face model. In some embodiments, the fitting algorithm used may also be a deformation transfer algorithm (Deformation Transfer Algorithm), a least square method, or the like.
上述示例性实施例中,以目标三维人脸模型的形状为基准,对标准三维人脸模型进行拟合,并根据初始三维人脸关键点和目标三维人脸关键点,构建损失函数,在人脸关键点的形成的损失函数的监督下,将满足预设条件的损失函数对应的初始三维人脸模型,确定为拟合三维人脸模型。能够使拟合三维人脸模型中的三维人脸关键点尽可能的与目标三维人脸模型中的三维人脸关键点尽可能地对齐,减小三维人脸重建模型与待重建的目标三维人脸模型之间的误差,提高三维人脸模型重建的精度。In the above exemplary embodiment, the standard three-dimensional face model is fitted based on the shape of the target three-dimensional face model, and the loss function is constructed based on the initial three-dimensional face key points and the target three-dimensional face key points. Under the supervision of the loss function formed by the key points of the face, the initial three-dimensional face model corresponding to the loss function that meets the preset conditions is determined as a fitted three-dimensional face model. It can align the key points of the 3D face in the fitted 3D face model with the key points of the 3D face in the target 3D face model as much as possible, reducing the 3D face reconstruction model and the target 3D person to be reconstructed The error between face models improves the accuracy of 3D face model reconstruction.
图3是根据一示例性实施例示出的步骤S220的一种可实施方式的流程图,如图3所示,步骤S220,获取目标三维人脸模型中的目标三维人脸关键点,包括以下步骤:Fig. 3 is a flow chart showing an implementable manner of step S220 according to an exemplary embodiment. As shown in Fig. 3, step S220, acquiring the key points of the target three-dimensional face in the target three-dimensional face model, includes the following steps :
在步骤S221中,将目标三维人脸模型投影至二维图像上,得到二维人脸图像;其中,目标三维人脸模型中的顶点与二维人脸图像中的顶点之间存在一个顶点对应关系。In step S221, the target three-dimensional face model is projected onto the two-dimensional image to obtain a two-dimensional face image; wherein there is a vertex correspondence between the vertices in the target three-dimensional face model and the vertices in the two-dimensional face image relation.
在步骤S222中,检测二维人脸图像中的二维人脸关键点。In step S222, the key points of the two-dimensional face in the two-dimensional face image are detected.
在步骤S223中,根据二维人脸关键点和顶点对应关系,确定出目标三维人脸关键点。In step S223, the key points of the target three-dimensional face are determined according to the correspondence between the key points of the two-dimensional face and the vertices.
其中,二维图像是指平面图像,二维人脸图像是指平面人脸图像。Among them, a two-dimensional image refers to a flat image, and a two-dimensional face image refers to a flat face image.
在一些实施例中,将待重建的目标三维人脸模型渲染至投影至二维图像上,得到一个二维人脸图像,使用人脸关键点检测器检测得到二维人脸图像中的二维人脸关键点。由于该二维人脸图像是目标三维人脸模型投影到二维图像上得到的,因此,该二维人脸图像中的顶点与三维人脸模型中的顶点之间存在一个顶点对应关系,因此,在二维人脸图像上检测出的二维人脸关键点必然在目标三维人脸模型上存在一个对应的点。在使用人脸关键点检测器检测到二维人脸图像中的二维人脸关键点后,根据上述顶点对应关系,可以确定出目标三维人脸模型上的目标三维人脸关键点。In some embodiments, the three-dimensional face model of the target to be reconstructed is rendered onto a two-dimensional image to obtain a two-dimensional face image, and the face key point detector is used to detect the two-dimensional face image in the two-dimensional face image. The key points of the face. Since the two-dimensional face image is obtained by projecting the target three-dimensional face model onto the two-dimensional image, there is a vertex correspondence between the vertices in the two-dimensional face image and the vertices in the three-dimensional face model, so , The two-dimensional face key points detected on the two-dimensional face image must have a corresponding point on the target three-dimensional face model. After the two-dimensional face key points in the two-dimensional face image are detected by the face key point detector, the target three-dimensional face key points on the target three-dimensional face model can be determined according to the above-mentioned vertex correspondence.
示例地,如图4(a)所示,是根据一示例性实施例示出的目标三维人脸模型,该目标三维人脸模型包括对应的三维人脸结构和三维人脸纹理;如图4(b)所示,是根据一示例性实施例示出的二维人脸图像,该目标三维人脸模型是将目标三维人脸模型投影至二维图像上得到的图像,图中的顶点为人脸关键点;如图4(c)所示,是根据一示例性实施例示出的目标三维人脸关键点,该目标三维人脸关键点是根据二维人脸关键点和顶点对应关系,确定出三维人脸关键点。For example, as shown in Fig. 4(a), it is a target three-dimensional face model according to an exemplary embodiment. The target three-dimensional face model includes a corresponding three-dimensional face structure and a three-dimensional face texture; Fig. 4( b) shows a two-dimensional face image according to an exemplary embodiment. The target three-dimensional face model is an image obtained by projecting the target three-dimensional face model onto the two-dimensional image, and the vertices in the figure are the face key Point; as shown in Figure 4 (c), it is shown according to an exemplary embodiment of the target three-dimensional face key points, the target three-dimensional face key points are based on the two-dimensional face key points and the corresponding relationship between the vertices to determine the three-dimensional The key points of the face.
上述示例性实施例中,通过将目标三维人脸模型投影至二维图像上,得到二维人脸图像,并检测二维人脸图像中的二维人脸关键点,在得到二维人脸关键点后,根据二维人脸关键点和顶点对应关系,确定出目标三维人脸关键点。整个确定目标三维人脸关键点的过程,从检测器检测二维人脸关键点开始,到逐步得到三维人脸关键点,无需人工参与任何标注工作,能够节省大量的人力成本和时间成本,快速地得到三维人脸关键点,且得到的三维人脸关键点由计算机采用统一的识别或检测方式得到,避免了人工标注的随意性和无序性,提高目标三维人脸关键点的检测精度,为后续减小三维人脸重建模型与待重建的目标三维人脸模型之间的误差提供基础,提高三维人脸模型重建的精度。In the above exemplary embodiment, by projecting the target three-dimensional face model onto the two-dimensional image, a two-dimensional face image is obtained, and the two-dimensional face key points in the two-dimensional face image are detected, and then the two-dimensional face is obtained. After the key points, according to the corresponding relationship between the key points of the two-dimensional face and the vertices, the key points of the target three-dimensional face are determined. The entire process of determining the key points of the target 3D face starts from the detection of the key points of the 2D face by the detector, and then gradually obtains the key points of the 3D face. There is no need to manually participate in any labeling work, which can save a lot of labor and time costs. The key points of the three-dimensional face are obtained, and the obtained key points of the three-dimensional face are obtained by the computer using a unified recognition or detection method, which avoids the randomness and disorder of manual labeling, and improves the detection accuracy of the key points of the target three-dimensional face. It provides a basis for the subsequent reduction of the error between the 3D face reconstruction model and the target 3D face model to be reconstructed, and improves the accuracy of the 3D face model reconstruction.
图5是根据一示例性实施例示出的步骤S300的一种可实施方式的流程图,如图5所示,步骤S300,将拟合三维人脸模型中的顶点变换至目标三维人脸模型中的顶点处,得到目标三维人脸模型对应的三维人脸重建模型,包括以下步骤:Fig. 5 is a flowchart of an implementable manner of step S300 according to an exemplary embodiment. As shown in Fig. 5, step S300 is to transform the vertices in the fitted 3D face model to the target 3D face model At the vertex of, obtaining the 3D face reconstruction model corresponding to the target 3D face model includes the following steps:
在步骤S310中,对于拟合三维人脸模型中的顶点,在目标三维人脸模型中查找对应的顶点,得到至少一个顶点对。In step S310, for the vertices in the fitted three-dimensional face model, the corresponding vertices are searched in the target three-dimensional face model to obtain at least one vertex pair.
在步骤S320中,将顶点对中与拟合三维人脸模型对应的顶点变换至目标三维人脸模型对应的顶点处,得到三维人脸重建模型。In step S320, the vertex corresponding to the fitted three-dimensional face model in the vertex pair is transformed to the vertex corresponding to the target three-dimensional face model to obtain a three-dimensional face reconstruction model.
在一些实施例中,为了使拟合得到的拟合三维人脸模型更贴近待重建的目标三维人脸模型,在步骤S200中得到拟合三维人脸模型后,为了得到更加精确的三维人脸重建模型,对拟合三维人脸模型中顶点的进行形变处理,以得到目标三维人脸模型对应的三维人脸重建模型。包括从目标三维人脸模型中查找与拟合三维人脸模型对应的顶点,将两个三维人脸模中对应的顶点,确定为一个顶点对,将顶点对中与拟合三维人脸模型对应的顶点变换至目标三维人脸模型对应的顶点处,使得拟合三维人脸模型更加贴近目标三维人脸模型,得到三维人脸重建模型。In some embodiments, in order to make the fitted three-dimensional face model obtained by fitting closer to the target three-dimensional face model to be reconstructed, after the fitted three-dimensional face model is obtained in step S200, in order to obtain a more accurate three-dimensional face model To reconstruct the model, perform deformation processing on the vertices in the fitted three-dimensional face model to obtain a three-dimensional face reconstruction model corresponding to the target three-dimensional face model. Including finding the vertices corresponding to the fitted three-dimensional face model from the target three-dimensional face model, determining the corresponding vertices in the two three-dimensional face models as a vertex pair, and aligning the vertices to correspond to the fitted three-dimensional face model The vertex of is transformed to the vertex corresponding to the target three-dimensional face model, so that the fitted three-dimensional face model is closer to the target three-dimensional face model, and a three-dimensional face reconstruction model is obtained.
示例地,将标准三维人脸模型进行拟合,得到的拟合三维人脸模型中的三维人脸结构已经与待重建的目标三维人脸模型中的三维人脸结构对齐,且对于张嘴、撇嘴、闭眼等具备大表情的待重建的目标三维人脸模型中的三维人脸结构可以完成良好的对齐效果。接着,查找拟合三维人脸模型的三维顶点与三维中对应的三维顶点,对三维顶点进行进一步的变换好、对齐,将顶点对中与拟合三维人脸模型对应的顶点变换至目标三维人脸模型对应的顶点处,得到三维人脸重建模型。For example, the standard three-dimensional face model is fitted, and the three-dimensional face structure in the fitted three-dimensional face model is already aligned with the three-dimensional face structure in the target three-dimensional face model to be reconstructed, and it is necessary to open the mouth and curl the mouth. The three-dimensional face structure in the target three-dimensional face model to be reconstructed with large expressions such as closed eyes can complete a good alignment effect. Next, find the three-dimensional vertices of the fitted three-dimensional face model and the corresponding three-dimensional vertices in three dimensions, further transform and align the three-dimensional vertices, and transform the vertex alignment and the corresponding vertices of the fitted three-dimensional face model to the target three-dimensional person At the vertex corresponding to the face model, a three-dimensional face reconstruction model is obtained.
在一些实施例中,在目标三维人脸模型中,查找与拟合三维人脸模型中的每一顶点距离最近的顶点;将拟合三维人脸模型中的顶点和在目标三维人脸模型中查找到的距离最近的顶点,确定为至少一个顶点对。In some embodiments, in the target three-dimensional face model, the vertex closest to each vertex in the fitted three-dimensional face model is searched; the vertices in the fitted three-dimensional face model are compared with those in the target three-dimensional face model. The vertex closest to the search is determined to be at least one vertex pair.
在一些实施例中,拟合三维人脸模型为与目标三维人脸模型已经在形状和表情上一致,此时,拟合三维人脸模型中的顶点与待重建的目标三维人脸模型中的顶点基本对应,拟合三维人脸模型中的顶点与待重建的目标三维人脸模型中的顶点的位置一致或者相差较小,因此,拟合三维人脸模型中的顶点与待重建的目标三维人脸模型中的顶点中对应的 顶点之间的距离相较于拟合三维人脸模型中的顶点与待重建的目标三维人脸模型中的顶点中非对应的顶点之间的距离小,因此,将拟合三维人脸模型中的顶点和在目标三维人脸模型中查找到的距离最近的顶点,确定为至少一个顶点对,用于后续的变换处理。In some embodiments, fitting the three-dimensional face model is consistent with the target three-dimensional face model in shape and expression. At this time, the vertices in the fitted three-dimensional face model are the same as those in the target three-dimensional face model to be reconstructed. The vertices basically correspond, and the positions of the vertices in the fitted 3D face model are the same as or slightly different from the positions of the vertices in the target 3D face model to be reconstructed. Therefore, the vertices in the fitted 3D face model are the same as the target 3D to be reconstructed. The distance between the corresponding vertices in the vertices in the face model is smaller than the distance between the vertices in the fitted 3D face model and the non-corresponding vertices in the vertices in the target 3D face model to be reconstructed, so , The vertex in the fitted three-dimensional face model and the vertex with the closest distance found in the target three-dimensional face model are determined as at least one vertex pair for subsequent transformation processing.
在一些实施例中,应用拉普拉斯算法(Laplacian Deformation),将顶点对中与拟合三维人脸模型对应的顶点变换至目标三维人脸模型对应的顶点处,得到三维人脸重建模型。In some embodiments, the Laplacian algorithm (Laplacian Deformation) is applied to transform the vertices in the vertex pair corresponding to the fitted 3D face model to the vertices corresponding to the target 3D face model to obtain the 3D face reconstruction model.
在一些实施例中,拉普拉斯形变算法的实现方式可以由一个损失函数描述,如公式(3)所示:In some embodiments, the implementation of the Laplace deformation algorithm can be described by a loss function, as shown in formula (3):
Figure PCTCN2020132460-appb-000003
Figure PCTCN2020132460-appb-000003
其中,
Figure PCTCN2020132460-appb-000004
为待重建的目标三维人脸模型的拉普拉斯坐标,
Figure PCTCN2020132460-appb-000005
为拟合三维人脸模型的拉普拉斯坐标,n为所有的三维顶点数量,v′ i为拟合三维人脸模型的坐标,u i为待重建的目标三维人脸模型的坐标,m为非人脸区域的顶点的个数。其中,非人脸区域的顶点为脸区域以外的点,例如头发、耳朵、脖子等对应的点。非人脸区域的顶点跟随顶点对中与拟合三维人脸模型对应的点进行变换,可以保证拓扑完整平滑,使得到的三维人脸重建模型更加自然。
in,
Figure PCTCN2020132460-appb-000004
Is the Laplacian coordinates of the 3D face model of the target to be reconstructed,
Figure PCTCN2020132460-appb-000005
Is the Laplacian coordinates of the fitted 3D face model, n is the number of all 3D vertices, v′ i is the coordinate of the fitted 3D face model, u i is the coordinate of the target 3D face model to be reconstructed, m Is the number of vertices in the non-face area. Among them, the vertices of the non-face area are points outside the face area, such as corresponding points such as hair, ears, and neck. The vertices of the non-face area follow the vertices to transform the points corresponding to the fitted three-dimensional face model, which can ensure the topological integrity and smoothness, and make the obtained three-dimensional face reconstruction model more natural.
在一些实施例中,拟合三维人脸模型与目标三维人脸模型中的顶点并不都是相对应的,其中的三维人脸顶点在拟合三维人脸模型与目标三维人脸模型中存在着对应关系,相应的面部点也存在对应关系,但是三维人脸模型中的头发、耳朵、脖子等并不都存在对应的点,这些头发、耳朵、脖子等对应的点也不是人脸模型重建、识别、注册的关注点,因此并不需要特别的关注头发、耳朵、脖子等对应的点。In some embodiments, the vertices in the fitted three-dimensional face model and the target three-dimensional face model are not all corresponding, and the three-dimensional face vertices exist in the fitted three-dimensional face model and the target three-dimensional face model. According to the corresponding relationship, the corresponding facial points also have corresponding relationships, but the hair, ears, necks, etc. in the three-dimensional face model do not all have corresponding points, and the corresponding points of these hairs, ears, necks, etc. are not face model reconstructions either , Identification and registration of the points of interest, so there is no need to pay special attention to the corresponding points of hair, ears, neck, etc.
在一些实施例中,获取拟合三维人脸模型中非人脸区域的顶点;获取将顶点对中与拟合三维人脸模型对应的顶点变换至目标三维人脸模型对应的顶点处的变换系数;按照变换系数,对拟合三维人脸模型中非人脸区域的顶点进行变换,得到三维头部重建模型。In some embodiments, obtain the vertices of the non-face region in the fitted three-dimensional face model; obtain the transformation coefficients at which the vertices in the vertex pair corresponding to the fitted three-dimensional face model are transformed to the vertices corresponding to the target three-dimensional face model ; According to the transformation coefficient, transform the vertices of the non-face area in the fitted three-dimensional face model to obtain a three-dimensional head reconstruction model.
其中,拉普拉斯坐标的实现方式如公式(4)所示:Among them, the realization of Laplace coordinates is shown in formula (4):
Figure PCTCN2020132460-appb-000006
Figure PCTCN2020132460-appb-000006
其中,v i为待重建的目标三维人脸模型或拟合三维人脸模型中的一个顶点,N i为v i的邻域,d i为邻域中每个顶点的权重。 Wherein, v i is the target three-dimensional face model fitting to be rebuilt or a vertex of a three-dimensional face model, N i is a neighbor of v i, d i is the weight of each vertex neighborhood weight.
如图6(a)所示,是根据一示例性实施例示出的目标三维人脸模型,该目标三维人脸模型包括对应的三维人脸结构和三维人脸纹理;如图6(b)所示,是根据一示例性实施例示出的拟合三维人脸模型,是以目标三维人脸关键点为基准,对标准三维人脸关键点进行拟合得到的;如图6(c)所示,是根据一示例性实施例示出的经拉普拉斯形变后的三维人脸重建模型。As shown in Figure 6(a), it is a target three-dimensional face model according to an exemplary embodiment. The target three-dimensional face model includes a corresponding three-dimensional face structure and a three-dimensional face texture; as shown in Figure 6(b) Shown is a fitting three-dimensional face model according to an exemplary embodiment, which is obtained by fitting the key points of a standard three-dimensional face with the key points of the target three-dimensional face as a reference; as shown in Figure 6(c) , Is a three-dimensional face reconstruction model after Laplace deformation according to an exemplary embodiment.
上述示例性实施例中,对于拟合三维人脸模型中的顶点,在目标三维人脸模型中查找对应的顶点,得到至少一个顶点对;将顶点对中与拟合三维人脸模型对应的顶点变换至目标三维人脸模型对应的顶点处,得到三维人脸重建模型。能够对顶点对中的顶点进行变换,最小化三维人脸重建模型与待重建的目标三维人脸模型之间的误,使最终得到的三维人脸重建模型更加自然,提高三维人脸模型重建的精度。能够为根据三维人脸重建模型进行注册、识别提供基础,提高注册、识别的成功率。In the foregoing exemplary embodiment, for the vertices in the fitted three-dimensional face model, the corresponding vertices are searched in the target three-dimensional face model to obtain at least one vertex pair; the vertices are aligned with the vertices corresponding to the fitted three-dimensional face model Transform to the vertex corresponding to the target 3D face model to obtain a 3D face reconstruction model. It can transform the vertices in the vertex pair, minimize the error between the 3D face reconstruction model and the target 3D face model to be reconstructed, make the final 3D face reconstruction model more natural, and improve the reconstruction of the 3D face model. Accuracy. It can provide a basis for registration and recognition based on the 3D face reconstruction model, and improve the success rate of registration and recognition.
应该理解的是,虽然图1、2、4的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图1、2、4中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flowcharts of FIGS. 1, 2, and 4 are displayed in sequence as indicated by the arrows, these steps are not necessarily performed in sequence in the order indicated by the arrows. Unless specifically stated in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least part of the steps in Figures 1, 2, and 4 may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but can be executed at different times. These steps or stages The order of execution of is not necessarily performed sequentially, but may be performed alternately or alternately with other steps or at least a part of the steps or stages in other steps.
图7是根据一示例性实施例示出的一种三维人脸重建装置的框图。参照图7,该装置包括三维人脸模型获取单元701、三维人脸模型拟合单元702和三维人脸模型重建单元703:Fig. 7 is a block diagram showing a device for reconstructing a three-dimensional face according to an exemplary embodiment. Referring to Fig. 7, the device includes a three-dimensional face model acquisition unit 701, a three-dimensional face model fitting unit 702, and a three-dimensional face model reconstruction unit 703:
三维人脸模型获取单元701,被配置为执行获取目标三维人脸模型和标准三维人脸模型;The three-dimensional face model acquiring unit 701 is configured to perform acquisition of the target three-dimensional face model and the standard three-dimensional face model;
三维人脸模型拟合单元702,被配置为执行按照目标三维人脸模型的形状,对标准三维人脸模型进行拟合,得到拟合三维人脸模型;The three-dimensional face model fitting unit 702 is configured to perform fitting of the standard three-dimensional face model according to the shape of the target three-dimensional face model to obtain a fitted three-dimensional face model;
三维人脸模型重建单元703,被配置为执行将拟合三维人脸模型中的顶点变换至目标三维人脸模型中的顶点处,得到目标三维人脸模型对应的三维人脸重建模型。The three-dimensional face model reconstruction unit 703 is configured to transform the vertices in the fitted three-dimensional face model to the vertices in the target three-dimensional face model to obtain a three-dimensional face reconstruction model corresponding to the target three-dimensional face model.
在一示例性实施例中,标准三维人脸模型中包括标准三维人脸关键点;三维人脸模型拟合单元702还被配置为执行:按照目标三维人脸模型的形状,对标准三维人脸模型进行拟合,得到初始三维人脸模型;其中,初始三维人脸模型中的初始三维人脸关键点与标准三维人脸关键点一一对应;获取目标三维人脸模型中的目标三维人脸关键点;根据初始三维人脸关键点和目标三维人脸关键点,构建损失函数;将满足预设条件的损失函数对应的初始三维人脸模型,确定为拟合三维人脸模型。In an exemplary embodiment, the standard three-dimensional face model includes key points of the standard three-dimensional face; the three-dimensional face model fitting unit 702 is further configured to perform: according to the shape of the target three-dimensional face model, The model is fitted to obtain an initial three-dimensional face model; among them, the initial three-dimensional face key points in the initial three-dimensional face model correspond to the standard three-dimensional face key points one-to-one; to obtain the target three-dimensional face in the target three-dimensional face model Key points: Construct a loss function based on the initial three-dimensional face key points and the target three-dimensional face key points; determine the initial three-dimensional face model corresponding to the loss function that meets the preset conditions as the fitted three-dimensional face model.
在一示例性实施例中,三维人脸模型拟合单元702还被配置为执行:将目标三维人脸模型投影至二维图像上,得到二维人脸图像;其中,目标三维人脸模型中的顶点与二维人脸图像中的顶点之间存在一个顶点对应关系;检测二维人脸图像中的二维人脸关键点;根据二维人脸关键点和顶点对应关系,确定出目标三维人脸关键点。In an exemplary embodiment, the three-dimensional face model fitting unit 702 is further configured to execute: project a target three-dimensional face model onto a two-dimensional image to obtain a two-dimensional face image; wherein, in the target three-dimensional face model There is a vertex correspondence between the vertices of and the vertices in the two-dimensional face image; the two-dimensional face key points in the two-dimensional face image are detected; the target three-dimensional The key points of the face.
在一示例性实施例中,三维人脸模型重建单元703还被配置为执行:对于拟合三维人脸模型中的顶点,在目标三维人脸模型中查找对应的顶点,得到至少一个顶点对;将顶点对中与拟合三维人脸模型对应的顶点变换至目标三维人脸模型对应的顶点处,得到三维人 脸重建模型。In an exemplary embodiment, the three-dimensional face model reconstruction unit 703 is further configured to perform: for vertices in the fitted three-dimensional face model, search for corresponding vertices in the target three-dimensional face model to obtain at least one vertex pair; The vertices corresponding to the fitted three-dimensional face model in the vertex pair are transformed to the vertices corresponding to the target three-dimensional face model to obtain a three-dimensional face reconstruction model.
在一示例性实施例中,三维人脸模型重建单元703还被配置为执行:在目标三维人脸模型中,查找与拟合三维人脸模型中的每一顶点距离最近的顶点;将拟合三维人脸模型中的顶点和在目标三维人脸模型中查找到的距离最近的顶点,确定为至少一个顶点对。In an exemplary embodiment, the three-dimensional face model reconstruction unit 703 is further configured to perform: in the target three-dimensional face model, find the vertex closest to each vertex in the fitted three-dimensional face model; The vertex in the three-dimensional face model and the vertex with the closest distance found in the target three-dimensional face model are determined to be at least one vertex pair.
在一示例性实施例中,三维人脸模型重建单元703还被配置为执行:应用拉普拉斯算法,将顶点对中与拟合三维人脸模型对应的顶点变换至目标三维人脸模型对应的顶点处,得到三维人脸重建模型。In an exemplary embodiment, the three-dimensional face model reconstruction unit 703 is further configured to perform: applying the Laplacian algorithm to transform the vertices corresponding to the fitted three-dimensional face model to the target three-dimensional face model. At the vertex of, a 3D face reconstruction model is obtained.
在一示例性实施例中,顶点对中与拟合三维人脸模型对应的顶点位于拟合三维人脸模型中的人脸区域;三维人脸模型重建单元703还包括三维头部重建单元,被配置为执行:获取拟合三维人脸模型中非人脸区域的顶点;获取将顶点对中与拟合三维人脸模型对应的顶点变换至目标三维人脸模型对应的顶点处的变换系数;按照变换系数,对拟合三维人脸模型中非人脸区域的顶点进行变换,得到三维头部重建模型。In an exemplary embodiment, the vertex corresponding to the fitted three-dimensional face model in the vertex pair is located in the face area of the fitted three-dimensional face model; the three-dimensional face model reconstruction unit 703 also includes a three-dimensional head reconstruction unit, It is configured to execute: obtain the vertices of the non-face area in the fitted three-dimensional face model; obtain the transformation coefficients at which the vertices corresponding to the fitted three-dimensional face model in the vertex pair are transformed to the vertices corresponding to the target three-dimensional face model; according to The transformation coefficient transforms the vertices of the non-face area in the fitted three-dimensional face model to obtain a three-dimensional head reconstruction model.
关于上述实施例中的装置,其中各个单元执行操作的实施方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the device in the above-mentioned embodiment, the implementation of operations performed by each unit therein has been described in detail in the embodiment of the method, and detailed description will not be given here.
图8是根据一示例性实施例示出的一种用于三维人脸重建的设备800的框图。例如,设备800可以是移动电话、计算机、数字广播终端、消息收发设备、游戏控制台、平板设备、医疗设备、健身设备、个人数字助理等。Fig. 8 is a block diagram showing a device 800 for three-dimensional face reconstruction according to an exemplary embodiment. For example, the device 800 may be a mobile phone, a computer, a digital broadcasting terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
参照图8,设备800可以包括以下一个或多个组件:处理组件802、存储器804、电力组件806、多媒体组件808、音频组件810、输入/输出(I/O)的接口812、传感器组件814以及通信组件816。8, the device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and Communication component 816.
处理组件802通常控制设备800的整体操作,诸如与显示、电话呼叫、数据通信、相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。The processing component 802 generally controls the overall operations of the device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the foregoing method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
存储器804被配置为存储各种类型的数据以支持在设备800的操作。这些数据的示例包括用于在设备800上操作的任何应用程序或方法的指令、联系人数据、电话簿数据、消息、图片、视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM)、电可擦除可编程只读存储器(EEPROM)、可擦除可编程只读存储器(EPROM)、可编程只读存储器(PROM)、只读存储器(ROM)、磁存储器、快闪存储器、磁盘或光盘。The memory 804 is configured to store various types of data to support the operation of the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, and the like. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic storage, flash memory, magnetic or optical disk.
电源组件806为设备800的各种组件提供电力。电源组件806可以包括电源管理系统,一个或多个电源,及其他与为设备800生成、管理和分配电力相关联的组件。The power supply component 806 provides power for various components of the device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.
多媒体组件808包括在所述设备800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板, 屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当设备800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, sliding, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure related to the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. When the device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当设备800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the device 800 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive external audio signals. The received audio signal may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for outputting audio signals.
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module. The above-mentioned peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
传感器组件814包括一个或多个传感器,用于为设备800提供各个方面的状态评估。例如,传感器组件814可以检测到设备800的打开/关闭状态,组件的相对定位,例如所述组件为设备800的显示器和小键盘,传感器组件814还可以检测设备800或设备800一个组件的位置改变,用户与设备800接触的存在或不存在,设备800方位或加速/减速和设备800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器、陀螺仪传感器、磁传感器、压力传感器或温度传感器。The sensor component 814 includes one or more sensors for providing the device 800 with various aspects of status assessment. For example, the sensor component 814 can detect the open/close state of the device 800 and the relative positioning of components, such as the display and keypad of the device 800. The sensor component 814 can also detect the position change of the device 800 or a component of the device 800. , The presence or absence of contact between the user and the device 800, the orientation or acceleration/deceleration of the device 800, and the temperature change of the device 800. The sensor component 814 may include a proximity sensor configured to detect the presence of nearby objects when there is no physical contact. The sensor component 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
通信组件816被配置为便于设备800和其他设备之间有线或无线方式的通信。设备800可以接入基于通信标准的无线网络,如WiFi,运营商网络(如2G、3G、4G或8G),或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 can access a wireless network based on a communication standard, such as WiFi, an operator network (such as 2G, 3G, 4G, or 8G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel.
在一示例性实施例中,设备800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, the device 800 can be implemented by one or more application-specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field-available A programmable gate array (FPGA), controller, microcontroller, microprocessor, or other electronic components are implemented to implement the above methods.
在一示例性实施例中,还提供了一种电子设备,包括:处理器820;用于存储处理器820可执行指令的存储器804;其中,处理器820被配置为执行指令,以实现上述任一项实施例中的三维人脸重建方法。In an exemplary embodiment, an electronic device is also provided, including: a processor 820; a memory 804 for storing executable instructions of the processor 820; wherein the processor 820 is configured to execute instructions to implement any of the foregoing. A three-dimensional face reconstruction method in an embodiment.
在一示例性实施例中,还提供了一种存储介质,当存储介质中的指令由电子设备的处理器820执行时,使得电子设备能够执行上述任一项实施例中的三维人脸重建方法。In an exemplary embodiment, a storage medium is also provided. When the instructions in the storage medium are executed by the processor 820 of the electronic device, the electronic device can execute the three-dimensional face reconstruction method in any one of the above embodiments. .
在一示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器804,上述指令可由设备800的处理器820执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 804 including instructions, and the foregoing instructions may be executed by the processor 820 of the device 800 to complete the foregoing method. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Those skilled in the art will easily think of other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptive changes of the present disclosure. These variations, uses, or adaptive changes follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field that are not disclosed in the present disclosure. . The description and the embodiments are to be regarded as exemplary only, and the true scope and spirit of the present disclosure are pointed out by the following claims.

Claims (15)

  1. 一种三维人脸重建方法,其中,包括:A three-dimensional face reconstruction method, which includes:
    获取目标三维人脸模型和标准三维人脸模型;Obtain the target three-dimensional face model and the standard three-dimensional face model;
    按照所述目标三维人脸模型的形状,对所述标准三维人脸模型进行拟合,得到拟合三维人脸模型;Fitting the standard three-dimensional face model according to the shape of the target three-dimensional face model to obtain a fitted three-dimensional face model;
    将所述拟合三维人脸模型中的顶点变换至所述目标三维人脸模型中的顶点处,得到所述目标三维人脸模型对应的三维人脸重建模型。Transforming the vertices in the fitted three-dimensional face model to the vertices in the target three-dimensional face model to obtain a three-dimensional face reconstruction model corresponding to the target three-dimensional face model.
  2. 根据权利要求1所述的三维人脸重建方法,其中,所述标准三维人脸模型中包括标准三维人脸关键点;The three-dimensional face reconstruction method according to claim 1, wherein the standard three-dimensional face model includes standard three-dimensional face key points;
    所述按照所述目标三维人脸模型的形状,对所述标准三维人脸模型进行拟合,得到拟合三维人脸模型,包括:The fitting the standard three-dimensional face model according to the shape of the target three-dimensional face model to obtain a fitted three-dimensional face model includes:
    按照所述目标三维人脸模型的形状,对所述标准三维人脸模型进行拟合,得到初始三维人脸模型;其中,所述初始三维人脸模型中的初始三维人脸关键点与所述标准三维人脸关键点一一对应;According to the shape of the target three-dimensional face model, the standard three-dimensional face model is fitted to obtain an initial three-dimensional face model; wherein, the initial three-dimensional face key points in the initial three-dimensional face model are the same as the One-to-one correspondence between key points of standard three-dimensional faces;
    获取所述目标三维人脸模型中的目标三维人脸关键点;Acquiring key points of the target three-dimensional face in the target three-dimensional face model;
    根据所述初始三维人脸关键点和所述目标三维人脸关键点,构建损失函数;Construct a loss function according to the initial three-dimensional face key points and the target three-dimensional face key points;
    将满足预设条件的损失函数对应的初始三维人脸模型,确定为所述拟合三维人脸模型。The initial three-dimensional face model corresponding to the loss function that meets the preset condition is determined as the fitted three-dimensional face model.
  3. 根据权利要求2所述的三维人脸重建方法,其中,所述获取所述目标三维人脸模型中的目标三维人脸关键点,包括:The 3D face reconstruction method according to claim 2, wherein said acquiring the key points of the target 3D face in the target 3D face model comprises:
    将所述目标三维人脸模型投影至二维图像上,得到二维人脸图像;其中,所述目标三维人脸模型中的顶点与所述二维人脸图像中的顶点之间存在一个顶点对应关系;Project the target three-dimensional face model onto a two-dimensional image to obtain a two-dimensional face image; wherein there is a vertex between the vertex in the target three-dimensional face model and the vertex in the two-dimensional face image Correspondence;
    检测所述二维人脸图像中的二维人脸关键点;Detecting two-dimensional face key points in the two-dimensional face image;
    根据所述二维人脸关键点和所述顶点对应关系,确定出所述目标三维人脸关键点。According to the corresponding relationship between the two-dimensional face key points and the vertices, the target three-dimensional face key points are determined.
  4. 根据权利要求1所述的三维人脸重建方法,其中,所述将所述拟合三维人脸模型中的顶点变换至所述目标三维人脸模型中的顶点处,得到所述目标三维人脸模型对应的三维人脸重建模型,包括:The three-dimensional face reconstruction method according to claim 1, wherein said transforming the vertices in the fitted three-dimensional face model to the vertices in the target three-dimensional face model to obtain the target three-dimensional face The 3D face reconstruction model corresponding to the model includes:
    对于所述拟合三维人脸模型中的顶点,在所述目标三维人脸模型中查找对应的顶点,得到至少一个顶点对;For the vertices in the fitted three-dimensional face model, search for corresponding vertices in the target three-dimensional face model to obtain at least one vertex pair;
    将所述顶点对中与所述拟合三维人脸模型对应的顶点变换至所述目标三维人脸模型对应的顶点处,得到所述三维人脸重建模型。Transforming the vertex corresponding to the fitted three-dimensional face model in the vertex pair to the vertex corresponding to the target three-dimensional face model to obtain the three-dimensional face reconstruction model.
  5. 根据权利要求4所述的三维人脸重建方法,其中,所述对于所述拟合三维人脸模型中的顶点,在所述目标三维人脸模型中查找对应的顶点,得到至少一个顶点对,包括:The 3D face reconstruction method according to claim 4, wherein, for the vertices in the fitted 3D face model, searching for corresponding vertices in the target 3D face model to obtain at least one pair of vertices, include:
    在所述目标三维人脸模型中,查找与所述拟合三维人脸模型中的每一顶点距离最近的顶点;In the target three-dimensional face model, searching for the vertex closest to each vertex in the fitted three-dimensional face model;
    将所述拟合三维人脸模型中的顶点和在所述目标三维人脸模型中查找到的距离最近的顶点,确定为所述至少一个顶点对。The vertex in the fitted three-dimensional face model and the vertex with the closest distance found in the target three-dimensional face model are determined as the at least one vertex pair.
  6. 根据权利要求4所述的三维人脸重建方法,其中,所述将所述顶点对中与所述拟合三维人脸模型对应的顶点变换至所述目标三维人脸模型对应的顶点处,得到所述三维人脸重建模型,包括:The three-dimensional face reconstruction method according to claim 4, wherein the vertex corresponding to the fitted three-dimensional face model in the vertex pair is transformed to the vertex corresponding to the target three-dimensional face model to obtain The three-dimensional face reconstruction model includes:
    应用拉普拉斯算法,将所述顶点对中与所述拟合三维人脸模型对应的顶点变换至所述目标三维人脸模型对应的顶点处,得到所述三维人脸重建模型。Applying the Laplacian algorithm to transform the vertex corresponding to the fitted three-dimensional face model in the vertex pair to the vertex corresponding to the target three-dimensional face model to obtain the three-dimensional face reconstruction model.
  7. 根据权利要求4所述的三维人脸重建方法,其中,所述顶点对中与所述拟合三维人脸模型对应的顶点位于所述拟合三维人脸模型中的人脸区域;The 3D face reconstruction method according to claim 4, wherein the vertex corresponding to the fitted 3D face model in the vertex pair is located in the face area in the fitted 3D face model;
    所述将所述顶点对中与所述拟合三维人脸模型对应的顶点变换至所述目标三维人脸模型对应的顶点处,得到所述三维人脸重建模型之后,包括:The transforming the vertex corresponding to the fitted three-dimensional face model in the vertex pair to the vertex corresponding to the target three-dimensional face model to obtain the three-dimensional face reconstruction model includes:
    获取所述拟合三维人脸模型中非人脸区域的顶点;Acquiring vertices of non-face regions in the fitted three-dimensional face model;
    获取将所述顶点对中与所述拟合三维人脸模型对应的顶点变换至所述目标三维人脸模型对应的顶点处的变换系数;Acquiring a transformation coefficient at which a vertex corresponding to the fitted three-dimensional face model in the vertex pair is transformed to a vertex corresponding to the target three-dimensional face model;
    按照所述变换系数,对所述拟合三维人脸模型中非人脸区域的顶点进行变换,得到三维头部重建模型。According to the transformation coefficient, the vertices of the non-face region in the fitted three-dimensional face model are transformed to obtain a three-dimensional head reconstruction model.
  8. 一种三维人脸重建装置,其中,包括:A three-dimensional face reconstruction device, which includes:
    三维人脸模型获取单元,被配置为执行获取目标三维人脸模型和标准三维人脸模型;The three-dimensional face model acquisition unit is configured to perform acquisition of the target three-dimensional face model and the standard three-dimensional face model;
    三维人脸模型拟合单元,被配置为执行按照所述目标三维人脸模型的形状,对所述标准三维人脸模型进行拟合,得到拟合三维人脸模型;A three-dimensional face model fitting unit configured to perform fitting the standard three-dimensional face model according to the shape of the target three-dimensional face model to obtain a fitted three-dimensional face model;
    三维人脸模型重建单元,被配置为执行将所述拟合三维人脸模型中的顶点变换至所述目标三维人脸模型中的顶点处,得到所述目标三维人脸模型对应的三维人脸重建模型。A three-dimensional face model reconstruction unit configured to perform transformation of the vertices in the fitted three-dimensional face model to the vertices in the target three-dimensional face model to obtain the three-dimensional face corresponding to the target three-dimensional face model Rebuild the model.
  9. 根据权利要求8所述的三维人脸重建装置,其中,所述标准三维人脸模型中包括标准三维人脸关键点;所述三维人脸模型拟合单元还被配置为执行:The three-dimensional face reconstruction device according to claim 8, wherein the standard three-dimensional face model includes standard three-dimensional face key points; and the three-dimensional face model fitting unit is further configured to execute:
    按照所述目标三维人脸模型的形状,对所述标准三维人脸模型进行拟合,得到初始三维人脸模型;其中,所述初始三维人脸模型中的初始三维人脸关键点与所述标准三维人脸关键点一一对应;According to the shape of the target three-dimensional face model, the standard three-dimensional face model is fitted to obtain an initial three-dimensional face model; wherein, the initial three-dimensional face key points in the initial three-dimensional face model are the same as the One-to-one correspondence between key points of standard three-dimensional faces;
    获取所述目标三维人脸模型中的目标三维人脸关键点;Acquiring key points of the target three-dimensional face in the target three-dimensional face model;
    根据所述初始三维人脸关键点和所述目标三维人脸关键点,构建损失函数;Construct a loss function according to the initial three-dimensional face key points and the target three-dimensional face key points;
    将满足预设条件的损失函数对应的初始三维人脸模型,确定为所述拟合三维人脸模型。The initial three-dimensional face model corresponding to the loss function that meets the preset condition is determined as the fitted three-dimensional face model.
  10. 根据权利要求9所述的三维人脸重建装置,其中,所述三维人脸模型拟合单元还被配置为执行:The three-dimensional face reconstruction device according to claim 9, wherein the three-dimensional face model fitting unit is further configured to execute:
    将所述目标三维人脸模型投影至二维图像上,得到二维人脸图像;其中,所述目标三维人脸模型中的顶点与所述二维人脸图像中的顶点之间存在一个顶点对应关系;Project the target three-dimensional face model onto a two-dimensional image to obtain a two-dimensional face image; wherein there is a vertex between the vertex in the target three-dimensional face model and the vertex in the two-dimensional face image Correspondence;
    检测所述二维人脸图像中的二维人脸关键点;Detecting two-dimensional face key points in the two-dimensional face image;
    根据所述二维人脸关键点和所述顶点对应关系,确定出所述目标三维人脸关键点。According to the corresponding relationship between the two-dimensional face key points and the vertices, the target three-dimensional face key points are determined.
  11. 根据权利要求8所述的三维人脸重建装置,其中,所述三维人脸模型重建单元还被配置为执行:The three-dimensional face reconstruction device according to claim 8, wherein the three-dimensional face model reconstruction unit is further configured to perform:
    对于所述拟合三维人脸模型中的顶点,在所述目标三维人脸模型中查找对应的顶点,得到至少一个顶点对;For the vertices in the fitted three-dimensional face model, search for corresponding vertices in the target three-dimensional face model to obtain at least one vertex pair;
    将所述顶点对中与所述拟合三维人脸模型对应的顶点变换至所述目标三维人脸模型对应的顶点处,得到所述三维人脸重建模型。Transforming the vertex corresponding to the fitted three-dimensional face model in the vertex pair to the vertex corresponding to the target three-dimensional face model to obtain the three-dimensional face reconstruction model.
  12. 根据权利要求11所述的三维人脸重建装置,其中,所述三维人脸模型重建单元还被配置为执行:The three-dimensional face reconstruction device according to claim 11, wherein the three-dimensional face model reconstruction unit is further configured to perform:
    在所述目标三维人脸模型中,查找与所述拟合三维人脸模型中的每一顶点距离最近的顶点;In the target three-dimensional face model, searching for the vertex closest to each vertex in the fitted three-dimensional face model;
    将所述拟合三维人脸模型中的顶点和在所述目标三维人脸模型中查找到的距离最近的顶点,确定为所述至少一个顶点对。The vertex in the fitted three-dimensional face model and the vertex with the closest distance found in the target three-dimensional face model are determined as the at least one vertex pair.
  13. 根据权利要求11所述的三维人脸重建装置,其中,所述三维人脸模型重建单元还被配置为执行:The three-dimensional face reconstruction device according to claim 11, wherein the three-dimensional face model reconstruction unit is further configured to perform:
    应用拉普拉斯算法,将所述顶点对中与所述拟合三维人脸模型对应的顶点变换至所述目标三维人脸模型对应的顶点处,得到所述三维人脸重建模型。Applying the Laplacian algorithm to transform the vertex corresponding to the fitted three-dimensional face model in the vertex pair to the vertex corresponding to the target three-dimensional face model to obtain the three-dimensional face reconstruction model.
  14. 根据权利要求11所述的三维人脸重建装置,其中,所述顶点对中与所述拟合三维人脸模型对应的顶点位于所述拟合三维人脸模型中的人脸区域;所述三维人脸模型重建单元还包括三维头部重建单元,被配置为执行:The 3D face reconstruction device according to claim 11, wherein the vertex corresponding to the fitted 3D face model in the pair of vertices is located in the face area of the fitted 3D face model; the 3D The face model reconstruction unit also includes a three-dimensional head reconstruction unit, which is configured to perform:
    获取所述拟合三维人脸模型中非人脸区域的顶点;Acquiring vertices of non-face regions in the fitted three-dimensional face model;
    获取将所述顶点对中与所述拟合三维人脸模型对应的顶点变换至所述目标三维人脸模型对应的顶点处的变换系数;Acquiring a transformation coefficient at which a vertex corresponding to the fitted three-dimensional face model in the vertex pair is transformed to a vertex corresponding to the target three-dimensional face model;
    按照所述变换系数,对所述拟合三维人脸模型中非人脸区域的顶点进行变换,得到三维头部重建模型。According to the transformation coefficient, the vertices of the non-face region in the fitted three-dimensional face model are transformed to obtain a three-dimensional head reconstruction model.
  15. 一种电子设备,其中,包括:An electronic device, which includes:
    处理器;processor;
    用于存储所述处理器可执行指令的存储器;A memory for storing executable instructions of the processor;
    其中,所述处理器被配置为执行所述指令,实现以下步骤:Wherein, the processor is configured to execute the instruction to implement the following steps:
    获取目标三维人脸模型和标准三维人脸模型;Obtain the target three-dimensional face model and the standard three-dimensional face model;
    按照所述目标三维人脸模型的形状,对所述标准三维人脸模型进行拟合,得到拟合三维人脸模型;Fitting the standard three-dimensional face model according to the shape of the target three-dimensional face model to obtain a fitted three-dimensional face model;
    将所述拟合三维人脸模型中的顶点变换至所述目标三维人脸模型中的顶点处,得到所述目标三维人脸模型对应的三维人脸重建模型。16.一种存储介质,其中,当所述存储介质中的指令由电子设备的处理器执行时,使得所述电子设备能够执行以下三维人脸重建方法:Transforming the vertices in the fitted three-dimensional face model to the vertices in the target three-dimensional face model to obtain a three-dimensional face reconstruction model corresponding to the target three-dimensional face model. 16. A storage medium, wherein when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the following three-dimensional face reconstruction method:
    获取目标三维人脸模型和标准三维人脸模型;Obtain the target three-dimensional face model and the standard three-dimensional face model;
    按照所述目标三维人脸模型的形状,对所述标准三维人脸模型进行拟合,得到拟合三维人脸模型;Fitting the standard three-dimensional face model according to the shape of the target three-dimensional face model to obtain a fitted three-dimensional face model;
    将所述拟合三维人脸模型中的顶点变换至所述目标三维人脸模型中的顶点处,得到所述目标三维人脸模型对应的三维人脸重建模型。Transforming the vertices in the fitted three-dimensional face model to the vertices in the target three-dimensional face model to obtain a three-dimensional face reconstruction model corresponding to the target three-dimensional face model.
PCT/CN2020/132460 2020-05-29 2020-11-27 Three-dimensional face reconstruction method and apparatus WO2021238126A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010479102.1 2020-05-29
CN202010479102.1A CN113744384B (en) 2020-05-29 2020-05-29 Three-dimensional face reconstruction method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2021238126A1 true WO2021238126A1 (en) 2021-12-02

Family

ID=78725042

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/132460 WO2021238126A1 (en) 2020-05-29 2020-11-27 Three-dimensional face reconstruction method and apparatus

Country Status (2)

Country Link
CN (1) CN113744384B (en)
WO (1) WO2021238126A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023155775A1 (en) * 2022-02-17 2023-08-24 北京字跳网络技术有限公司 Motion picture generation method and apparatus, computer device, and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117523152B (en) * 2024-01-04 2024-04-12 广州趣丸网络科技有限公司 Three-dimensional face reconstruction method and device, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170084026A1 (en) * 2015-09-21 2017-03-23 Korea Institute Of Science And Technology Method for forming 3d maxillofacial model by automatically segmenting medical image, automatic image segmentation and model formation server performing the same, and storage medium storing the same
CN110796719A (en) * 2018-07-16 2020-02-14 北京奇幻科技有限公司 Real-time facial expression reconstruction method
CN110807836A (en) * 2020-01-08 2020-02-18 腾讯科技(深圳)有限公司 Three-dimensional face model generation method, device, equipment and medium
CN110866864A (en) * 2018-08-27 2020-03-06 阿里巴巴集团控股有限公司 Face pose estimation/three-dimensional face reconstruction method and device and electronic equipment
CN111028343A (en) * 2019-12-16 2020-04-17 腾讯科技(深圳)有限公司 Three-dimensional face model generation method, device, equipment and medium
CN111127668A (en) * 2019-12-26 2020-05-08 网易(杭州)网络有限公司 Role model generation method and device, electronic equipment and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104966316B (en) * 2015-05-22 2019-03-15 腾讯科技(深圳)有限公司 A kind of 3D facial reconstruction method, device and server
US10572720B2 (en) * 2017-03-01 2020-02-25 Sony Corporation Virtual reality-based apparatus and method to generate a three dimensional (3D) human face model using image and depth data
CN108961149B (en) * 2017-05-27 2022-01-07 北京旷视科技有限公司 Image processing method, device and system and storage medium
CN108510437B (en) * 2018-04-04 2022-05-17 科大讯飞股份有限公司 Virtual image generation method, device, equipment and readable storage medium
CN109191507B (en) * 2018-08-24 2019-11-05 北京字节跳动网络技术有限公司 Three-dimensional face images method for reconstructing, device and computer readable storage medium
CN109754467B (en) * 2018-12-18 2023-09-22 广州市百果园网络科技有限公司 Three-dimensional face construction method, computer storage medium and computer equipment
CN110414394B (en) * 2019-07-16 2022-12-13 公安部第一研究所 Facial occlusion face image reconstruction method and model for face occlusion detection

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170084026A1 (en) * 2015-09-21 2017-03-23 Korea Institute Of Science And Technology Method for forming 3d maxillofacial model by automatically segmenting medical image, automatic image segmentation and model formation server performing the same, and storage medium storing the same
CN110796719A (en) * 2018-07-16 2020-02-14 北京奇幻科技有限公司 Real-time facial expression reconstruction method
CN110866864A (en) * 2018-08-27 2020-03-06 阿里巴巴集团控股有限公司 Face pose estimation/three-dimensional face reconstruction method and device and electronic equipment
CN111028343A (en) * 2019-12-16 2020-04-17 腾讯科技(深圳)有限公司 Three-dimensional face model generation method, device, equipment and medium
CN111127668A (en) * 2019-12-26 2020-05-08 网易(杭州)网络有限公司 Role model generation method and device, electronic equipment and storage medium
CN110807836A (en) * 2020-01-08 2020-02-18 腾讯科技(深圳)有限公司 Three-dimensional face model generation method, device, equipment and medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023155775A1 (en) * 2022-02-17 2023-08-24 北京字跳网络技术有限公司 Motion picture generation method and apparatus, computer device, and storage medium

Also Published As

Publication number Publication date
CN113744384A (en) 2021-12-03
CN113744384B (en) 2023-11-28

Similar Documents

Publication Publication Date Title
US11575856B2 (en) Virtual 3D communications using models and texture maps of participants
US11856328B2 (en) Virtual 3D video conference environment generation
US11805157B2 (en) Sharing content during a virtual 3D video conference
US11308692B2 (en) Method and device for processing image, and storage medium
WO2021238126A1 (en) Three-dimensional face reconstruction method and apparatus
CN110148191B (en) Video virtual expression generation method and device and computer readable storage medium
US20210256672A1 (en) Method, electronic device and storage medium for processing image
CN112348933B (en) Animation generation method, device, electronic equipment and storage medium
WO2022037285A1 (en) Camera extrinsic calibration method and apparatus
US20220286657A1 (en) Virtual 3d communications with participant viewpoint adjustment
US20220051412A1 (en) Foreground and background segmentation related to a virtual three-dimensional (3d) video conference
WO2022121577A1 (en) Image processing method and apparatus
US20210392231A1 (en) Audio quality improvement related to a participant of a virtual three dimensional (3d) video conference
CN110728621B (en) Face changing method and device of face image, electronic equipment and storage medium
CN110580677A (en) Data processing method and device and data processing device
WO2022142298A1 (en) Key point detection method and apparatus, and electronic device and storage medium
JP2004326179A (en) Image processing device, image processing method, image processing program, and recording medium storing it
US20220005266A1 (en) Method for processing two-dimensional image and device for executing method
KR20200071008A (en) 2d image processing method and device implementing the same
WO2022042160A1 (en) Image processing method and apparatus
WO2023206475A1 (en) Image processing method and apparatus, electronic device and storage medium
JP2024518888A (en) Method and system for virtual 3D communication - Patents.com
CN114387388A (en) Close-range three-dimensional face reconstruction device
CN115937367A (en) Bone binding method and device for virtual hairstyle, electronic equipment and storage medium
CN115953801A (en) Method and device for acquiring hand map and electronic equipment

Legal Events

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

Ref document number: 20937314

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

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

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

122 Ep: pct application non-entry in european phase

Ref document number: 20937314

Country of ref document: EP

Kind code of ref document: A1