# Export ROI box to json file

**URL:** https://discourse.slicer.org/t/export-roi-box-to-json-file/5210
**Category:** Support
**Created:** [December 28, 2018, 5:42am UTC](https://discourse.slicer.org/t/export-roi-box-to-json-file/5210 "2018-12-28T05:42:22Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![akhila\_perumalla](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@akhila\_perumalla](https://discourse.slicer.org/u/akhila_perumalla)
#### Post date: [December 28, 2018, 5:42am UTC](https://discourse.slicer.org/t/export-roi-box-to-json-file/5210/1 "2018-12-28T05:42:22Z")

</div>

Operating system: Windows  
Slicer version: 4.10.0  
Expected behavior: Implementation of bounding box for Segmentation using 3D slicer  
Actual behavior:

---

<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: [December 28, 2018, 4:03pm UTC](https://discourse.slicer.org/t/export-roi-box-to-json-file/5210/2 "2018-12-28T16:03:03Z")

</div>

What would you like the bounding box to do?  
Would you like to fill a box shaped region with a segment?

---

<div class="post-metadata">

### Author: ![akhila\_perumalla](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@akhila\_perumalla](https://discourse.slicer.org/u/akhila_perumalla)
#### Post date: [December 31, 2018, 5:29am UTC](https://discourse.slicer.org/t/export-roi-box-to-json-file/5210/3 "2018-12-31T05:29:25Z")

</div>

Thank you for the response.

Yes, I would like to segment using a box(cuboid). And, I would like to export the box information in either json or fav formats.

---

<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: [December 31, 2018, 4:08pm UTC](https://discourse.slicer.org/t/export-roi-box-to-json-file/5210/4 "2018-12-31T16:08:23Z")

</div>

You can place an annotation ROI (select ROI on the [annotation toolbar](https://www.slicer.org/wiki/Documentation/Nightly/Modules/Annotations) and click in the image at the center and corner of the intended box). Then you can save the annotation as a .csv file (menu: File / Save) or [write directly to a json file using this code snippet](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Write_annotation_ROI_to_JSON_file).
