From 45bc888c25baead483f7dc4b8b0c98b6f1eafc82 Mon Sep 17 00:00:00 2001 From: Deokk Date: Mon, 30 Nov 2020 19:46:19 +0900 Subject: [PATCH] Enhance rotateImage.py --- .idea/inspectionProfiles/Project_Default.xml | 17 +++++++++++++++++ .idea/misc.xml | 2 +- rotateImage.py | 5 +++-- 3 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 .idea/inspectionProfiles/Project_Default.xml diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 00000000..0f96ae18 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,17 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 1e60df59..54af1839 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,4 @@ - + \ No newline at end of file diff --git a/rotateImage.py b/rotateImage.py index 96ed8b30..0fe2637a 100644 --- a/rotateImage.py +++ b/rotateImage.py @@ -1,4 +1,5 @@ import cv2 +import os # read image as grey scale @@ -37,5 +38,5 @@ def rotateFunction(img): if __name__ == '__main__': - image = "C:\\Users\\KSHITIJ\\PycharmProjects\\rotateImage\\virat.jpg" - rotateFunction(image) \ No newline at end of file + image = os.getcwd() + "rotateImage\\virat.jpg" + rotateFunction(image)