Image processing method and electronic device
The invention discloses an image processing method and an electronic device. The image processing method includes the following steps. A plurality of face feature points of the face frame are analyzed. The feature width is calculated according to the facial feature points, and the head pose is analy...
Gespeichert in:
Hauptverfasser: | , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses an image processing method and an electronic device. The image processing method includes the following steps. A plurality of face feature points of the face frame are analyzed. The feature width is calculated according to the facial feature points, and the head pose is analyzed according to the facial feature points. The feature width is updated to generate an updated width according to the head pose. And calculating the scaling ratio of the updated width relative to the initial width. And controlling the shooting distance of the virtual camera in the virtual scene according to the scaling. A two-dimensional image is sampled from the virtual scene according to a shooting distance of the virtual camera.
本发明公开一种影像处理方法及电子装置,影像处理方法包含下列步骤。分析脸部图框的复数个脸部特征点。依据该些脸部特征点计算特征宽度,并且依据该些脸部特征点分析头部位姿。依据头部位姿,更新特征宽度以产生更新后的宽度。计算更新后的宽度相对于初始宽度的缩放比例。依据缩放比例,控制虚拟相机在虚拟场景中的摄像距离。依据虚拟相机的摄像距离,自虚拟场景采样二维影像。 |
---|