|
|
|
@ -98,7 +98,7 @@ class SaveHandler(RestHandler):
@@ -98,7 +98,7 @@ class SaveHandler(RestHandler):
|
|
|
|
|
x="{ann.bbox[0] * -1 * normalisedAnn.scale}" |
|
|
|
|
y="{ann.bbox[1] * -1 * normalisedAnn.scale}"></image> |
|
|
|
|
{"".join(segments)} |
|
|
|
|
<text fill="white" font-size="40pt" font-family="sans-serif" x="{textX}" y="{textY}">{cat['name']}</text> |
|
|
|
|
<text fill="white" font-size="30pt" font-family="sans-serif" x="{textX}" y="{textY}">{cat['name']}</text> |
|
|
|
|
</g> |
|
|
|
|
""") |
|
|
|
|
annotations.append({'id': annId, 'x': x, 'y': y}) |
|
|
|
|