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
1704ccec
Commit
1704ccec
authored
Sep 14, 2016
by
Richard Torenvliet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update some documentation
parent
20492cc6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
src/landmarks.py
src/landmarks.py
+12
-0
src/main.py
src/main.py
+1
-1
No files found.
src/landmarks.py
View file @
1704ccec
...
...
@@ -31,11 +31,23 @@ def test_detect(image):
class
Detector
():
"""
Use dlib library to detect landmarks in a given image
"""
def
__init__
(
self
):
self
.
detector
=
dlib
.
get_frontal_face_detector
()
self
.
predictor
=
dlib
.
shape_predictor
(
LANDMARK_DETECTOR_PATH
)
def
detect_faces
(
self
,
image
):
"""
Detect faces in an image.
Args:
image: np.array
Returns:
array of detection arrays.
"""
# The 1 in the second argument indicates that we should upsample the
# image 1 time. This will make everything bigger and allow us to
# detect more faces.
...
...
src/main.py
View file @
1704ccec
...
...
@@ -17,7 +17,7 @@ from utility import import_dataset_module
def
save_pca_model_texture
(
args
):
"""
s
ave the U, s, Vt and mean of all the asf datafiles given by the asf
S
ave the U, s, Vt and mean of all the asf datafiles given by the asf
files.
It is saved in the following way:
...
...
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