Performing operations on the video frame by frame using edge detection, smoothening and bitwise operations