From a52dc6f8edc4e5d00e7c05e34c6c6fe6252ec2bd Mon Sep 17 00:00:00 2001 From: adamhrv Date: Sun, 16 Dec 2018 01:03:07 +0100 Subject: add Dataset model, stub face_*analsysi --- megapixels/app/processors/face_beauty.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 megapixels/app/processors/face_beauty.py (limited to 'megapixels/app/processors/face_beauty.py') diff --git a/megapixels/app/processors/face_beauty.py b/megapixels/app/processors/face_beauty.py new file mode 100644 index 00000000..a1ddd9f8 --- /dev/null +++ b/megapixels/app/processors/face_beauty.py @@ -0,0 +1,27 @@ +import os +from os.path import join +from pathlib import Path +import math + +import cv2 as cv +import numpy as np +import imutils + +from app.utils import im_utils, logger_utils +from app.models.bbox import BBox +from app.settings import app_cfg as cfg +from app.settings import types + + + +class FaceBeauty: + + # Estimates beauty using CNN + + def __init__(self): + self.log = logger_utils.Logger.getLogger() + pass + + + def beauty(self): + return 0.5 \ No newline at end of file -- cgit v1.2.3-70-g09d2