Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

"Recording" a contour obtained with ofxCv

$
0
0

@t.espinoza wrote:

hi all,

i am having trouble understanding how an idea might look as code. i would be grateful for anyone who can offer input and direction :slight_smile:

i am using ofxcv to receive the contour of an object. i want to record it’s movement so that once this specific contour is no longer being tracked, a “shadow” is left behind that is the same shape as the contour and moves exactly how the object did in its lifetime. so if the object moves around in a bunch of irregular spirals and then it disappears, a shadow of the object is drawn and moves in the same irregular spirals, and i can just loop that movement so that once it ends it starts from the beginning again.

some specific questions i have, beyond the general “how i might do what i just described”:

  • ofxcv has a tracker that i think i can use for this? i’m looking at the header file though and am not sure i completely grasp the differences between the labels (current, previous, new, dead).
  • if i am interested in recording multiple objects, and having several shadows and their movements looping and possibly interacting with each other, will it be computationally expensive? are there areas i can optimize?
  • better to use a depth camera over usb camera? i am doing this with controlled lighting with a usb camera right now, but don’t think it will be as uniform in other places.

thank you!

tristan

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 4929

Latest Images

Trending Articles



Latest Images