Finding Homography Matrix Using Lines
I think you can't do Homography on lines.

I don't remember the equations but I don't think lines in one image are kept as lines in the other image.

What you can do is treat a line as set of points and have Homography estimation using many point samples.