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
motionDetect.py 文件源码
python
阅读 23
收藏 0
点赞 0
评论 0
评论列表
文章目录