summaryrefslogtreecommitdiff
path: root/megapixels/app/processors/face_emotion.py
diff options
context:
space:
mode:
Diffstat (limited to 'megapixels/app/processors/face_emotion.py')
-rw-r--r--megapixels/app/processors/face_emotion.py10
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