Showing
1 changed file
with
3 additions
and
3 deletions
... | @@ -52,7 +52,7 @@ class Client(tk.Frame): | ... | @@ -52,7 +52,7 @@ class Client(tk.Frame): |
52 | # Application Function | 52 | # Application Function |
53 | 53 | ||
54 | # cam에서 MTCNN 적용하는 영역 | 54 | # cam에서 MTCNN 적용하는 영역 |
55 | - self.detecting_square = (200, 200) | 55 | + self.detecting_square = (500, 300) |
56 | 56 | ||
57 | # 영상 위에 사각형 색상 지정 | 57 | # 영상 위에 사각형 색상 지정 |
58 | self.rectangle_color = (0, 0, 255) | 58 | self.rectangle_color = (0, 0, 255) |
... | @@ -148,7 +148,7 @@ class Client(tk.Frame): | ... | @@ -148,7 +148,7 @@ class Client(tk.Frame): |
148 | @asyncio.coroutine | 148 | @asyncio.coroutine |
149 | def set_rectangle(self): | 149 | def set_rectangle(self): |
150 | self.rectangle_color = (255, 0, 0) | 150 | self.rectangle_color = (255, 0, 0) |
151 | - yield from asyncio.sleep(1) | 151 | + yield from asyncio.sleep(3) |
152 | self.rectangle_color = (0, 0, 255) | 152 | self.rectangle_color = (0, 0, 255) |
153 | 153 | ||
154 | async def wait(self, n): | 154 | async def wait(self, n): |
... | @@ -168,7 +168,7 @@ class Client(tk.Frame): | ... | @@ -168,7 +168,7 @@ class Client(tk.Frame): |
168 | self.logging('출석확인: ' + data['student_id']) | 168 | self.logging('출석확인: ' + data['student_id']) |
169 | asyncio.ensure_future(self.set_rectangle()) | 169 | asyncio.ensure_future(self.set_rectangle()) |
170 | else: | 170 | else: |
171 | - if data['status'] == 'failed': | 171 | + if data['status'] == 'fail': |
172 | send = json.dumps({'action': 'save_image', 'image': image.tolist()}) | 172 | send = json.dumps({'action': 'save_image', 'image': image.tolist()}) |
173 | await websocket.send(send) | 173 | await websocket.send(send) |
174 | elif data['status'] == 'already': | 174 | elif data['status'] == 'already': | ... | ... |
-
Please register or login to post a comment