The convolution operation is one of the fundamental building blocks of a convolutional neural network, The convolution operation gives you a convenient way to specify how to find these vertical edges in an image.
In this video, I have explained vertical edge detection using filters.