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-17 16:46:03 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
769b7d9e82a459db97615ddfabbca7eb10e2c261
769b7d9e
1 parent
702df658
Make client GUI
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
client/client.py
register/register.py
client/client.py
View file @
769b7d9
...
...
@@ -144,6 +144,7 @@ class Register(tk.Frame):
self
.
log
.
insert
(
tkinter
.
CURRENT
,
'
\n
'
)
else
:
self
.
log
.
insert
(
tkinter
.
CURRENT
,
'verification failed:'
+
data
[
'status'
])
self
.
log
.
insert
(
tkinter
.
CURRENT
,
'
\n
'
)
if
data
[
'status'
]
==
'failed'
:
send
=
json
.
dumps
({
'action'
:
'save_image'
,
'image'
:
image
.
tolist
()})
except
Exception
as
e
:
...
...
register/register.py
View file @
769b7d9
...
...
@@ -195,7 +195,7 @@ class Register(tk.Frame):
async
with
websockets
.
connect
(
self
.
uri
)
as
websocket
:
for
face
,
image
in
zip
(
self
.
face_list
,
self
.
image_list
):
#type: np.float32
send
=
json
.
dumps
({
'action'
:
'register'
,
'student_id'
:
self
.
studentID
,
'student_name'
:
self
.
studentName
,
'MTCNN'
:
face
.
tolist
()})
send
=
json
.
dumps
({
'action'
:
'register'
,
'student_id'
:
self
.
studentID
.
get
(),
'student_name'
:
self
.
studentName
.
get
()
,
'MTCNN'
:
face
.
tolist
()})
await
websocket
.
send
(
send
)
recv
=
await
websocket
.
recv
()
data
=
json
.
loads
(
recv
)
...
...
Please
register
or
login
to post a comment