In [38]:
from common import RobotCamomile
from getpass import getpass
from IPython.display import display, HTML

In [68]:
robot = RobotCamomile('http://api.mediaeval.niderb.fr', 'robot_evidence', password=getpass())
mugshotLayer = robot.getLayerByName(robot.getCorpusByName('mediaeval.test'), 'mediaeval.groundtruth.evidence.mugshot')
annotations = robot.getAnnotations(mugshotLayer)


········

In [69]:
def htmlImage(png, person_name):
    return '<img src="data:image/png;base64,' + png + '"/>' + "<br/>".join(person_name.split('_'))

In [70]:
images = "<table '>"
for a, annotation in enumerate(annotations):
    if a % 6 == 0:
        if a > 0:
            images += '</tr>'
        images += '<tr style="vertical-align: top;" >'
    images += '<td style="vertical-align: top;">' + htmlImage(annotation.data.png, annotation.fragment) + '</td>'
images += '</tr></table>'
display(HTML(images))


henry
germain
delauze
marguerite
maeght
guy
fournier
michele
alliot
marie
olivier
roche
samah
soula
stephane
berthieh
yvan
roque