Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
KHY_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Graduate
2020-06-19 12:18:46 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b8ef73865d3a6b6b216d3f7ba20e0b0636e883e5
b8ef7386
1 parent
96a8054e
Modify packet processing
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
client/client.py
client/client.py
View file @
b8ef738
...
...
@@ -52,7 +52,7 @@ class Client(tk.Frame):
# Application Function
# cam에서 MTCNN 적용하는 영역
self
.
detecting_square
=
(
200
,
2
00
)
self
.
detecting_square
=
(
500
,
3
00
)
# 영상 위에 사각형 색상 지정
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'
]
==
'fail
ed
'
:
if
data
[
'status'
]
==
'fail'
:
send
=
json
.
dumps
({
'action'
:
'save_image'
,
'image'
:
image
.
tolist
()})
await
websocket
.
send
(
send
)
elif
data
[
'status'
]
==
'already'
:
...
...
Please
register
or
login
to post a comment