finding edge in tilted image with Canny
问题 I'm trying to find the tilt angle in a series of images which look like the created example data below. There should be a clear edge which is visible by eye. However I'm struggling in extracting the edges so far. Is Canny the right way of finding the edge here or is there a better way of finding the edge? import cv2 as cv import numpy as np import matplotlib.pyplot as plt from scipy.ndimage.filters import gaussian_filter # create data xvals = np.arange(0,2000) yvals = 10000 * np.exp((xvals -