motionDetect.py 文件源码

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

项目:Image-Processing-and-Steganogrphy 作者: motkeg 项目源码 文件源码
def FrameSmoth(frame):

    ''' In this stage of algorithm we impliment the 'bluring' procces -
        the function clculate the score of each frame of the interval (0.25 s) by execute the gaussian.
        The goal of this proccess is to avoid 'False Positive'  of ths frames hat we recognized as diffrent. ''' 

    gaussian =cv2.getGaussianKernel(5,10)
    gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
    gray=cv2.filter2D(gray,-1,gaussian)
    #gray=signal.convolve2d(gray, gaussian,mode='same')
    gray=normalize(gray)
    return gray
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号