I need to extract a red laser line on an object from an image with python. I want to use the shape of the line to determine if the object is flat or tapered, and if it's tapered, on which side. In what way can I do it, can you post some example code?