install panda3d
from pandac.PandaModules import *
tex = OpenCVTexture()
tex.setTexturesPower2(ATSNone)
b = loader.loadModel("panda")
ar = ARToolKit.make(base.cam, "./camera_para.dat", 1)
ar.attachPattern("./patterns/4x4_6.patt", b)
def setupAR(task):
ar.analyze(tex, False)
return Task.cont
note thats not a compelte sample. but it should be the most essential part to get it working (under linux, for windows you need to use webcam input instead of openCV texture). i can try to upload a working sample in the evening.