Skip to content
Snippets Groups Projects
Commit 54106258 authored by Manuel Günther's avatar Manuel Günther
Browse files

Fixed py3 compatibility issue

parent 94deb52c
No related branches found
No related tags found
No related merge requests found
...@@ -4,11 +4,11 @@ import bob.bio.face ...@@ -4,11 +4,11 @@ import bob.bio.face
# Cropping # Cropping
CROPPED_IMAGE_HEIGHT = 80 CROPPED_IMAGE_HEIGHT = 80
CROPPED_IMAGE_WIDTH = CROPPED_IMAGE_HEIGHT * 4 / 5 CROPPED_IMAGE_WIDTH = CROPPED_IMAGE_HEIGHT * 4 // 5
# eye positions for frontal images # eye positions for frontal images
RIGHT_EYE_POS = (CROPPED_IMAGE_HEIGHT / 5, CROPPED_IMAGE_WIDTH / 4 - 1) RIGHT_EYE_POS = (CROPPED_IMAGE_HEIGHT // 5, CROPPED_IMAGE_WIDTH // 4 - 1)
LEFT_EYE_POS = (CROPPED_IMAGE_HEIGHT / 5, CROPPED_IMAGE_WIDTH / 4 * 3) LEFT_EYE_POS = (CROPPED_IMAGE_HEIGHT // 5, CROPPED_IMAGE_WIDTH // 4 * 3)
# define the preprocessor # define the preprocessor
preprocessor = bob.bio.face.preprocessor.FaceCrop( preprocessor = bob.bio.face.preprocessor.FaceCrop(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment