a python program that finds the darkest pixel in an image and puts an "X" on top
my steps:
- download homebrew
- download python conda
- check that PIL (python image library) is downloaded in the correct version
- choose an image
- in darkpixels directory
- step1.py
- loaded in image to do more cool stuff with!
- step2.py
- extract all pixel values from the image and store in a list
- print out the for loop for formatting checking
- step3.py
- initialize variables and for loops
- overall strategy for step 3
- for loop through the list to find and store the darkest pixel
- replace the color of the darkest pixel with red
- place the red X around the darkest pixel
- in the two dimensional array that the pixels are stored in, place red at the pixels around it to form an X
some websites i got help from:
- https://code.tutsplus.com/tutorials/image-processing-using-python--cms-25772?fbclid=IwAR37XgqfY6xdMTNvbANny-JpNbKkhTR-okyZfaOyr9ZLN2dzjPRfgu4PSC8
- https://snakify.org/en/lessons/two_dimensional_lists_arrays/?fbclid=IwAR067q-IIZ48JLFvBWerOU9rF3fUC55nlem5ZNO5ofRqM1b8gD-kCIB-290
- https://www.hackerearth.com/practice/notes/extracting-pixel-values-of-an-image-in-python/
- https://developers.google.com/edu/python/lists
- https://www.programiz.com/python-programming/list