A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Track object in video??

  1. #1
    anyone else hear that? flashpipe1's Avatar
    Join Date
    Jan 2003
    Location
    Upstate NY
    Posts
    1,929

    Track object in video??

    I've got a video with a black rectangle that moves, tilts and zooms...is there any way flash can match an object to that? (for example, if I want to put an image over the black box??
    Is there any way to detect where objects are in a video from flash??
    I've seen some things with web cams where snow collects on people in the cam, etc. so there's got to be some way to "find" things...I'll snoop around some...
    Love like you've never been hurt, live like there's no tomorrow and dance like nobody's watching.

  2. #2
    Member
    Join Date
    Jan 2009
    Location
    Norway
    Posts
    37
    what about FLARToolKit? see this tutorial: http://www.gotoandlearn.com/play?id=105

  3. #3
    Will moderate for beer
    Join Date
    Apr 2007
    Location
    Austin, TX
    Posts
    6,801
    If you want to detect position and orientation in 3d space, you'll probably have to use flartoolkit, which requires a particular kind of black and white marker. Your plain black rectangle won't do.

    You could use bitmap threshhold operations to detect black regions and replace them with other stuff in a greenscreen sort of method.

    Or, if you want to track position only, you could use a mean-shift tracker like the one included in deface. http://code.google.com/p/deface

  4. #4
    anyone else hear that? flashpipe1's Avatar
    Join Date
    Jan 2003
    Location
    Upstate NY
    Posts
    1,929
    Yeah, FLARToolKit is VERY cool, but I think it's only for webcams. I've got an actual video that I need to "mirror" with a flash object. I may have to do it frame by frame instead of trying to actually create some code to "map" the motion...
    Haven't heard of or looked into deface or bitmap thresholds...will do now...

    Thanks!
    Love like you've never been hurt, live like there's no tomorrow and dance like nobody's watching.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center