How to compare two images/screenshot in Selenium?

In this video I have shown how to compare two screenshots(expected vs actual images) in selenium using Ashot() api. https://www.youtube.com/watch?v=oF4RoSsN0FE&t=2s https://youtu.be/D17eYz8FVvg https://youtu.be/4-Whn5BBV_c https://youtu.be/aWgx76vA0qA https://youtu.be/D17eYz8FVvg https://youtu.be/FoEexNif2As https://youtu.be/jPrphm-8njo?si=BY0tuPtbcgFEDpO-