Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
81cfa28
Clone project for attached
dshabin Nov 3, 2021
bbf70fe
Deleted unused functions
Nov 16, 2021
a79120f
Add logging
dshabin Nov 18, 2021
f8336ac
Fix tests
dshabin Nov 19, 2021
3f83242
Fix test
dshabin Nov 19, 2021
5bd2d06
Fix tests - TODOS
dshabin Nov 19, 2021
ecc465e
Add expand user - delete unused
dshabin Nov 19, 2021
690152b
fix token
dshabin Nov 22, 2021
f148e1f
merge friday
dshabin Nov 22, 2021
d155f46
Merge pull request #320 from superannotateai/sdk_502
dshabin Nov 22, 2021
f1a9d38
edit reporter
dshabin Nov 22, 2021
d9c36d7
merge
dshabin Nov 22, 2021
a1f8bbc
Update annotation status to InProgress on annotation upload.
Nov 23, 2021
7b1099f
Add logging
dshabin Nov 18, 2021
018c143
Add expand user - delete unused
dshabin Nov 19, 2021
d4f6dea
Merge branch 'f-518' of https://github.com/superannotateai/superannot…
Nov 23, 2021
be47f39
Fix clone project
dshabin Nov 23, 2021
f5719f8
Deleted unused functions
Nov 16, 2021
dca25b2
Fix tests
dshabin Nov 19, 2021
2075179
Fix test
dshabin Nov 19, 2021
6574a4c
Fix tests - TODOS
dshabin Nov 19, 2021
23542ea
Merge branch 'friday' of https://github.com/superannotateai/superanno…
Nov 23, 2021
585cf88
Add logging
dshabin Nov 18, 2021
a58188e
Add expand user - delete unused
dshabin Nov 19, 2021
4214a0c
Add logging
dshabin Nov 18, 2021
dae576a
rebase with friday
Nov 23, 2021
88573cf
Merge pull request #322 from superannotateai/f-518
VaghinakDev Nov 23, 2021
43ce8a7
Merge pull request #324 from superannotateai/sdk_20
VaghinakDev Nov 23, 2021
05ac5f3
Fix clone project tests
dshabin Nov 23, 2021
160b4cd
Add mixpanel fields
dshabin Nov 23, 2021
acc5831
Added time in the logs.
Nov 23, 2021
bb34355
Change mixp token
dshabin Nov 23, 2021
6701165
Merge pull request #325 from superannotateai/mixp_token
dshabin Nov 23, 2021
53d9d7d
Merge pull request #274 from superannotateai/friday-436
dshabin Nov 23, 2021
afcce60
Merge pull request #326 from superannotateai/sdk_logging
dshabin Nov 23, 2021
213702d
tests refactor, tags fix
Nov 24, 2021
1b56876
Merge pull request #328 from superannotateai/friday
dshabin Nov 24, 2021
b58699c
Update version.py
dshabin Nov 24, 2021
af39148
Fix logs
dshabin Nov 24, 2021
0a00b6c
Update version.py
dshabin Nov 24, 2021
d1942e4
540, 435
Nov 25, 2021
c038f26
Add info logs clone project
dshabin Nov 25, 2021
5954473
Merge branch 'develop' of https://github.com/superannotateai/superann…
dshabin Nov 25, 2021
cadeca9
Add upload_state test
dshabin Nov 25, 2021
2221900
Remove space
dshabin Nov 25, 2021
3156e64
make validate - add debug
dshabin Nov 25, 2021
3867de7
Merge pull request #330 from superannotateai/clone_project
VaghinakDev Nov 26, 2021
fce0c5d
Merge branch 'friday' into sdk_540
VaghinakDev Nov 26, 2021
298dcf9
Merge pull request #329 from superannotateai/sdk_540
VaghinakDev Nov 26, 2021
c72c9d9
Fix created log
dshabin Nov 26, 2021
b85ee41
Change share project
dshabin Nov 29, 2021
9f4e5e5
Merge pull request #332 from superannotateai/f-568
dshabin Nov 29, 2021
8ff7907
Merge pull request #331 from superannotateai/friday
dshabin Nov 29, 2021
bf12c16
Update version.py
dshabin Nov 29, 2021
a440f1f
Modify cloning log
dshabin Nov 30, 2021
53ae56d
Fix logs
dshabin Nov 30, 2021
30a6e24
Merge pull request #333 from superannotateai/f-568
dshabin Nov 30, 2021
de6123b
Merge pull request #334 from superannotateai/friday
dshabin Nov 30, 2021
8196463
Update version.py
dshabin Nov 30, 2021
76c4445
Fix sphinx
dshabin Dec 2, 2021
d3db484
Merge pull request #336 from superannotateai/doc
dshabin Dec 2, 2021
a9ff518
New image response
dshabin Dec 2, 2021
793bfd2
Update tests
dshabin Dec 2, 2021
a0d57c3
Change serializer
dshabin Dec 3, 2021
b0c4a28
Update tests
dshabin Dec 3, 2021
d57284b
Add TODO
dshabin Dec 3, 2021
54c02d8
Merge pull request #337 from superannotateai/friday-548
dshabin Dec 3, 2021
ef9a182
Merge pull request #338 from superannotateai/friday
dshabin Dec 3, 2021
fe3971e
Update version.py
dshabin Dec 3, 2021
b73271d
Add search_images_all_folders
dshabin Dec 6, 2021
eef36fe
Merge pull request #339 from superannotateai/friday
dshabin Dec 6, 2021
6fe3c50
Update version.py
dshabin Dec 6, 2021
afa414b
Fix docs
dshabin Dec 8, 2021
72ae147
Merge pull request #340 from superannotateai/friday
dshabin Dec 8, 2021
02d11ff
rebase master
dshabin Dec 10, 2021
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
37 changes: 1 addition & 36 deletions docs/source/superannotate.sdk.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,9 @@ ________
.. autofunction:: superannotate.get_folder_metadata
.. autofunction:: superannotate.create_folder
.. autofunction:: superannotate.delete_folders
.. autofunction:: superannotate.rename_folder
.. autofunction:: superannotate.upload_images_to_project
.. autofunction:: superannotate.attach_image_urls_to_project
.. autofunction:: superannotate.upload_images_from_public_urls_to_project
.. autofunction:: superannotate.upload_images_from_s3_bucket_to_project
.. autofunction:: superannotate.attach_document_urls_to_project
.. autofunction:: superannotate.upload_image_to_project
.. autofunction:: superannotate.delete_annotations
Expand All @@ -51,10 +49,7 @@ ________
.. autofunction:: superannotate.upload_annotations_from_folder_to_project
.. autofunction:: superannotate.upload_preannotations_from_folder_to_project
.. autofunction:: superannotate.share_project
.. autofunction:: superannotate.unshare_project
.. autofunction:: superannotate.get_project_settings
.. autofunction:: superannotate.set_project_settings
.. autofunction:: superannotate.get_project_default_image_quality_in_editor
.. autofunction:: superannotate.set_project_default_image_quality_in_editor
.. autofunction:: superannotate.get_project_workflow
.. autofunction:: superannotate.set_project_workflow
Expand All @@ -79,32 +74,21 @@ ______
.. autofunction:: superannotate.search_images
.. autofunction:: superannotate.search_images_all_folders
.. autofunction:: superannotate.get_image_metadata
.. autofunction:: superannotate.get_image_bytes
.. autofunction:: superannotate.download_image
.. autofunction:: superannotate.set_image_annotation_status
.. autofunction:: superannotate.set_images_annotation_statuses
.. autofunction:: superannotate.get_image_annotations
.. autofunction:: superannotate.get_image_preannotations
.. autofunction:: superannotate.download_image_annotations
.. autofunction:: superannotate.download_image_preannotations
.. autofunction:: superannotate.upload_image_annotations
.. autofunction:: superannotate.copy_image
.. autofunction:: superannotate.copy_images
.. autofunction:: superannotate.move_image
.. autofunction:: superannotate.move_images
.. autofunction:: superannotate.pin_image
.. autofunction:: superannotate.assign_images
.. autofunction:: superannotate.delete_image
.. autofunction:: superannotate.delete_images
.. autofunction:: superannotate.add_annotation_bbox_to_image
.. autofunction:: superannotate.add_annotation_polygon_to_image
.. autofunction:: superannotate.add_annotation_polyline_to_image
.. autofunction:: superannotate.add_annotation_point_to_image
.. autofunction:: superannotate.add_annotation_ellipse_to_image
.. autofunction:: superannotate.add_annotation_template_to_image
.. autofunction:: superannotate.add_annotation_cuboid_to_image
.. autofunction:: superannotate.add_annotation_comment_to_image
.. autofunction:: superannotate.create_fuse_image

