def CalcCenterOfPos(frame): vecs = frameToArray(frame) return vecs.mean(axis=0)