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
4747 categories = [' public' , ' private' ]
4848 )
4949
50- Create Annotation Task
50+ Create Image Annotation Task
5151======================
5252
5353Check `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
You can’t perform that action at this time.
0 commit comments