Skip to content

Instantly share code, notes, and snippets.

View figs999's full-sized avatar

Chance Santana-Wees figs999

  • Austin, TX
View GitHub Profile
@figs999
figs999 / bvh_read.py
Last active April 19, 2017 22:30 — forked from johnfredcee/bvh_read.py
bvh file parser (tested w Python2.6)
#Added functionality for interpreting the motion annotations into transformation matrices and euclidean coordinates.
#Restructured the code into an easy to instantiate class.
#To use: BVH(<open file handle>)
import re
import time
import zipfile
from StringIO import StringIO
from math import radians, sqrt, cos, sin
from numpy import matrix, dot, zeros, array, eye, ravel, asarray