Skip to content
Snippets Groups Projects
Commit 0d8d74b6 authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

Updates

parent fa58408b
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,7 @@ def add_clients_files_annotations(session, verbose = True):
modality="photo"
))
output[client_id_offset].append(file_id_offset)
annotations = open("bob/db/cuhk_cufsf/data/photo_points/{0}tif.pos".format(feret_clients[c][1])).readlines()[0].rstrip("\n").split(" ")
annotations = open("bob/db/cuhk_cufsf/data/photo_points/{0}.tif.pos".format(feret_clients[c][1])).readlines()[0].rstrip("\n").split(" ")
session.add(Annotation(file_id = file_id_offset, re_x=annotations[2], re_y=annotations[3], le_x=annotations[0], le_y=annotations[1] ))
......
......@@ -48,6 +48,8 @@ class Database(bob.db.verification.utils.SQLiteDatabase, bob.db.verification.uti
bob.db.verification.utils.SQLiteDatabase.__init__(self, SQLITE_FILE, File)
bob.db.verification.utils.ZTDatabase.__init__(self, original_directory=original_directory, original_extension=original_extension)
self.feret_directory = feret_directory
def protocols(self):
return PROTOCOLS
......
......@@ -63,7 +63,7 @@ class FERETWrapper():
for c in raw_clients:
c_id = c[0:5]
sketh_file = c[0:5]
photo_file = c[0:-4]
photo_file = c[0:-5]
client_files[c[0:5]] = [sketh_file,photo_file]
......
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