Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage readme #11

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
made json dumps a bit clearer
  • Loading branch information
sinberlin2 committed Jan 18, 2022
commit a05c152653ce22f30b984ec40244dd1882f0991a
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ For uploading or downloading labels or whole-slide images, the following steps n
- This question needs to be added to the study on slidescore: go to → study → edit study → questions → select question type e.g. annotate shapes for bounding box → name the question by clicking on it after it appears under "scoring sheet". The colour of the annotation can be also changed here.
- answer: type string
- Needs to be in a very specific format: “[{annotation 1}, {annotation 2}, {annotation n}]”. This list is inside the string.
- It can be achieved with using json.dumps(wsi_results)
- Using json.dumps(), you can transform your list of annotation dictionaries into a sting in the format above.
- Every annotation is also in a specific format.
- For rectangle annotations: {"type": "rect", "corner": {"x": 123, "y": 456}, "size": {"x": 12, "y": 34}}. The corner coordinates refer to the top left corner of the rect. The size coordinates refer to the width (x) and the height (y).