I have a black line and red line. I want to calculate the distance or error value between red pixel points (error line) in the image and the black line (target line) in the most efficient and fastest way. How can I do it? Is there any opencv-python function?
this is the example of the image: