I am working on a piece of software written in Java that uses some processing.core library classes and simpleopenni to track a user's hand with the XBOX Kinect.
What I am trying to figure out is how to determine when a user's hand movement changes direction abruptly.
What I have at my disposal currently is an array of PVectors (essentially a vector of x,y,and z coordinates: A point in 3d space) that record the user's hand position for the past 30 frames or so.
I imagine that there must be a way to obtain a value that represents the amount of directional change in nearly real-time given the most recent few points recorded. Maybe fit a curve and take some derivatives?
Ideally the solution should not be very computationally expensive, as I am trying to implement a real-time worthy solution.
Any direction that you can offer will be greatly appreciated!