def delib_rec_to_tuple(rec):
    """
    convert dlib rectangle object to standard python tuple
    """
    left = rec.left()
    right = rec.right()
    top = rec.top()
    bottom = rec.bottom()
    return (left,top,right,bottom)