main_2.8-12.py 文件源码

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

项目:motorized_zoom_lens 作者: Kurokesu 项目源码 文件源码
def get_blur(frame, scale):
    frame = cv2.resize(frame, None, fx=scale, fy=scale, interpolation=cv2.INTER_CUBIC)
    gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
    fm = cv2.Laplacian(gray, cv2.CV_64F).var()
    return fm
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号