----------

Expand All @@ -114,7 +98,6 @@ __________________
.. autofunction:: superannotate.create_annotation_class
.. _ref_create_annotation_classes_from_classes_json:
.. autofunction:: superannotate.create_annotation_classes_from_classes_json
.. autofunction:: superannotate.get_annotation_class_metadata
.. autofunction:: superannotate.search_annotation_classes
.. autofunction:: superannotate.download_annotation_classes_json
.. autofunction:: superannotate.delete_annotation_class
Expand All @@ -126,21 +109,15 @@ _________________

.. autofunction:: superannotate.get_team_metadata
.. autofunction:: superannotate.invite_contributor_to_team
.. autofunction:: superannotate.delete_contributor_to_team_invitation
.. autofunction:: superannotate.search_team_contributors

----------

Neural Network
_______________

.. autofunction:: superannotate.delete_model
.. autofunction:: superannotate.download_model
.. autofunction:: superannotate.plot_model_metrics
.. autofunction:: superannotate.run_prediction
.. autofunction:: superannotate.run_segmentation
.. autofunction:: superannotate.run_training
.. autofunction:: superannotate.stop_model_training
.. autofunction:: superannotate.search_models

----------
Expand Down Expand Up @@ -301,7 +278,6 @@ _________________________________________________________________
.. autofunction:: superannotate.import_annotation
.. autofunction:: superannotate.export_annotation
.. autofunction:: superannotate.convert_project_type
.. autofunction:: superannotate.coco_split_dataset
.. autofunction:: superannotate.convert_json_version


