summaryrefslogtreecommitdiff
path: root/megapixels/app/processors/face_gender.py
blob: ea64b8288b0ed72ae408e8f25888d00b7fb977a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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 FaceGender:

  # Estimates face age

  def __init__(self, gpu=0):
    self.log = logger_utils.Logger.getLogger()
    pass


  def gender(self, im, bbox_dim):
    self.log.warn('not yet implemented')
    return 0.0