Abstract: This project provides a concise Python script (SVD.py) demonstrating how to load an image using the Pillow library, convert it to a grayscale image, and then further convert it into a NumPy array for processing. Finally, the processed grayscale image is displayed using the Matplotlib library.
This script defines a load_image function that opens an image file from a specified path, uniformly converts it to grayscale mode, and then returns the image data as a NumPy array. The script then prints the shape of the image matrix and displays the grayscale image using Matplotlib.
Appendix: love.py uses Python's classic Turtle graphics to draw a heart, for entertainment or for that special someone.