From bb82e06235f74d9afc5c7bcb59bd7384148c64cf Mon Sep 17 00:00:00 2001
From: David Geissbuhler <david.geissbuhler@idiap.ch>
Date: Mon, 25 Sep 2017 16:29:30 +0200
Subject: [PATCH] bugfix: array indices fixed

---
 bob/pad/face/database/mifs.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/bob/pad/face/database/mifs.py b/bob/pad/face/database/mifs.py
index b373bd7c..0b9314fe 100644
--- a/bob/pad/face/database/mifs.py
+++ b/bob/pad/face/database/mifs.py
@@ -105,8 +105,10 @@ class MIFSPadDatabase(FileListPadDatabase):
 
         annotations = {} # dictionary to return
 
-        topleft = (bbox[1], bbox[0])
-        bottomright = (bbox[1] + bbox[3], bbox[0] + bbox[2])
+        topleft = (bbox[0], bbox[1])
+        bottomright = (bbox[0] + bbox[2], bbox[1] + bbox[3])
+        #topleft = (bbox[1], bbox[0])
+        #bottomright = (bbox[1] + bbox[3], bbox[0] + bbox[2])
 
         annotations['0'] = {'topleft': topleft, 'bottomright': bottomright}
 
-- 
GitLab