test
This commit is contained in:
parent
7285f9465b
commit
0f37b63456
7 changed files with 15 additions and 15 deletions
Binary file not shown.
|
@ -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"
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue