Skip to content

Commit

Permalink
Updated the project's files
Browse files Browse the repository at this point in the history
  • Loading branch information
YoshiGamerFR authored Sep 16, 2024
1 parent 427011f commit 783a385
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ I took this idea from <a href="https://www.youtube.com/watch?v=3p5PxYeiClU">Onem
- The program then saves the image/s inside the "*output*" folder.
<br><br>
## 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.<br>
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. <br>
__You may contact me and suggest ideas for this project, and I will do my best to recreate them!__<br><br><br>
## 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.
<br><br>
<footer>Check out my <a href="https://yoshigamerfr.github.io/">website!</a></footer>
2 changes: 1 addition & 1 deletion end.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 4 additions & 4 deletions image_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 783a385

Please sign in to comment.