# Skeleton key point data saving

**URL:** <https://community.stereolabs.com/t/skeleton-key-point-data-saving/925>\
**Category:** Uncategorized\
**Created:** [March 11, 2022, 2:41pm UTC](https://community.stereolabs.com/t/skeleton-key-point-data-saving/925 "2022-03-11T14:41:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kismetzc](https://community.stereolabs.com/user_avatar/community.stereolabs.com/kismetzc/32/185_2.png) [@Kismetzc](https://community.stereolabs.com/u/Kismetzc)\
**Post date:** [March 11, 2022, 2:41pm UTC](https://community.stereolabs.com/t/skeleton-key-point-data-saving/925/1 "2022-03-11T14:41:21Z")

</div>

Hello,

I want to save the skeleton keypoints in zed-samples/body-tracking/python/body\_tracking. What is the accuracy of the data? Is there a function similar to Kinect to convert these skeleton data into action files such as .bvh .fbx?

---

<div class="post-metadata">

**Author:** ![Kismetzc](https://community.stereolabs.com/user_avatar/community.stereolabs.com/kismetzc/32/185_2.png) [@Kismetzc](https://community.stereolabs.com/u/Kismetzc)\
**Post date:** [March 15, 2022, 12:33pm UTC](https://community.stereolabs.com/t/skeleton-key-point-data-saving/925/2 "2022-03-15T12:33:41Z")

</div>

Hello? Is there anyone who can answer my question?

---

<div class="post-metadata">

**Author:** ![glichtwark](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/g/e19adc/32.png) [@glichtwark](https://community.stereolabs.com/u/glichtwark)\
**Post date:** [April 12, 2022, 4:21am UTC](https://community.stereolabs.com/t/skeleton-key-point-data-saving/925/3 "2022-04-12T04:21:38Z")

</div>

I have written keypoints into a CSV file. Create a new csv file (import csv) outside the while loop. Within the while loop in the body\_tracking.py example you can loop through the keypoints associated with each body and save this into the CSV e.g. -

```
     ## go through all bodies and get the keypoints and add to a file    
     for body in bodies.object_list: 
          keypoints_row = list(np.array([[kp_3d] for kp_3d in body.keypoint]).flatten())
          # Export to CSV
          with open(fileout, mode='a', newline='') as f:
              csv_writer = csv.writer(f, delimiter=',', quotechar='"', quoting=csv.QUOTE_MINIMAL)
              csv_writer.writerow(keypoints_row )
```