Expand All @@ -311,19 +287,9 @@ _________________________________________________________________
Working with annotations
________________________

.. _ref_add_annotation_bbox_to_json:
.. autofunction:: superannotate.validate_annotations
.. autofunction:: superannotate.add_annotation_bbox_to_json
.. autofunction:: superannotate.add_annotation_polygon_to_json
.. autofunction:: superannotate.add_annotation_polyline_to_json
.. autofunction:: superannotate.add_annotation_point_to_json
.. autofunction:: superannotate.add_annotation_ellipse_to_json
.. autofunction:: superannotate.add_annotation_template_to_json
.. autofunction:: superannotate.add_annotation_cuboid_to_json
.. autofunction:: superannotate.add_annotation_comment_to_json
.. _ref_aggregate_annotations_as_df:
.. autofunction:: superannotate.validate_annotations
.. autofunction:: superannotate.aggregate_annotations_as_df
.. autofunction:: superannotate.df_to_annotations

----------

Expand All @@ -337,6 +303,5 @@ _____________________________________________________________
Utility functions
--------------------------------

.. autofunction:: superannotate.dicom_to_rgb_sequence
.. autofunction:: superannotate.consensus
.. autofunction:: superannotate.benchmark
46 changes: 1 addition & 45 deletions docs/source/tutorial.sdk.rst
Original file line number Diff line number Diff line change
Expand Up @@ -226,14 +226,6 @@ each JSON a mask image file should be present with the name
:file:`"<image_name>___save.png"`. Image with :file:`<image_name>` should
already be present in the project for the upload to work.

You can add an annotation to local annotations JSON with:

.. code-block:: python

sa.add_annotation_bbox_to_json("<path_to_json>", [10, 10, 100, 100],
"Human")



Exporting projects
__________________
Expand Down Expand Up @@ -380,33 +372,12 @@ To download image annotations:

sa.download_image_annotations(project, image, "<path_to_local_dir>")

After the image annotations are downloaded, you can add annotations to it:

.. code-block:: python

sa.add_annotation_bbox_to_json("<path_to_json>", [10, 10, 100, 100],
"Human")

and upload back to the platform with:
Upload back to the platform with:

.. code-block:: python

sa.upload_image_annotations(project, image, "<path_to_json>")

Last two steps can be combined into one:

.. code-block:: python

sa.add_annotation_bbox_to_image(project, image, [10, 10, 100, 100], "Human")

but if bulk changes are made to many images it is much faster to add all required
annotations using :ref:`add_annotation_bbox_to_json
<ref_add_annotation_bbox_to_json>`
then upload them using
:ref:`upload_annotations_from_folder_to_project
<ref_upload_images_from_folder_to_project>`.


----------


Expand Down Expand Up @@ -453,13 +424,6 @@ Example of created DataFrame:
Each row represents annotation information. One full annotation with multiple
attribute groups can be grouped under :code:`instanceId` field.

To transform back pandas DataFrame annotations to SuperAnnotate format annotation:

.. code-block:: python

sa.df_to_annotations(filtered_df, "<path_to_output_folder>")


----------


Expand All @@ -486,14 +450,6 @@ Aggregated distribution is returned as pandas dataframe with columns className a
Working with DICOM files
_______________________________________________________


To convert DICOM file images to JPEG images:


.. code-block:: python

df = sa.dicom_to_rgb_sequence("<path_to_dicom_file>", "<path_to_output_dir>")

JPEG images with names :file:`<dicom_file_name>_<frame_num>.jpg` will be created
in :file:`<path_to_output_dir>`. Those JPEG images can be uploaded to
SuperAnnotate platform using the regular:
Expand Down
3 changes: 2 additions & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ tox==3.24.2
pytest==6.2.4
pytest-xdist==2.3.0
pytest-parallel==0.1.0
pytest-rerunfailures==10.2
pytest-rerunfailures==10.2
sphinx_rtd_theme==1.0.0
31 changes: 0 additions & 31 deletions sample_scripts/apply_preannotation.py

This file was deleted.

Loading