Use VideoFeed movement to rotate Object

hi ladies and gents,

i’m struggling for two days now to get this patch working:

i project a millwheel onto a wall. bypassing people are videotracked. they influence speed and spinning direction with thier movements. movement is seperated into this coming from L to R and from R to L. the object should be rotated into the according direction.

my approach:

contour, heading gets speed and direction of all objects.
seperate objects in those moving L->R and R->L by selecting through movement angle.
add the values of those goups, smoothing with decay.

maybe contour is the wrong node?
it would be very nice if someone could take a look the patch…
the thing is supposed to work on our party tonight.


big THX

mü (11.1 kB)