This commit is contained in:
Siwat Sirichai 2023-09-28 15:17:04 +07:00
parent 7285f9465b
commit 0f37b63456
7 changed files with 15 additions and 15 deletions

View file

@ -5,8 +5,8 @@ import requests
import json
#api_server = "http://localhost:5000"
api_server = "http://192.168.0.239:5000"
#api_server = "https://racist.siwatsystem.com"
#api_server = "http://192.168.0.239:5000"
api_server = "https://racist.siwatsystem.com"
def analyze_face(img):
endpoint = api_server +"/process_image"

View file

@ -28,7 +28,7 @@ while True:
time.sleep(1)
#Try to identify face
faces = fp.identify_face(img, target_condidence=0.4)
faces = fp.identify_face(img, target_condidence=0.6)
if(len(faces)>0):
print("Door Unlocked!, Locking in 5 seconds")
stm32.unlock_door()