Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
py-3d-face-reconstruction
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Richard Torenvliet
py-3d-face-reconstruction
Commits
1704ccec
Commit
1704ccec
authored
8 years ago
by
Richard Torenvliet
Browse files
Options
Downloads
Patches
Plain Diff
Update some documentation
parent
20492cc6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/landmarks.py
+12
-0
12 additions, 0 deletions
src/landmarks.py
src/main.py
+1
-1
1 addition, 1 deletion
src/main.py
with
13 additions
and
1 deletion
src/landmarks.py
+
12
−
0
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.
...
...
This diff is collapsed.
Click to expand it.
src/main.py
+
1
−
1
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:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment