      pt_x = min([pnt[0] for pnt in rotated[0]])
      pt_y = min([pnt[1] for pnt in rotated[0]])
      pt_x1 = max([pnt[0] for pnt in rotated[0]])
      pt_y1 = max([pnt[1] for pnt in rotated[0]])
  
      if isinstance(face, DetectedFace):
          face.x = int(pt_x)
          face.y = int(pt_y)
 
</s> remove         face.w = int(pt_x1 - pt_x)
        face.h = int(pt_y1 - pt_y)
 </s> add         face.w = int(width)
        face.h = int(height) </s> remove     elif isinstance(face, dict):
 </s> add     elif isinstance(face, dict) and "x" in face: </s> remove         face["w"] = int(pt_x1 - pt_x)
        face["h"] = int(pt_y1 - pt_y)
 </s> add         face["w"] = int(width)
        face["h"] = int(height) </s> remove         rotated_landmarks = BoundingBox(pt_x, pt_y, pt_x1, pt_y1)
        face = rotated_landmarks
 </s> add         face["left"] = int(pt_x)
        face["top"] = int(pt_y)
        face["right"] = int(pt_x1)
        face["bottom"] = int(pt_y1)
    width = pt_x1 - pt_x
    height = pt_y1 - pt_y
      pt_x = min([pnt[0] for pnt in rotated[0]])
      pt_y = min([pnt[1] for pnt in rotated[0]])
      pt_x1 = max([pnt[0] for pnt in rotated[0]])
      pt_y1 = max([pnt[1] for pnt in rotated[0]])
    width = pt_x1 - pt_x
    height = pt_y1 - pt_y
  
      if isinstance(face, DetectedFace):
          face.x = int(pt_x)
          face.y = int(pt_y)
keep keep keep add keep keep keep keep
 Bugfix: Extract - Remove BoundingBox object and replace with dict 
lib/utils.py