Graduate

Modify packet processing

......@@ -52,7 +52,7 @@ class Client(tk.Frame):
# Application Function
# cam에서 MTCNN 적용하는 영역
self.detecting_square = (200, 200)
self.detecting_square = (500, 300)
# 영상 위에 사각형 색상 지정
self.rectangle_color = (0, 0, 255)
......@@ -148,7 +148,7 @@ class Client(tk.Frame):
@asyncio.coroutine
def set_rectangle(self):
self.rectangle_color = (255, 0, 0)
yield from asyncio.sleep(1)
yield from asyncio.sleep(3)
self.rectangle_color = (0, 0, 255)
async def wait(self, n):
......@@ -168,7 +168,7 @@ class Client(tk.Frame):
self.logging('출석확인: ' + data['student_id'])
asyncio.ensure_future(self.set_rectangle())
else:
if data['status'] == 'failed':
if data['status'] == 'fail':
send = json.dumps({'action': 'save_image', 'image': image.tolist()})
await websocket.send(send)
elif data['status'] == 'already':
......