-
Notifications
You must be signed in to change notification settings - Fork 4
Annotations
Giulio edited this page Jan 3, 2023
·
2 revisions
The JSON format:
{
"metadata": {
"annotations": {
"1": { "x": 0.7, "y": 0.6, "w": 0.2, "h": 0.18, "category": "pigments", "text": "prussian blue" },
"2": { "x": 0.1, "y": 0.8, "w": 0.15, "h": 0.1, "category": "pigments", "text": "azurite" },
"3": { "x": 0.7, "y": 0.4, "w": 0.1, "h": 0.1, "category": "people", "text": "Mary" }
}
}
}
Internally, annotations are saved as XML:
<ph:annotations xmlns:ph="http://phaidra.org/XML/V1.0/annotation">
<ph:annotation ph:id="1">
<ph:x>0.7</ph:x>
<ph:y>0.6</ph:y>
<ph:w>0.2</ph:w>
<ph:h>0.18</ph:h>
<ph:category>pigments</ph:category>
<ph:text>prussian blue</ph:text>
</ph:annotation>
<ph:annotation ph:id="3">
<ph:x>0.7</ph:x>
<ph:y>0.4</ph:y>
<ph:w>0.1</ph:w>
<ph:h>0.1</ph:h>
<ph:category>people</ph:category>
<ph:text>Mary</ph:text>
</ph:annotation>
<ph:annotation ph:id="2">
<ph:x>0.1</ph:x>
<ph:y>0.8</ph:y>
<ph:w>0.15</ph:w>
<ph:h>0.1</ph:h>
<ph:category>pigments</ph:category>
<ph:text>azurite</ph:text>
</ph:annotation>
</ph:annotations>