Method for shooting high-definition photo based on OpenGL (Open Graphics Library) simulation field depth effect and mobile terminal

The invention provides a method for shooting a high-definition photo by simulating a depth-of-field effect based on OpenGL and a mobile terminal, and the method comprises the steps: S100, capturing camera preview data as to-be-blurred preview texture data A1 in a photographing callback time period w...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: MEI JUNMING, JIANG NAN, ZHANG XU
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention provides a method for shooting a high-definition photo by simulating a depth-of-field effect based on OpenGL and a mobile terminal, and the method comprises the steps: S100, capturing camera preview data as to-be-blurred preview texture data A1 in a photographing callback time period when a photographing event is monitored to be triggered; s200, performing Gaussian blur processing on the to-be-blurred preview texture data A1 to obtain blurred preview texture data B; and step S300, amplifying the blurred preview texture data B to a size corresponding to the photographing texture data D, and carrying out simulated depth-of-field fusion on the blurred preview texture data B and the photographing texture data D through OpenGL to obtain a final photo. Therefore, a large-size high-definition depth-of-field simulation picture is obtained. 本发明提供了一种基于OpenGL模拟景深效果拍摄高清照片的方法及移动终端,其中该方法步骤包括:步骤S100当监测到拍照事件被触发时,在拍照回调时段内,捕获相机预览数据作为待虚化预览纹理数据A1;步骤S200对待虚化预览纹理数据A1进行高斯模糊处理,获取虚化预览纹理数据B;步骤S300将虚化预览纹理数据B放大到与拍照纹理数据D对应尺