@@ -240,7 +240,8 @@ def export_annotations(
240240 annotation_set_id : int = None ,
241241 annotation_format : str = 'json' ,
242242 export_coordinates : str = 'pixel' ,
243- full_path : str = 'true' ,
243+ full_path : bool = True ,
244+ export_tags : bool = True
244245 ) -> bytes :
245246 """
246247 Export annotations for a given annotation set
@@ -249,8 +250,9 @@ def export_annotations(
249250 annotation_set_id: annotation set id, by default will be used default_annotation_set
250251 annotation_format: can be one of ['json', 'coco', 'csv'], default='json'
251252 export_coordinates: converts output values to percentage or pixels, can be one of ['pixel', 'percent'], default='pixel'
252- full_path: uses full image path (e.g. local path), can be one of ['true', 'false'], default='false'
253-
253+ full_path: uses full image path (e.g. local path), it can be one of [True, False], default=True
254+ export_tags: exports the tags to a CSV file, it can be one of [True, False], default=True
255+
254256 Returns:
255257 annotation file content
256258 """
@@ -260,6 +262,7 @@ def export_annotations(
260262 annotation_format = annotation_format ,
261263 export_coordinates = export_coordinates ,
262264 full_path = full_path ,
265+ export_tags = export_tags
263266 )
264267
265268 print ('ERROR: annotation set not defined' )
@@ -270,7 +273,8 @@ def export_annotations_to_file(
270273 annotation_set_id : int = None ,
271274 annotation_format : str = 'json' ,
272275 export_coordinates : str = 'pixel' ,
273- full_path : str = 'true' ,
276+ full_path : bool = True ,
277+ export_tags : bool = True
274278 ):
275279 """
276280 Exports annotations in given format and save to output file
@@ -279,8 +283,9 @@ def export_annotations_to_file(
279283 output_file: output file to save
280284 annotation_set_id: annotation set id
281285 annotation_format: can be one of ['json', 'coco', 'csv'], default='json'
282- full_path: uses full image path (e.g. local path), can be one of ['true', 'false' ], default='false'
286+ full_path: uses full image path (e.g. local path), it can be one of [True, False ], default=True
283287 export_coordinates: converts output values to percentage or pixels, can be one of ['pixel', 'percent'], default='pixel'
288+ export_tags: exports the tags to a CSV file, it can be one of [True, False], default=True
284289 """
285290 annotation_set = self .get_annotation_set (annotation_set_id )
286291 if annotation_set :
@@ -290,6 +295,7 @@ def export_annotations_to_file(
290295 annotation_format = annotation_format ,
291296 full_path = full_path ,
292297 export_coordinates = export_coordinates ,
298+ export_tags = export_tags
293299 )
294300 else :
295301 print ('ERROR: annotation set not defined' )
0 commit comments