Ejemplo n.º 1
0
        # FIX ME : error message 
        exit(-1)

    if len(xmlfilemap) == 0:
        p.output_fw = xmlfilemap.output_fw  
    else:
       # print "Input set already exists: %s"%(xmlfilemap.output_fw)
        params.remove(p) 
               
    xmlfilemap_list.append(xmlfilemap)


if len(params) > 0:
    sys.stdout.write("\nGenerating %d input set(s)... "%(len(params)))
    sys.stdout.flush()
    multihandler = MultiHandler.Manager(WorkerType.process, Convert.Converter(Settings.converted_pdf))
    multihandler.run(params)
    print "%f seconds!"%(multihandler.getDuration())

#################################################################################################################
# EXTRACT QR CODES (multi-threaded)

params = []
old_xmlfilemap_list = xmlfilemap_list
xmlfilemap_list = []

for old_xmlfilemap in old_xmlfilemap_list:
      
    p = Extract.Parameters(None, None, Settings.x_tolerance, Settings.y_tolerance, Settings.region_tolerance, Settings.first_dimension)

    try: