Skip to content

Commit 6cfbe2b

Browse files
committed
Updated cv2 dependency
1 parent bb91af2 commit 6cfbe2b

File tree

5 files changed

+12
-18
lines changed

5 files changed

+12
-18
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
pydantic>=1.10,!=2.0.*
22
aiohttp~=3.8
33
boto3~=1.26
4-
opencv-python~=4.7
4+
opencv-python-headless~=4.7
55
packaging~=23.1
66
plotly~=5.14
77
email-validator~=2.0

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def get_version():
3636
description="Python SDK to SuperAnnotate platform",
3737
license="MIT",
3838
author="SuperAnnotate AI",
39-
author_email="suppoort@superannotate.com",
39+
author_email="support@superannotate.com",
4040
url="https://github.com/superannotateai/superannotate-python-sdk",
4141
long_description=open("README.rst").read(),
4242
long_description_content_type="text/x-rst",

src/superannotate/lib/infrastructure/services/annotation.py

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -253,13 +253,13 @@ async def upload_small_annotations(
253253
folder: entities.FolderEntity,
254254
items_name_data_map: Dict[str, dict],
255255
) -> UploadAnnotationsResponse:
256-
url = urljoin(
257-
self.assets_provider_url,
258-
(
259-
f"{self.URL_UPLOAD_ANNOTATIONS}?{'&'.join(f'image_names[]={item_name}' for item_name in items_name_data_map.keys())}"
260-
),
261-
)
262-
256+
params = [
257+
("team_id", project.team_id),
258+
("project_id", project.id),
259+
("folder_id", folder.id),
260+
*[("image_names[]", item_name) for item_name in items_name_data_map.keys()],
261+
]
262+
url = urljoin(self.assets_provider_url, f"{self.URL_UPLOAD_ANNOTATIONS}")
263263
headers = copy.copy(self.client.default_headers)
264264
del headers["Content-Type"]
265265
async with AIOHttpSession(
@@ -282,12 +282,6 @@ async def upload_small_annotations(
282282
filename=key,
283283
content_type="application/json",
284284
)
285-
286-
params = {
287-
"team_id": project.team_id,
288-
"project_id": project.id,
289-
"folder_id": folder.id,
290-
}
291285
_response = await session.request(
292286
"post", url, params=params, data=form_data
293287
)

tests/integration/test_video.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def test_video_upload_from_folder(self):
4848
self.PROJECT_NAME, self.folder_path, target_fps=1
4949
)
5050

51-
sa.create_folder(self.PROJECT_NAME, self.TEST_FOLDER_NAME)
51+
sa.create_folder(self.PROJECT_NAME, self.TEST_FOLDER_NeAME)
5252
sa.upload_videos_from_folder_to_project(
5353
f"{self.PROJECT_NAME}/{self.TEST_FOLDER_NAME}",
5454
self.folder_path,

tests/unit/test_classes_serialization.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
from typing import List
44
from unittest import TestCase
55

6-
from pydantic import parse_obj_as
7-
from pydantic import ValidationError
6+
from pydantic.v1 import parse_obj_as
7+
from pydantic.v1 import ValidationError
88
from superannotate.lib.app.serializers import BaseSerializer
99
from superannotate.lib.core.entities.classes import AnnotationClassEntity
1010
from superannotate.lib.core.entities.classes import AttributeGroup

0 commit comments

Comments
 (0)