arToolkit and papervision3d

Too sad that my french and japanese is really bad. I recently found a great arToolkit demo for flash called FlarToolkit. After randomly clicking all the links I could find on the page, I found the svn :-)

I had a compile error using flex sdk and eclipse. after changing a private to public property it worked.

It performes really well but you can also see that I is still not really stable. I think the major bottleneck is the bad webcam quality compared to a dv cam.

What I don’t get:

When the FlarToolkit has found the rectangle in the “2d” image, how can I transform this data in the papervision3D room. If you have a 2d->3d math for dummies link – please drop me a line.

What I would love to do:

As you can see there are some serious tracking precision issues. In my opinion the major problem is the pixelbased tracking. It’s a waste of performance. This could be solved by an Idea Mario Klingemann presened on the FFK08 called blobdetection.

Well this is my theory:

  1. Blur the camera image and convert it in black / white image
  2. With getcolorBoundsRect and floodfill detect all black rectangles in the image
  3. Find the marker rectangle
  4. Use an edge detection
  5. You should be done

So you only need to analyse a small amount of pixels directly for the edge detection. The other stuff can be done by “internal” flash functions which are really fast. Maybe I’ll try it – someday.

Responses (Add Your Comment)

  1. actually it’s named Flartoolkit, this is an adaptation of Artoolkit in AS3 for flash made by two japanese developpers (they are genius ;) )

  2. thanks for that. corrected it in the post. you are right it’s an awesome work.

  3. Ha, i did the same thing. Just clicked randomly till in found the svn link.

    I just started looking at the code, not too familiar with Augmented reality, but if you happen to know of any tutorials using this lib please let me know. Thanks!

  4. sorry don’t know any tutorials. and i dont have much time right now. but i really want to optimize the toolkit and do a tutorial on the 2d – 3d transformation math (which i have to teach myself first)

  5. “after changing a private to public property it worked.”

    which line did you change?

    thanks

  6. honestly i dont know anymore. but eclipse told me pretty exact. o got an error like – couldnt access property – so i changed the private to public. I KNOW it would be better to write a get method but i didnt want to ;)
    If you cant find the property i can mail you my version. I will not post it because i don’t want to “steal” the credits for this awesome work

  7. You probably found this out already, but i just wanted to mention that the public/protected thing is mentioned here:

    http://www.mikkoh.com/blog/?p=182

    This guy supposedly found out himself :)

Trackbacks:

 

Leave a Reply

Formatting: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">