import cv2 as cv

if __name__ == '__main__':
    img = cv.imread("Lena.png")

    ksize = (5, 5)
    imgBoxFilter = cv.boxFilter(img, -1, ksize=ksize)

    cv.imshow("BoxFilter", imgBoxFilter)
    key = cv.waitKey(0)

