@@ -652,12 +652,14 @@ def get_image_preannotations(project, image_name):
652652 :return: dict object with following keys:
653653 "preannotation_json": dict object of the annotation,
654654 "preannotation_json_filename": filename on server,
655+ "preannotation_mask": mask (for pixel),
656+ "preannotation_mask_filename": mask filename on server
655657 :rtype: dict
656658 """
657- return _get_image_pre_or_annotations (project , image_name , "pre" , "Vector" )
659+ return _get_image_pre_or_annotations (project , image_name , "pre" )
658660
659661
660- def get_image_annotations (project , image_name , project_type = None ):
662+ def get_image_annotations (project , image_name ):
661663 """Get annotations of the image.
662664
663665 :param project: project name or metadata of the project
@@ -672,7 +674,7 @@ def get_image_annotations(project, image_name, project_type=None):
672674 "annotation_mask_filename": mask filename on server
673675 :rtype: dict
674676 """
675- return _get_image_pre_or_annotations (project , image_name , "" , project_type )
677+ return _get_image_pre_or_annotations (project , image_name , "" )
676678
677679
678680def _get_image_pre_or_annotations (project , image_name , pre , project_type = None ):
0 commit comments