from ctypes import * class Face(Structure): _fields_ = [("x", c_int32), ("y", c_int32), ("width", c_int32), ("height", c_int32), ("yaw", c_float), ("roll", c_float), ("pitch", c_float), ("age", c_int32), ("gender", c_int32), ("neutral", c_float), ("happy", c_float), ("angry", c_float), ("surprised", c_float), ("disgusted", c_float), ("sad", c_float), ("scared", c_float), ("masked", c_int32), ("left_eye_opened", c_int32), ("right_eye_opened", c_int32), ("featSize", c_int32), ("featData", c_ubyte * 512) ]