@@ -116,6 +116,7 @@ def rot90_boxes_in_image(boxes, image_width, image_height, n=1):
References:
np.rot90
+ cv2.rotate
tf.image.rot90
"""
n = n % 4
@@ -44,6 +44,7 @@ def rot90_image(image, n=1, copy=True):
if copy:
@@ -55,7 +56,7 @@ def rot90_image(image, n=1, copy=True):
if n == 0:
- return image
+ return image[:]
elif n == 1:
image = np.transpose(image, transpose_axes)
image = np.flipud(image)