I would like to detect a curve in a grid. Example (hand-drawn):
I would like to detect the intersects of the curve with the vertical gridlines marked with the "x" symbols. I already managed to get a decent solution when the curve and the grid have different colors (purely based on color separation and an explicit declaration of the horizontal coordinates to measure at).
What I am struggling with is doing the same when grid and curve have the same color (and mostly same color intensity/thickness of lines).
What methods could I look into to solve this? Is there a proven approach for this type of problem?
NB: So far I have worked with OpenCV and Python.