The following libraries were used in python3 to run the algorithm in question: 1. os 2. pathlib 3. Image 4. math 5. numpy 6. tqdm 7. imageio 8. time