def takePicture(personGroupId, delay, type='Identify', size='small'): sysstr = platform.system() print('os=', sysstr, platform.release()) if ClassUtils.isLinux(): return takePicture_CSI(personGroupId, delay, size) else: return takePicture_opencv(personGroupId, delay, type)
def __init__(self, message): self.message = message text = 'API KEY 已經失效,請到 config 設定有效的 API KEY。' print(text) if ClassUtils.isLinux(): print(text) else: # import ClassMessageBox # ClassMessageBox.MessageGUI(message, text) print(text) ClassCV.cv_ImageText('「驗證失敗」', text)