Skip to content
Snippets Groups Projects
Commit 956906a4 authored by Olegs NIKISINS's avatar Olegs NIKISINS
Browse files

Changed hard-coded constants into face size relative in FaceEyesNorm call

parent 5ba868c9
No related branches found
No related tags found
1 merge request!57Preprocessor refactoring, VideoFaceCrop+ImageFaceCrop replaced with FaceCropAlign+Wrapper
......@@ -88,7 +88,11 @@ class ImageFaceCrop(Preprocessor):
if use_face_alignment:
face_eyes_norm = bob.ip.base.FaceEyesNorm(eyes_distance = 32.5, crop_size = (face_size, face_size), eyes_center = (16, 31.75)) # Add more params,
face_eyes_norm = bob.ip.base.FaceEyesNorm(
eyes_distance=(face_size / 2.),
crop_size=(face_size, face_size),
eyes_center=(face_size / 4., (face_size - 0.5) / 2.))
right_eye,left_eye=annotations['right_eye'],annotations['left_eye']
normalized_image = face_eyes_norm( image, right_eye = right_eye, left_eye = left_eye )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment