hassan526 commited on
Commit
072bd19
·
verified ·
1 Parent(s): a7168ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -90,10 +90,10 @@ def activate_id_ocr_sdk():
90
  return ret
91
 
92
  def activate_id_live_sdk():
93
- return -1
94
  id_live_key = os.environ.get("ID_LIVE_LICENSE_KEY")
 
95
  id_live_dict_path = os.path.join(root_path, "id_live/engine/model")
96
-
97
  ret = -1
98
  if id_live_key is None:
99
  print_warning("ID LIVE license key not found!")
@@ -101,8 +101,10 @@ def activate_id_live_sdk():
101
  else:
102
  ret = id_live_header.set_activation(id_live_key.encode('utf-8'))
103
 
 
104
  if ret == 0:
105
  ret = id_live_header.init_sdk(id_live_dict_path.encode('utf-8'))
 
106
 
107
  if ret == 0:
108
  print_log("Successfully init ID LIVE SDK!")
 
90
  return ret
91
 
92
  def activate_id_live_sdk():
 
93
  id_live_key = os.environ.get("ID_LIVE_LICENSE_KEY")
94
+ print(id_live_key)
95
  id_live_dict_path = os.path.join(root_path, "id_live/engine/model")
96
+ print(id_live_dict_path)
97
  ret = -1
98
  if id_live_key is None:
99
  print_warning("ID LIVE license key not found!")
 
101
  else:
102
  ret = id_live_header.set_activation(id_live_key.encode('utf-8'))
103
 
104
+ print(f"activation result {ret}")
105
  if ret == 0:
106
  ret = id_live_header.init_sdk(id_live_dict_path.encode('utf-8'))
107
+ print(f"init result {ret}")
108
 
109
  if ret == 0:
110
  print_log("Successfully init ID LIVE SDK!")