i want to detect all corner and start , end point on line. i can detect start and end point but curve can't detect. this is my code
from scipy.ndimage import generic_filter
def lineEnds(P):
return 255 * ((P[4]==255) and np.sum(P)==510)
image = cv2.imread("./dataset/test.jpg" , cv2.COLOR_RGB2GRAY)
result = generic_filter(image , lineEnds, (3, 3))


