From 6f71fb102f509d705d3abaa1f44638a19f57e92e Mon Sep 17 00:00:00 2001 From: natanielruiz <nataniel777@hotmail.com> Date: 星期一, 07 八月 2017 05:15:52 +0800 Subject: [PATCH] next --- code/utils.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/utils.py b/code/utils.py index 645ae19..52bfa73 100644 --- a/code/utils.py +++ b/code/utils.py @@ -22,8 +22,8 @@ face_y = tdy - 0.50 * size else: height, width = img.shape[:2] - face_x = width / 2 - 0.15 - size - face_y = height / 2 - 0.15 - size + face_x = width / 2 - 0.5 * size + face_y = height / 2 - 0.5 * size x1 = size * (cos(y) * cos(r)) + face_x y1 = size * (cos(p) * sin(r) + cos(r) * sin(p) * sin(y)) + face_y -- Gitblit v1.8.0