Ejemplo n.º 1
0
    def __init__(self, _id):
        threading.Thread.__init__(self)
        # 识别线程ID
        self._id = _id
        # 创建识别引擎对象
        self.cre = CarRecgEngine()

        logger.info('Recg thread %s start' % _id)
Ejemplo n.º 2
0
    def __init__(self):
        # 配置文件
        self.ini = MyIni()
        self.sysini = self.ini.get_sys_conf()

        app.config['THREADS'] = self.sysini['threads']
        # 创建图片下载文件夹
        if not os.path.exists(app.config['IMG_PATH']):
            os.makedirs(app.config['IMG_PATH'])
        # 创建图片截取文件夹
        if not os.path.exists(app.config['CROP_PATH']):
            os.makedirs(app.config['CROP_PATH'])

        logger.info('Recg server start')
Ejemplo n.º 3
0
 def __del__(self):
     del self.ini
     app.config['IS_QUIT'] = True
     logger.info('Recg server quit')
Ejemplo n.º 4
0
 def __del__(self):
     del self.cre
     logger.info('Recg thread %s quit' % self._id)