Search code examples
pythonopencvimage-processingcomputer-visiongame-automation

Find "noisy" lines in a image with cv2 in python


I have the following image:
raw example image

What is the best way to find the brown lines?

The output image should kind of look like this: example image with makeshift lines drawn

I have tried to just filter out the brown color, but I couldn't find a good color range.


Solution

  • Ended up taking 3 static points from the image, template matching them and manually setting offsets to calculate the lines