From 783a3852ac932fdcb7cc6b51eeec1809f246e88c Mon Sep 17 00:00:00 2001 From: YoshiGamerFR <139714768+YoshiGamerFR@users.noreply.github.com> Date: Mon, 16 Sep 2024 09:30:50 +0200 Subject: [PATCH] Updated the project's files --- README.md | 6 +++--- end.py | 2 +- image_analyzer.py | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 0ff5047..2c2c9ab 100644 --- a/README.md +++ b/README.md @@ -12,13 +12,13 @@ I took this idea from Onem - The program then saves the image/s inside the "*output*" folder.

## Disclaimer: -Please note that this program might be slow depending on your computer's hardware, as it is made in Python. I will try to improve this program with more quality of life functions, like asking the user what color the backdrop of the image is.
+Please note that this program might be slow depending on your computer's hardware, as it is made in Python. I will try to improve this program with more quality of life functions, like asking the user what color the backdrop of the image is.
__You may contact me and suggest ideas for this project, and I will do my best to recreate them!__


## If you downloaded the source code: - If you are using the version v1.0.0 of the program: - Please create a folder named "output". - - If you want to use the "**folder**" mode, please create a directory named "*images*" and place the images you want to be analyzed in it. + - If you want to use the "*folder*" mode, please create a directory named "**images**" and place the images you want to be analyzed in it. - If you are using a newer version of the progam (v1.0.1 and above): - - If you want to use the "**folder**" mode, please create a directory named "*images*" and place the images you want to be analyzed in it. + - If you want to use the "*folder*" mode, please create a directory named "**images**" and place the images you want to be analyzed in it.

diff --git a/end.py b/end.py index fc23f9f..968e7b0 100644 --- a/end.py +++ b/end.py @@ -4,6 +4,6 @@ def end_script(): """ Waits for the user to press any key in order to end the script. """ - print("\033[1;32m Press a key to exit...\033[m") + print("\033[1;32mPress a key to exit...\033[m") while not keyboard.read_key(): pass \ No newline at end of file diff --git a/image_analyzer.py b/image_analyzer.py index 8949527..79270d6 100644 --- a/image_analyzer.py +++ b/image_analyzer.py @@ -82,14 +82,14 @@ def image_analyzer(mode,file,backgroundColor="white"): if not "output" in os.listdir(): os.mkdir("./output",0o755) print("Directory \"output\" not found, created \"output\" directory.") -mode = input("Do you want the program to analyze a bunch of images inside of a folder or do you want it to analyze a single image?\n(\"file\" or \"folder\")") +mode = input("\nDo you want the program to analyze a bunch of images inside of a folder or do you want it to analyze a single image?\n(\"file\" or \"folder\")\n") if mode == "file": - image = input("Please type the name of the image to analyze WITH IT'S EXTENSION!\n") -color = input("What color do you want the background to be?\n(\"black\" or \"white\")\n") + image = input("\nPlease type the name of the image to analyze WITH IT'S EXTENSION!\n") +color = input("\nWhat color do you want the background to be?\n(\"black\" or \"white\")\n") if color == "": color = "white" if mode == "file": image_analyzer(mode,image,color) else: image_analyzer(mode,None,color) -end_script() +end_script() \ No newline at end of file