Skip to content

Commit 67cc7ed

Browse files
committed
updated
2 parents a7bb8af + 2b466b2 commit 67cc7ed

File tree

53 files changed

+1196
-5175
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1196
-5175
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,6 @@ dmypy.json
130130

131131
sample_large_files
132132
sample_tif_files
133+
134+
# Vscode settings folder
135+
.vscode/

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ For further steps please have a look at the [tutorial](https://superannotate.rea
3737

3838
- Search projects
3939
- Create/delete a project
40-
- Upload images to a project from local or AWS S3 folder
40+
- Upload images to a project from a local or AWS S3 folder
41+
- Upload videos to a project from a local folder
4142
- Upload annotations/pre-annotations to a project from local or AWS S3 folder
4243
- Set the annotation status of the images being uploaded
4344
- Export annotations from a project to a local or AWS S3 folder

docs/source/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ __________________
6565

6666
- Search projects
6767
- Create/delete a project
68-
- Upload images to a project from local or AWS S3 folder
68+
- Upload images to a project from a local or AWS S3 folder
69+
- Upload videos to a project from a local folder
6970
- Upload annotations/pre-annotations to a project from local or AWS S3 folder
7071
- Set the annotation status of the images being uploaded
7172
- Export annotations from a project to a local or AWS S3 folder

docs/source/superannotate.sdk.rst

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ ________
3333
.. autofunction:: superannotate.upload_image_to_project
3434
.. _ref_upload_images_from_folder_to_project:
3535
.. autofunction:: superannotate.upload_images_from_folder_to_project
36+
.. autofunction:: superannotate.upload_video_to_project
37+
.. autofunction:: superannotate.upload_videos_from_folder_to_project
3638
.. _ref_upload_annotations_from_folder_to_project:
3739
.. autofunction:: superannotate.upload_annotations_from_folder_to_project
3840
.. autofunction:: superannotate.upload_preannotations_from_folder_to_project
@@ -80,6 +82,7 @@ ______
8082
.. autofunction:: superannotate.add_annotation_ellipse_to_image
8183
.. autofunction:: superannotate.add_annotation_template_to_image
8284
.. autofunction:: superannotate.add_annotation_cuboid_to_image
85+
.. autofunction:: superannotate.add_annotation_comment_to_image
8386
.. autofunction:: superannotate.create_fuse_image
8487

8588
----------
@@ -100,6 +103,7 @@ __________________
100103
Team contributors
101104
_________________
102105

106+
.. autofunction:: superannotate.get_team_metadata
103107
.. autofunction:: superannotate.invite_contributor_to_team
104108

105109
----------
@@ -275,8 +279,9 @@ _____________________________________________________________
275279

276280
.. autofunction:: superannotate.import_annotation_format
277281
.. autofunction:: superannotate.export_annotation_format
278-
.. autofunction:: superannotate.convert_platform
279282
.. autofunction:: superannotate.convert_project_type
283+
.. autofunction:: superannotate.convert_platform
284+
280285
----------
281286

282287
Working with annotations
@@ -290,15 +295,18 @@ ________________________
290295
.. autofunction:: superannotate.add_annotation_ellipse_to_json
291296
.. autofunction:: superannotate.add_annotation_template_to_json
292297
.. autofunction:: superannotate.add_annotation_cuboid_to_json
298+
.. autofunction:: superannotate.add_annotation_comment_to_json
293299
.. autofunction:: superannotate.aggregate_annotations_as_df
300+
.. autofunction:: superannotate.consensus
294301
.. autofunction:: superannotate.df_to_annotations
295302
.. _ref_filter_annotation_instances:
296303
.. autofunction:: superannotate.filter_annotation_instances
297304
.. autofunction:: superannotate.filter_images_by_comments
305+
.. autofunction:: superannotate.filter_images_by_tags
298306

299307
----------
300308

301-
Aggregating class distribution from annotations
309+
Aggregating class/attribute distribution from annotations
302310
_____________________________________________________________
303311

304312
.. autofunction:: superannotate.class_distribution
@@ -309,4 +317,4 @@ _____________________________________________________________
309317
Utility functions
310318
--------------------------------
311319

312-
.. autofunction:: superannotate.dicom_to_rgb_sequence
320+
.. autofunction:: superannotate.dicom_to_rgb_sequence

install.sh

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
#!/bin/bash
22

3-
python -m venv venv_sa_conv
3+
PYTHON_VER="3.6"
4+
5+
# ubuntu install dependencies
6+
# sudo add-apt-repository ppa:deadsnakes/ppa
7+
# sudo apt update
8+
# sudo apt install python${PYTHON_VER} python${PYTHON_VER}-venv python${PYTHON_VER}-dev
9+
10+
rm -rf venv_sa_conv
11+
python${PYTHON_VER} -m venv venv_sa_conv
412
source venv_sa_conv/bin/activate
5-
pip install numpy # this is to avoid pycocotools incorrect dependency resolution issue
13+
614
pip install -r requirements.txt
15+
pip install 'git+https://github.com/cocodataset/panopticapi.git'
16+
pip install 'git+https://github.com/philferriere/cocoapi.git#egg=pycocotools&subdirectory=PythonAPI'
17+
18+
pip install -e .

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ Cython>=0.29.21
1313
packaging>=20.4
1414
pandas>=1.1.2
1515
plotly>=4.1.0
16+
ffmpeg-python>=0.2.0
17+
Shapely>=1.7.1

superannotate/__init__.py

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
)
1111
from .analytics.common import aggregate_annotations_as_df, df_to_annotations
1212
from .annotation_helpers import (
13-
add_annotation_bbox_to_json, add_annotation_cuboid_to_json,
14-
add_annotation_ellipse_to_json, add_annotation_point_to_json,
15-
add_annotation_polygon_to_json, add_annotation_polyline_to_json,
16-
add_annotation_template_to_json
13+
add_annotation_bbox_to_json, add_annotation_comment_to_json,
14+
add_annotation_cuboid_to_json, add_annotation_ellipse_to_json,
15+
add_annotation_point_to_json, add_annotation_polygon_to_json,
16+
add_annotation_polyline_to_json, add_annotation_template_to_json
1717
)
1818
from .api import API
1919
from .common import (
@@ -22,7 +22,8 @@
2222
project_type_str_to_int, user_role_str_to_int
2323
)
2424
from .dataframe_filtering import (
25-
filter_annotation_instances, filter_images_by_comments
25+
filter_annotation_instances, filter_images_by_comments,
26+
filter_images_by_tags
2627
)
2728
from .db.annotation_classes import (
2829
create_annotation_class, create_annotation_classes_from_classes_json,
@@ -33,14 +34,14 @@
3334
download_export, get_export_metadata, get_exports, prepare_export
3435
)
3536
from .db.images import (
36-
add_annotation_bbox_to_image, add_annotation_cuboid_to_image,
37-
add_annotation_ellipse_to_image, add_annotation_point_to_image,
38-
add_annotation_polygon_to_image, add_annotation_polyline_to_image,
39-
add_annotation_template_to_image, create_fuse_image, delete_image,
40-
download_image, download_image_annotations, download_image_preannotations,
41-
get_image_annotations, get_image_bytes, get_image_metadata,
42-
get_image_preannotations, search_images, set_image_annotation_status,
43-
upload_annotations_from_json_to_image
37+
add_annotation_bbox_to_image, add_annotation_comment_to_image,
38+
add_annotation_cuboid_to_image, add_annotation_ellipse_to_image,
39+
add_annotation_point_to_image, add_annotation_polygon_to_image,
40+
add_annotation_polyline_to_image, add_annotation_template_to_image,
41+
create_fuse_image, delete_image, download_image, download_image_annotations,
42+
download_image_preannotations, get_image_annotations, get_image_bytes,
43+
get_image_metadata, get_image_preannotations, search_images,
44+
set_image_annotation_status, upload_annotations_from_json_to_image
4445
)
4546
from .db.project import get_project_metadata, search_projects
4647
from .db.project_images import copy_image, move_image, upload_image_to_project
@@ -51,16 +52,18 @@
5152
unshare_project, upload_annotations_from_folder_to_project,
5253
upload_images_from_folder_to_project,
5354
upload_images_from_s3_bucket_to_project, upload_images_to_project,
54-
upload_preannotations_from_folder_to_project
55+
upload_preannotations_from_folder_to_project, upload_video_to_project,
56+
upload_videos_from_folder_to_project
5557
)
56-
from .db.teams import invite_contributor_to_team
58+
from .db.teams import get_team_metadata, invite_contributor_to_team
5759
from .db.users import search_team_contributors
5860
from .dicom_converter import dicom_to_rgb_sequence
5961
from .exceptions import (
6062
SABaseException, SAExistingAnnotationClassNameException,
6163
SAExistingProjectNameException, SANonExistingAnnotationClassNameException,
6264
SANonExistingProjectNameException
6365
)
66+
from .consensus_benchmark.consensus import consensus
6467
from .input_converters.conversion import (
6568
convert_platform, convert_project_type, export_annotation_format,
6669
import_annotation_format

0 commit comments

Comments
 (0)