From c67a3c23190287f747989e5dc7725e1657edf8f1 Mon Sep 17 00:00:00 2001 From: Adam Harvey Date: Mon, 7 Jan 2019 18:49:09 +0100 Subject: add age, gender, emotion stubs --- megapixels/app/processors/face_emotion.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'megapixels/app/processors/face_emotion.py') 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 -- cgit v1.2.3-70-g09d2