Files
Ivolution/ivolution/Face.py
Julien Lengrand-Lambert 9e95642c68 Loads of changes in the repo structure.
Data are now hosted as a subfolder of the code, and all the source files are grouped into the same package.
Bin folder has been removed, scripts are now directly placed in the root location.

Main package has been renamed to ivolution, this is a first step towards github renaming and full renaming of the project
2012-07-31 18:28:33 +02:00

37 lines
1.3 KiB
Python

"""
.. module:: Face
:platform: Unix, Windows
:synopsis: Class defining a Face in the sense of the FaceMovie
.. moduleauthor:: Julien Lengrand-Lambert <jlengrand@gmail.com>
"""
class Face(object):
"""
Face-like blob used in the Face Detection algorithm.
.. note::
This class is the very root of our detection part for now; as Eye is not yet used.
We use Faces to store data while processing images
"""
def __init__(self):
"""A facemovie redifinition of the human face.
:param x_pos: x position of the face in the image (in pixels)
:type x_pos: int
:param y_pos: y position of the face in the image (in pixels)
:type y_pos: int
:param x_size: x size of the blob (in pixels)
:type x_size: int
:param y_size: y size of the blob (in pixels)
:type y_size: int
:param conf: confidence indice, indicating the probability of the target to actually be an face
:type conf: float
"""
x_center = None # x position of the face in the image
y_center = None # y position of the face in the image
x_size = None # x size of the blob in pixel
y_size = None # y size of the blob in pixel
conf = None # confidence indice, indicating the probability of the target to actually be an eye