A work around I have used to get white background instead of black is by using bitwise before and after the rotation.
image = cv2.bitwise_not(image) image = imutils.rotate_bound(image, angle=angle) image = cv2.bitwise_not(image)