Computervisionminiproject, Opencv, Image Processing.
cv2.cvtColor(image_original, cv2.COLOR_BGR2GRAY) # 3x3 Y-direction kernel sobel_y = np.array([[-1, -2, -1], [0, 0, 0], [1, 2, 1]]) # 3 X 3 X-direction kernel sobel_x = np.array([[-1, 0, 1], [-2, 0, 2], [-1, 0, 1]]) # Filter the image using filter2D, which has inputs: (grayscale image, bit-depth,