Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.rppg.base
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
bob
bob.rppg.base
Commits
8e0ce2fc
Commit
8e0ce2fc
authored
6 years ago
by
Guillaume HEUSCH
Browse files
Options
Downloads
Patches
Plain Diff
[cvpr14] fixed docstrings in extract_utils
parent
6a4cb9f3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/rppg/cvpr14/extract_utils.py
+8
-8
8 additions, 8 deletions
bob/rppg/cvpr14/extract_utils.py
with
8 additions
and
8 deletions
bob/rppg/cvpr14/extract_utils.py
+
8
−
8
View file @
8e0ce2fc
...
...
@@ -41,10 +41,10 @@ def kp66_to_mask(image, keypoints, indent=10, plot=False):
Returns
-------
mask:
2d
numpy
boolean
array
mask: numpy
.nd
array
A boolean array of the size of the original image, where the region
corresponding to the mask is True.
mask_points: list of
tuples, 9x2
mask_points:
:obj:`
list
`
of
:obj:`tuple`
The points corresponding to vertices of the mask.
"""
...
...
@@ -110,12 +110,12 @@ def get_mask(image, mask_points):
----------
image: numpy.ndarray
The current frame.
mask_points: list of
tuples, 9x2
mask_points:
:obj:`
list
`
of
:obj:`tuple`
The points corresponding to vertices of the mask.
Returns
-------
mask:
2d
numpy
boolean
array
mask: numpy
.nd
array
A boolean array of the size of the original image, where the region
corresponding to the mask is True.
...
...
@@ -147,7 +147,7 @@ def get_good_features_to_track(face, npoints, quality=0.01, min_distance=10, pl
The cropped face image
npoints: int
The maximum number of strong corners you want to detect
quality: float
quality:
:obj:`
float
`
The minimum relative quality of the detected corners.
Note that increasing this value decreases the number of
detected corners. Defaluts to 0.01.
...
...
@@ -272,7 +272,7 @@ def compute_average_colors_mask(image, mask, plot=False):
----------
image: numpy.ndarray
The image containing the face.
mask:
2d
numpy
boolean
array
mask: numpy
.nd
array
A boolean array of the size of the original image, where the region
corresponding to the mask is True.
plot: bool
...
...
@@ -280,7 +280,7 @@ def compute_average_colors_mask(image, mask, plot=False):
Returns
-------
color: float
color:
:obj:`
float
`
The average green color inside the mask ROI.
"""
...
...
@@ -307,7 +307,7 @@ def compute_average_colors_wholeface(image, plot=False):
Returns
-------
color: float
color:
:obj:`
float
`
The average green color inside the face
"""
...
...
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