We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3aeb1b commit 3241870Copy full SHA for 3241870
digital_image_processing/rotation/rotation.py
@@ -1,7 +1,8 @@
1
+from pathlib import Path
2
+
3
import cv2
4
import numpy as np
5
from matplotlib import pyplot as plt
-from pathlib import Path
6
7
8
def get_rotation(
@@ -22,7 +23,9 @@ def get_rotation(
22
23
24
if __name__ == "__main__":
25
# read original image
- image = cv2.imread(str(Path(__file__).resolve().parent.parent / "image_data" / "lena.jpg"))
26
+ image = cv2.imread(
27
+ str(Path(__file__).resolve().parent.parent / "image_data" / "lena.jpg")
28
+ )
29
# turn image in gray scale value
30
gray_img = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
31
# get image shape
0 commit comments