File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -47,21 +47,27 @@ __ https://scale.com/docs/#create-categorization-task
47
47
categories = [' public' , ' private' ]
48
48
)
49
49
50
- Create Annotation Task
50
+ Create Image Annotation Task
51
51
======================
52
52
53
53
Check `this `__ for further information.
54
54
55
- __ https://scale.com/docs/#2d-box -annotation
55
+ __ https://docs. scale.com/reference#general-image -annotation
56
56
57
57
.. code-block :: python
58
58
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
+ }
65
71
)
66
72
67
73
Retrieve task
You can’t perform that action at this time.
0 commit comments