Test
This commit is contained in:
@@ -11,7 +11,7 @@ base_path = '/app/data/'
|
|||||||
|
|
||||||
print(str(root_api_url))
|
print(str(root_api_url))
|
||||||
|
|
||||||
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')
|
||||||
@@ -59,9 +59,9 @@ try:
|
|||||||
|
|
||||||
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