Skip to content

Commit 1ad7512

Browse files
authored
Fix up Image Annotation in Readme
1 parent f62ed53 commit 1ad7512

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

README.rst

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,27 @@ __ https://scale.com/docs/#create-categorization-task
4747
categories=['public', 'private']
4848
)
4949
50-
Create Annotation Task
50+
Create Image Annotation Task
5151
======================
5252

5353
Check `this`__ for further information.
5454

55-
__ https://scale.com/docs/#2d-box-annotation
55+
__ https://docs.scale.com/reference#general-image-annotation
5656

5757
.. code-block:: python
5858
59-
client.create_annotation_task(
60-
callback_url='http://www.example.com/callback',
61-
instruction='Draw a box around each baby cow and big cow.',
62-
attachment_type="image",
63-
attachment="http://i.imgur.com/v4cBreD.jpg",
64-
objects_to_annotate=["baby cow", "big cow"]
59+
client.create_imageannotation_task(
60+
callback_url = 'http://www.example.com/callback',
61+
instruction= 'Draw a box around each baby cow and big cow.',
62+
attachment_type = "image",
63+
attachment = "http://i.imgur.com/v4cBreD.jpg",
64+
geometries= {
65+
"box": {
66+
"objects_to_annotate: ["Baby Cow", "Big Cow"],
67+
"min_height": 10,
68+
"min_width": 10
69+
}
70+
}
6571
)
6672
6773
Retrieve task

0 commit comments

Comments
 (0)