mirror of
https://github.com/jlengrand/Ivolution.git
synced 2026-03-10 08:21:18 +00:00
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
This commit is contained in:
37
ivolution/Face.py
Normal file
37
ivolution/Face.py
Normal file
@@ -0,0 +1,37 @@
|
||||
"""
|
||||
.. 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
|
||||
Reference in New Issue
Block a user