The python script show the image reconstructed using 200 principal components (out of 512).
Use the package manager pip to install libraries.
pip install opencv-python
pip install numpy
python3 recons.py
Original Image
Result with varying principal components