How to Solve NameError: name 'convolve' is not defined -- scipy
Solution: Import the 'convolve' module
To Solve the error, add the following line to the top of your code.
from scipy.ndimage.filters import convolve
For more information:
Python scipy convolve