Fix
This commit is contained in:
@@ -10,8 +10,9 @@ root_api_url = 'http://{}/local'.format(sever)
|
|||||||
base_path = '/app/data/'
|
base_path = '/app/data/'
|
||||||
|
|
||||||
print("API_ROOT: " + str(root_api_url))
|
print("API_ROOT: " + str(root_api_url))
|
||||||
|
time.sleep(900)
|
||||||
|
|
||||||
#try:
|
try:
|
||||||
while True:
|
while True:
|
||||||
r = requests.get('{}/anonymize'.format(root_api_url))
|
r = requests.get('{}/anonymize'.format(root_api_url))
|
||||||
face_cascade = cv2.CascadeClassifier(cv2.data.haarcascades + 'haarcascade_frontalface_default.xml')
|
face_cascade = cv2.CascadeClassifier(cv2.data.haarcascades + 'haarcascade_frontalface_default.xml')
|
||||||
@@ -60,9 +61,9 @@ while True:
|
|||||||
|
|
||||||
time.sleep(900)
|
time.sleep(900)
|
||||||
|
|
||||||
# except Exception as e:
|
except Exception as e:
|
||||||
# print("An exception occurred")
|
print("An exception occurred")
|
||||||
# print(str(e))
|
print(str(e))
|
||||||
|
|
||||||
# data = {"trace": str(e)}
|
data = {"trace": str(e)}
|
||||||
# response = requests.post('{}/log'.format(root_api_url), json=data)
|
response = requests.post('{}/log'.format(root_api_url), json=data)
|
||||||
Reference in New Issue
Block a user