Skip to content

Commit

Permalink
Include imagemetadata during export
Browse files Browse the repository at this point in the history
  • Loading branch information
rayson1223 committed Dec 14, 2018
1 parent 290dd4d commit 6bd2c79
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions imagetagger/imagetagger/annotations/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ def export_format(export_format_name, imageset):
'%%imagewidth': image.width,
'%%imageheight': image.height,
'%%imagename': image.name,
'%%imagemetadata': json.loads(image.metadata),
'%%type': annotation.annotation_type.name,
'%%veriamount': annotation.verification_difference,
'%%vector': formatted_vector,
Expand Down Expand Up @@ -338,6 +339,7 @@ def export_format(export_format_name, imageset):
'%%imagewidth': image.width,
'%%imageheight': image.height,
'%%imagename': image.name,
'%%imagemetadata': json.loads(image.metadata),
'%%annotations': annotation_content,
'%%annoamount': annotations.count(),
}
Expand Down Expand Up @@ -393,6 +395,7 @@ def export_format(export_format_name, imageset):
'%%imagewidth': annotation.image.width,
'%%imageheight': annotation.image.height,
'%%imagename': annotation.image.name,
'%%imagemetadata': json.loads(annotation.image.metadata),
'%%type': annotation.annotation_type.name,
'%%veriamount': annotation.verification_difference,
'%%vector': formatted_vector,
Expand Down

0 comments on commit 6bd2c79

Please sign in to comment.