Text this: Modified canny edge detection technique for identifying endpoints