# Query on exporting annotation

**URL:** https://discourse.slicer.org/t/query-on-exporting-annotation/16032
**Category:** Support
**Created:** [February 17, 2021, 11:34am UTC](https://discourse.slicer.org/t/query-on-exporting-annotation/16032 "2021-02-17T11:34:37Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Akash](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/akash/32/10013_2.png) [@Akash](https://discourse.slicer.org/u/Akash)
#### Post date: [February 17, 2021, 11:34am UTC](https://discourse.slicer.org/t/query-on-exporting-annotation/16032/1 "2021-02-17T11:34:37Z")

</div>

Operating system: Windows10  
Slicer version:4.11.20200930  
Expected behavior: NA  
Actual behavior:NA

I would like to export the annotation co ordinates in a JSON/CSV/XML format containing the filename, label and co ordinate points. Please guide me on how to do it. I am new to this tool so kindly excuse.

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [February 17, 2021, 11:43am UTC](https://discourse.slicer.org/t/query-on-exporting-annotation/16032/2 "2021-02-17T11:43:18Z")

</div>

Markups are already saved in json or csv format in recent Slicer versions.

What filename would you like to see in the file?

---

<div class="post-metadata">

### Author: ![Akash](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/akash/32/10013_2.png) [@Akash](https://discourse.slicer.org/u/Akash)
#### Post date: [February 17, 2021, 11:48am UTC](https://discourse.slicer.org/t/query-on-exporting-annotation/16032/3 "2021-02-17T11:48:06Z")

</div>

Thanks for your response sir. Suppose I open a DICOM series say 1.dcm, 2.dcm and 3.dcm. And I annotate a ROI in 2.dcm. Then in the saved file I would like to have this filename as 2.dcm. By doing so when I annotate images in bulk say 50 or 100 DICOM files then I will know the corresponding images and csvs.

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [February 17, 2021, 11:55am UTC](https://discourse.slicer.org/t/query-on-exporting-annotation/16032/4 "2021-02-17T11:55:23Z")

</div>

Do you annotate the images to generate training data for object detection, localization, or segmentation? What kind of annotations do you use?

Do you work with 2D or 3D images? A single 3D volume is usually made up of many DICOM files, so your annotation can spread over multiple files and/or may be between defined between two files.

---

<div class="post-metadata">

### Author: ![Akash](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/akash/32/10013_2.png) [@Akash](https://discourse.slicer.org/u/Akash)
#### Post date: [February 17, 2021, 12:03pm UTC](https://discourse.slicer.org/t/query-on-exporting-annotation/16032/5 "2021-02-17T12:03:43Z")

</div>

I am annotating 2D DICOM files for object detection training.

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [February 18, 2021, 7:25pm UTC](https://discourse.slicer.org/t/query-on-exporting-annotation/16032/6 "2021-02-18T19:25:15Z")

</div>

How do you open the DICOM files? Do you use [CaseIterator extension](https://github.com/JoostJM/SlicerCaseIterator), load the images one by one, or do they show up as a sequence of images or as a 3D image stack?

---

<div class="post-metadata">

### Author: ![Akash](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/akash/32/10013_2.png) [@Akash](https://discourse.slicer.org/u/Akash)
#### Post date: [February 20, 2021, 6:14am UTC](https://discourse.slicer.org/t/query-on-exporting-annotation/16032/7 "2021-02-20T06:14:36Z")

</div>

I am not directly using DICOM for training purpose. I convert them to PNG and feed to my network. Also currently I am using only 2D DICOM images and not 3D.
