File size: 516 Bytes
c88be80
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
from ctypes import *

class FaceBox(Structure):
    _fields_ = [("x1", c_int32), ("y1", c_int32), ("x2", c_int32), ("y2", c_int32), 
        ("yaw", c_float), ("roll", c_float), ("pitch", c_float), 
        ("face_quality", c_float), ("face_luminance", c_float), ("eye_dist", c_float),
        ("left_eye_closed", c_float), ("right_eye_closed", c_float), 
        ("face_occlusion", c_float), ("mouth_opened", c_float), 
        ("landmark_68", c_float * 136),
        ("templates", c_ubyte * 2048)        
        ]