示例#1
0
 def load(self, p_project_path):
     self.project_path = p_project_path
     pics_file = self.project_path + '/.pics.ls'
     f = open(pics_file, "r")
     contents = f.readlines()
     f.close()
     index = 1
     queue_service = QueueService()
     processed_path = self.project_path + "/processed/"
     for c in contents:
         pic_path = processed_path + c[:-1]
         if (not f_checker(pic_path + ".tif") or
                 not f_checker(pic_path + ".hocr")):
             if (not f_checker(processed_path + "rlsp" + str(index).zfill(5) + ".tif") or
                     not f_checker(processed_path + "rlsp" + str(index).zfill(5) + ".hocr")):
                 queue_service.push([c[:-1]])
                 print("Pushing " + c[:-1])
         index += 1
示例#2
0
 def load(self, p_project_path):
     self.project_path = p_project_path
     pics_file = self.project_path + '/.pics.ls'
     f = open(pics_file, "r")
     contents = f.readlines()
     f.close()
     index = 1
     queue_service = QueueService()
     processed_path = self.project_path + "/processed/"
     for c in contents:
         pic_path = processed_path + c[:-1]
         if (not f_checker(pic_path + ".tif")
                 or not f_checker(pic_path + ".hocr")):
             if (not f_checker(processed_path + "rlsp" +
                               str(index).zfill(5) + ".tif")
                     or not f_checker(processed_path + "rlsp" +
                                      str(index).zfill(5) + ".hocr")):
                 queue_service.push([c[:-1]])
                 print("Pushing " + c[:-1])
         index += 1