Augmented reality framework

Hi!

1. I need a framework(with all the source) possible call from java or php that i will add to my php or java web applications which runnings on apache or tomcat or jboss and is able to running 3D animations in Argumented Reality when the customers check the website. Get the pics from the customers webcam and add my animations into it. If the customer moving the marker the animations has to move to.

So sg like this.

1.I call the api form my php or java codes with all the parameters (animation, marker ans so on....)
2. Customer go to my webpage
3. He print a marker
4. He go to the my AR page that contains the api you developed
5. His webcam become working
6. He show the marker to the webcam
7. The animations became to the real pic (Argumented reality)
8. If he is turning or moving the marker the animations will moving too