This is the data for one pose. I have a lot of data like this which i want to convert to CSV to apply machine learning algorithm. I am assuming I have to convert this data into a single row of comma separated values which will define a single pose. Any suggestions will be appreciated.
You can use flatten
numpy for this task. Simply convert your data to a numpy array and use the function as:
In : import numpy as np In : x = [[[1,2], [3,4]]] In : x Out: [[[1, 2], [3, 4]]] In : np.array(x).flatten() Out: array([1, 2, 3, 4])