-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow annotation files with raster type (yet not supported) (#245)
Allow the reading of newer Darwin v7 annotations, Expand tests for annotations --------- Co-authored-by: Ajey Pai K <[email protected]>
- Loading branch information
1 parent
8996349
commit 3a6a10f
Showing
5 changed files
with
157 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
{ | ||
"classes": [ | ||
{ | ||
"name": "lymphocyte (cell)", | ||
"type": "keypoint", | ||
"description": null, | ||
"color": "rgba(0,236,123,1.0)", | ||
"sub_types": [ | ||
"inference" | ||
], | ||
"properties": [] | ||
}, | ||
{ | ||
"name": "tumor (cell)", | ||
"type": "bounding_box", | ||
"description": null, | ||
"color": "rgba(255,46,0,1.0)", | ||
"sub_types": [ | ||
"inference" | ||
], | ||
"properties": [] | ||
}, | ||
{ | ||
"name": "tumor (cell)", | ||
"type": "keypoint", | ||
"description": null, | ||
"color": "rgba(255,92,0,1.0)", | ||
"sub_types": [ | ||
"inference" | ||
], | ||
"properties": [] | ||
}, | ||
{ | ||
"name": "lymphocyte (cell)", | ||
"type": "bounding_box", | ||
"description": null, | ||
"color": "rgba(0,236,123,1.0)", | ||
"sub_types": [ | ||
"inference" | ||
], | ||
"properties": [] | ||
}, | ||
{ | ||
"name": "tumor (area)", | ||
"type": "polygon", | ||
"description": null, | ||
"color": "rgba(255,46,0,1.0)", | ||
"sub_types": [ | ||
"inference" | ||
], | ||
"properties": [] | ||
}, | ||
{ | ||
"name": "stroma (area)", | ||
"type": "polygon", | ||
"description": null, | ||
"color": "rgba(0,236,123,1.0)", | ||
"sub_types": [ | ||
"inference" | ||
], | ||
"properties": [] | ||
}, | ||
{ | ||
"name": "ROI (segmentation)", | ||
"type": "bounding_box", | ||
"description": null, | ||
"color": "rgba(143,0,255,1.0)", | ||
"sub_types": [ | ||
"inference" | ||
], | ||
"properties": [] | ||
}, | ||
{ | ||
"name": "__raster_layer__", | ||
"type": "raster_layer", | ||
"description": "System class for all team's annotations with raster_layer type", | ||
"color": null, | ||
"sub_types": [], | ||
"properties": [] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"version": "2.0", | ||
"schema_ref": "https://darwin-public.s3.eu-west-1.amazonaws.com/darwin_json/2.0/schema.json", | ||
"item": { | ||
"name": "dummy.tif", | ||
"path": "/", | ||
"source_info": { | ||
"dataset": { | ||
"name": "PlayGround", | ||
"slug": "playground", | ||
"dataset_management_url": "dummy-url" | ||
}, | ||
"item_id": "0189bfc8-4487-4b1f-5516-30150df25cc6", | ||
"team": { | ||
"name": "test-team", | ||
"slug": "test-team" | ||
}, | ||
"workview_url": "dummy-url" | ||
}, | ||
"slots": [ | ||
{ | ||
"type": "image", | ||
"slot_name": "0", | ||
"width": 63488, | ||
"height": 40064, | ||
"thumbnail_url": "dummy-url", | ||
"source_files": [ | ||
{ | ||
"file_name": "103S.tif", | ||
"url": "dummy-url" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"annotations": [ | ||
{ | ||
"raster_layer": { | ||
"dense_rle":"placeholder", | ||
"total_pixels": 1000, | ||
"mask_annotation_ids_mapping": { | ||
"0": "A random ID" | ||
} | ||
}, | ||
"id": "A random ID", | ||
"name": "placeholder", | ||
"slot_names": [ | ||
"0" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters