Skip to content

Commit 6f939a0

Browse files
committed
added dimensions
1 parent babe927 commit 6f939a0

File tree

1 file changed

+1
-0
lines changed
  • Image_Processing/src/get_perspective

1 file changed

+1
-0
lines changed

Image_Processing/src/get_perspective/script.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def transform(img, arr):
2525
heightB = np.sqrt(((tl[0] - bl[0]) ** 2) + ((tl[1] - bl[1]) ** 2))
2626
h = max(int(heightA), int(heightB))
2727

28+
print("New Image Dimensions: \nWidth = {}\nHeight = {}".format(w,h))
2829
# Create source and destination points
2930
inp_pts = np.float32(arr)
3031
op_pts = np.float32([[0,0],[w-1,0],[w-1,h-1],[0,h-1]])

0 commit comments

Comments
 (0)