是否有更好的方法来判断两张图片是否不同?

问题描述 投票:0回答:1

我用它来判断现在的屏幕截图是否不同于上一个屏幕截图。现在我用

    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")

是否有更快的方法?预先感谢。

python python-3.x opencv python-imaging-library
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.