imgcomparison.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:slide-transition-detector 作者: brene 项目源码 文件源码
def are_similar(self, first, second):
        res = cv2.absdiff(first, second)
        hist = cv2.calcHist([res], [0], None, [256], [0, 256])
        return 1 - np.sum(hist[15::]) / np.sum(hist)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号