I'm automatically capturing images of a specific profile, which varies a few millimeter in position and angle. I am looking for a solution which can automatically detect the left and right edge of the longitudinal profile and insert a ruler to the image.
The profile appears bright on a black background in the images.