Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
py-3d-face-reconstruction
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Richard Torenvliet
py-3d-face-reconstruction
Commits
bf8fac8c
Commit
bf8fac8c
authored
Nov 14, 2016
by
Richard Torenvliet
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://git.kompiler.org:10022/icyrizard/face-reconstruction
parents
f0bb6aa8
cea9fbc1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
src/server.py
src/server.py
+7
-1
No files found.
src/server.py
View file @
bf8fac8c
...
...
@@ -32,6 +32,9 @@ class ImageWebSocketHandler(websocket.WebSocketHandler):
self
.
images
=
glob
(
'{}/*.jpg'
.
format
(
FACE_DB
))
self
.
asf
=
glob
(
'{}/*.asf'
.
format
(
FACE_DB
))
self
.
images
.
sort
()
self
.
asf
.
sort
()
# todo get from settings
model_texture_file
=
'{}/pca_{}_texture_model.npy'
.
format
(
FILES_DIR
,
DATASET
)
...
...
@@ -55,7 +58,7 @@ class ImageWebSocketHandler(websocket.WebSocketHandler):
return
True
def
open
(
self
):
print
(
"WebS
ocket opened"
)
logger
.
info
(
"Webs
ocket opened"
)
def
__return_error
(
self
,
message
):
self
.
write_message
(
json
.
dumps
(
...
...
@@ -123,6 +126,9 @@ class ApiHandler(web.RequestHandler):
def
__init__
(
self
,
*
args
,
**
kwargs
):
self
.
images
=
glob
(
'{}/*.jpg'
.
format
(
FACE_DB
))
self
.
asf_files
=
glob
(
'{}/*.asf'
.
format
(
FACE_DB
))
self
.
images
.
sort
()
self
.
asf_files
.
sort
()
web
.
RequestHandler
.
__init__
(
self
,
*
args
,
**
kwargs
)
def
set_default_headers
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment