This is to see how a kernel will convolve over an image and what will be its output after convolution
- Horizontal kernel will extract all horizontal edges
- Vertical kernel will extract all vertical edges
- Edge kernel will extract all edges
- Horizontal Kernel
np.array([
[-1, -1, -1],
[ 0, 0, 0],
[ 1, 1, 1],
])- Vertical Kernel
np.array([
[-1, 0, 1],
[-1, 0, 1],
[-1, 0, 1],
])- Edge Kernel
np.array([
[-1, -1, -1],
[-1, 8, -1],
[-1, -1, -1],
])I have created UI for this demo using Streamlit
pip install streamlitstreamlit run app.py



