# detecting “deformed” lines

I have a project in which I have to recognize 2 lines in different "position", the lines are orthogonal but can be projected on different surfaces. I'm using opencv.

I'm not asking for code, but only for hints about how can I solve this? I tried houghlines function but it works only for straight surfaces. thanks in advance !