79287432

Date: 2024-12-17 10:11:59
Score: 1
Natty:
Report link

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)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Saurav Thakur