summaryrefslogtreecommitdiff
path: root/megapixels/commands/demo/face_3ddfa.py
diff options
context:
space:
mode:
Diffstat (limited to 'megapixels/commands/demo/face_3ddfa.py')
-rw-r--r--megapixels/commands/demo/face_3ddfa.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/megapixels/commands/demo/face_3ddfa.py b/megapixels/commands/demo/face_3ddfa.py
index 90359159..23bbcf7e 100644
--- a/megapixels/commands/demo/face_3ddfa.py
+++ b/megapixels/commands/demo/face_3ddfa.py
@@ -300,6 +300,9 @@ def cli(ctx, opt_fp_in, opt_dir_out, opt_gpu, opt_bbox_init,
fp_out = join(fpp_out, f'{fpp_in.stem}.obj')
write_obj_with_colors(fp_out, vertices_orig, triangles, colors)
+ fp_out = join(fpp_out, f'{fpp_in.stem}.txt')
+ np.savetxt(fp_out, pts68, fmt='%.3f')
+
# ----------------------------------------------------------------------------
# display