I am using it to tell whether now screenshot is different from last screenshot. Now I use
with open('last_screenshot.bmp','rb+') as f:
org = f.read()
with open('now_screenshot.bmp','rb+') as f:
new = f.read()
if(org==new):
print("The pictures are same")
Is there a faster way to do this?