Skip to content

Commit 85416d7

Browse files
committed
Update tutorial
1 parent 1cd8210 commit 85416d7

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/source/tutorial.sdk.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,19 @@ To create a new "Vector" project with name "Example Project 1" and description
9898
9999
sa.create_project(project, "test", "Vector")
100100
101+
Creating a folder in a project
102+
______________________________
103+
104+
To create a new folder "folder1" in the project "Example Project 1":
105+
106+
.. code-block:: python
107+
108+
sa.create_folder(project, "folder1")
109+
110+
After that point almost all SDK functions that use project name as argument can
111+
point to that folder with slash after the project name, e.g., in this case
112+
"Example Project 1/folder1".
113+
101114
Uploading images to project
102115
____________________________
103116

@@ -128,6 +141,13 @@ For full list of available functions on projects, see :ref:`ref_projects`.
128141
CLI command :ref:`upload-images <ref_upload_images>` can also be used for
129142
image upload.
130143

144+
.. note::
145+
146+
To upload images to the "folder1" instead of the root of the project:
147+
.. code-block:: python
148+
149+
sa.upload_images_from_folder_to_project(project + "/folder1", "<local_folder_path>")
150+
131151
Working with annotation classes
132152
_______________________________________________
133153

0 commit comments

Comments
 (0)