@@ -40,8 +40,8 @@ def search_images(
4040):
4141 """Search images by name_prefix (case-insensitive) and annotation status
4242
43- :param project: project name or metadata of the project
44- :type project: str or dict
43+ :param project: project name or folder path (e.g., "project1/folder1")
44+ :type project: str
4545 :param image_name_prefix: image name prefix for search
4646 :type image_name_prefix: str
4747 :param annotation_status: if not None, annotation statuses of images to filter,
@@ -119,8 +119,8 @@ def process_result(x):
119119def get_image_metadata (project , image_names , return_dict_on_single_output = True ):
120120 """Returns image metadata
121121
122- :param project: project name or metadata of the project
123- :type project: str or dict
122+ :param project: project name or folder path (e.g., "project1/folder1")
123+ :type project: str
124124 :param image_name: image name
125125 :type image: str
126126
@@ -186,8 +186,8 @@ def get_image_metadata(project, image_names, return_dict_on_single_output=True):
186186def set_image_annotation_status (project , image_name , annotation_status ):
187187 """Sets the image annotation status
188188
189- :param project: project name or metadata of the project
190- :type project: str or dict
189+ :param project: project name or folder path (e.g., "project1/folder1")
190+ :type project: str
191191 :param image_name: image name
192192 :type image: str
193193 :param annotation_status: annotation status to set,
@@ -229,8 +229,8 @@ def add_annotation_comment_to_image(
229229):
230230 """Add a comment to SuperAnnotate format annotation JSON
231231
232- :param project: project name or metadata of the project
233- :type project: str or dict
232+ :param project: project name or folder path (e.g., "project1/folder1")
233+ :type project: str
234234 :param image_name: image name
235235 :type image: str
236236 :param comment_text: comment text
@@ -265,8 +265,8 @@ def add_annotation_bbox_to_image(
265265
266266 annotation_class_attributes has the form [ {"name" : "<attribute_value>" }, "groupName" : "<attribute_group>"} ], ... ]
267267
268- :param project: project name or metadata of the project
269- :type project: str or dict
268+ :param project: project name or folder path (e.g., "project1/folder1")
269+ :type project: str
270270 :param image_name: image name
271271 :type image: str
272272 :param bbox: 4 element list of top-left x,y and bottom-right x, y coordinates
@@ -301,8 +301,8 @@ def add_annotation_polygon_to_image(
301301
302302 annotation_class_attributes has the form [ {"name" : "<attribute_value>", "groupName" : "<attribute_group>"}, ... ]
303303
304- :param project: project name or metadata of the project
305- :type project: str or dict
304+ :param project: project name or folder path (e.g., "project1/folder1")
305+ :type project: str
306306 :param image_name: image name
307307 :type image: str
308308 :param polygon: [x1,y1,x2,y2,...] list of coordinates
@@ -335,8 +335,8 @@ def add_annotation_polyline_to_image(
335335
336336 annotation_class_attributes has the form [ {"name" : "<attribute_value>", "groupName" : "<attribute_group>"}, ... ]
337337
338- :param project: project name or metadata of the project
339- :type project: str or dict
338+ :param project: project name or folder path (e.g., "project1/folder1")
339+ :type project: str
340340 :param image_name: image name
341341 :type image: str
342342 :param polyline: [x1,y1,x2,y2,...] list of coordinates
@@ -368,8 +368,8 @@ def add_annotation_point_to_image(
368368
369369 annotation_class_attributes has the form [ {"name" : "<attribute_value>", "groupName" : "<attribute_group>"}, ... ]
370370
371- :param project: project name or metadata of the project
372- :type project: str or dict
371+ :param project: project name or folder path (e.g., "project1/folder1")
372+ :type project: str
373373 :param image_name: image name
374374 :type image: str
375375 :param point: [x,y] list of coordinates
@@ -401,8 +401,8 @@ def add_annotation_ellipse_to_image(
401401
402402 annotation_class_attributes has the form [ {"name" : "<attribute_value>", "groupName" : "<attribute_group>"}, ... ]
403403
404- :param project: project name or metadata of the project
405- :type project: str or dict
404+ :param project: project name or folder path (e.g., "project1/folder1")
405+ :type project: str
406406 :param image_name: image name
407407 :type image: str
408408 :param ellipse: [center_x, center_y, r_x, r_y, angle] list of coordinates and angle
@@ -435,8 +435,8 @@ def add_annotation_template_to_image(
435435
436436 annotation_class_attributes has the form [ {"name" : "<attribute_value>", "groupName" : "<attribute_group>"}, ... ]
437437
438- :param project: project name or metadata of the project
439- :type project: str or dict
438+ :param project: project name or folder path (e.g., "project1/folder1")
439+ :type project: str
440440 :param image_name: image name
441441 :type image: str
442442 :param template_points: [x1,y1,x2,y2,...] list of coordinates
@@ -474,8 +474,8 @@ def add_annotation_cuboid_to_image(
474474
475475 annotation_class_attributes has the form [ {"name" : "<attribute_value>", "groupName" : "<attribute_group>"}, ... ]
476476
477- :param project: project name or metadata of the project
478- :type project: str or dict
477+ :param project: project name or folder path (e.g., "project1/folder1")
478+ :type project: str
479479 :param image_name: image name
480480 :type image: str
481481 :param cuboid: [x_front_tl,y_front_tl,x_front_br,y_front_br,
@@ -509,8 +509,8 @@ def download_image(
509509):
510510 """Downloads the image (and annotation if not None) to local_dir_path
511511
512- :param project: project name or metadata of the project
513- :type project: str or dict
512+ :param project: project name or folder path (e.g., "project1/folder1")
513+ :type project: str
514514 :param image_name: image name
515515 :type image: str
516516 :param local_dir_path: where to download the image
@@ -569,8 +569,8 @@ def download_image(
569569def delete_image (project , image_name ):
570570 """Deletes image
571571
572- :param project: project name or metadata of the project
573- :type project: str or dict
572+ :param project: project name or folder path (e.g., "project1/folder1")
573+ :type project: str
574574 :param image_name: image name
575575 :type image: str
576576 """
@@ -592,8 +592,8 @@ def get_image_bytes(project, image_name, variant='original'):
592592 """Returns an io.BytesIO() object of the image. Suitable for creating
593593 PIL.Image out of it.
594594
595- :param project: project name or metadata of the project
596- :type project: str or dict
595+ :param project: project name or folder path (e.g., "project1/folder1")
596+ :type project: str
597597 :param image_name: image name
598598 :type image: str
599599 :param variant: which resolution to get, can be 'original' or 'lores'
@@ -640,8 +640,8 @@ def get_image_bytes(project, image_name, variant='original'):
640640def get_image_preannotations (project , image_name ):
641641 """Get pre-annotations of the image. Only works for "vector" projects.
642642
643- :param project: project name or metadata of the project
644- :type project: str or dict
643+ :param project: project name or folder path (e.g., "project1/folder1")
644+ :type project: str
645645 :param image_name: image name
646646 :type image: str
647647
@@ -658,8 +658,8 @@ def get_image_preannotations(project, image_name):
658658def get_image_annotations (project , image_name ):
659659 """Get annotations of the image.
660660
661- :param project: project name or metadata of the project
662- :type project: str or dict
661+ :param project: project name or folder path (e.g., "project1/folder1")
662+ :type project: str
663663 :param image_name: image name
664664 :type image: str
665665
@@ -758,8 +758,8 @@ def download_image_annotations(project, image_name, local_dir_path):
758758 """Downloads annotations of the image (JSON and mask if pixel type project)
759759 to local_dir_path.
760760
761- :param project: project name or metadata of the project
762- :type project: str or dict
761+ :param project: project name or folder path (e.g., "project1/folder1")
762+ :type project: str
763763 :param image_name: image name
764764 :type image: str
765765 :param local_dir_path: local directory path to download to
@@ -814,8 +814,8 @@ def download_image_preannotations(project, image_name, local_dir_path):
814814 """Downloads pre-annotations of the image to local_dir_path.
815815 Only works for "vector" projects.
816816
817- :param project: project name or metadata of the project
818- :type project: str or dict
817+ :param project: project name or folder path (e.g., "project1/folder1")
818+ :type project: str
819819 :param image_name: image name
820820 :type image: str
821821 :param local_dir_path: local directory path to download to
@@ -835,8 +835,8 @@ def upload_image_annotations(
835835 """Upload annotations from JSON (also mask for pixel annotations)
836836 to the image.
837837
838- :param project: project name or metadata of the project
839- :type project: str or dict
838+ :param project: project name or folder path (e.g., "project1/folder1")
839+ :type project: str
840840 :param image_name: image name
841841 :type image: str
842842 :param annotation_json: annotations in SuperAnnotate format JSON dict or path to JSON file
0 commit comments