Fix Image Processing module wrapper

This commit is contained in:
yoshiko2
2022-02-26 05:06:47 +08:00
parent 602d89cfe3
commit 02580c70a9
3 changed files with 9 additions and 7 deletions

View File

@@ -86,7 +86,8 @@ def face_center(filename, model):
return mod.face_center(filename, model)
except Exception as e:
print('[-]Model found face ' + filename)
logging.error(e)
if config.getInstance().debug() == 1:
logging.error(e)
return (0, 0)
if __name__ == '__main__':