def track(frame, M): global Mat, Kx, Ky, show_x M = Helper.rgb2gray(M) direc = "y" if show_x: direc = "x" Signals.notify_gui( "frame:" + str(frame) + " M:" + str(M.shape) + " dir:" + direc) if show_x: Mat = signal.convolve2d(M, Kx, boundary='symm', mode='same') else: Mat = signal.convolve2d(M, Ky, boundary='symm', mode='same')
def track(frame, M): global Mat, Kx M = Helper.rgb2gray(M) Mat = signal.convolve2d(M, Kx, boundary='symm', mode='same')