face_recognition
This commit is contained in:
parent
6c44c742e8
commit
5bd4b4c100
16 changed files with 9681 additions and 9417 deletions
Binary file not shown.
|
@ -8,9 +8,9 @@ class access_control:
|
|||
_door_state: bool = 0
|
||||
serial_adapter: serial.Serial
|
||||
def __init__(self, serial_port: str):
|
||||
self.serial_adapter = serial.Serial(serial_port,baudrate=115200)
|
||||
Thread(target=self.read_serial).start()
|
||||
Thread(target=self._process_payload).start()
|
||||
self.serial_adapter = serial.Serial(serial_port,baudrate=9600)
|
||||
#Thread(target=self.read_serial).start()
|
||||
#Thread(target=self._process_payload).start()
|
||||
def read_serial(self):
|
||||
while True:
|
||||
if self.serial_adapter.in_waiting:
|
||||
|
|
|
@ -5,6 +5,8 @@ import time
|
|||
stm32 = access_control("COM12")
|
||||
time.sleep(1)
|
||||
stm32.lock_door()
|
||||
#stm32.unlock_door()
|
||||
time.sleep(1)
|
||||
#door_state = False
|
||||
#while True:
|
||||
#print(stm32._in_payloads)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue