"""
  Loads the C api, 
    prints the ids of the markers defined in object_data file. 
    Queries the api to detect the first defined marker
"""

import patternsAPI

det = patternsAPI.detection()
salida = det.arMultiGetIdsMarker()
markers = salida.split(";")
print "Markers: " + str(markers)
det.init()
while 1:
  #det.refresh()
  x = det.getMarkerTrigDist("NotEnter")
  if x!= -1:
      print x 
    
  
