def box(self):
        return int(round(self.x)), int(round(self.y)), int(round(self.x+self.w)), int(round(self.y+self.h))
Get this rectangle as a bounding box as expected by many PIL functions.
dataset/ETHPy150Open bolme/pyvision/src/pyvision/types/Rect.py/Rect.box