Text this: Vision based two-dimensional measurement of machine tool motion trajectory