How Can I Find New Coordinates Of Boundary Box Of Rotated Image To Modify Its Xml File For Tensorflow Data Augmentation?
I'm trying to make more dataset to train my model in Tensorflow for data augmantaion. I added the labels of boundary boxes to original image. I want to rotate image 45 degree and m
Solution 1:
I cannot add a comment in the post above, so sorry for the post. All you need is print after rotation values from corners
img = cv2.imread("test.jpg")
rotated, corners = rotateImage(img, 30)
print(corners)
and if you want a specific value just use
print(corners[0])
print(corners[1])
print(corners[2])
print(corners[3])
Post a Comment for "How Can I Find New Coordinates Of Boundary Box Of Rotated Image To Modify Its Xml File For Tensorflow Data Augmentation?"