diff options
| author | Adam Harvey <adam@ahprojects.com> | 2019-01-07 18:49:09 +0100 |
|---|---|---|
| committer | Adam Harvey <adam@ahprojects.com> | 2019-01-07 18:49:09 +0100 |
| commit | c67a3c23190287f747989e5dc7725e1657edf8f1 (patch) | |
| tree | 5ff47ab72e6fb146f66730db06fc3b91265dd769 /megapixels/app/processors/face_emotion.py | |
| parent | 55b9734d131a197166156566d1b999a8bb59169b (diff) | |
add age, gender, emotion stubs
Diffstat (limited to 'megapixels/app/processors/face_emotion.py')
| -rw-r--r-- | megapixels/app/processors/face_emotion.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/megapixels/app/processors/face_emotion.py b/megapixels/app/processors/face_emotion.py index c45da9ba..a04d7afd 100644 --- a/megapixels/app/processors/face_emotion.py +++ b/megapixels/app/processors/face_emotion.py @@ -16,13 +16,13 @@ from app.settings import types class FaceEmotion: - # Estimates face emotion + # Estimates face age - def __init__(self): + def __init__(self, gpu=0): self.log = logger_utils.Logger.getLogger() pass - def emotion(self): - # use enum typed emotions - return {'emotion': types.Emotion.NEUTRAL, 'confidence': 0.5}
\ No newline at end of file + def emotion(self, im, bbox_dim): + self.log.warn('not yet implemented') + return 0.0
\ No newline at end of file |
