Skip to content

Commit 3241870

Browse files
committed
fix pre-commit errors
1 parent a3aeb1b commit 3241870

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

digital_image_processing/rotation/rotation.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
from pathlib import Path
2+
13
import cv2
24
import numpy as np
35
from matplotlib import pyplot as plt
4-
from pathlib import Path
56

67

78
def get_rotation(
@@ -22,7 +23,9 @@ def get_rotation(
2223

2324
if __name__ == "__main__":
2425
# read original image
25-
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+
)
2629
# turn image in gray scale value
2730
gray_img = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
2831
# get image shape

0 commit comments

Comments
 (0)