hoshi(intersection(line(l_vert[i][0], l_vert[i][1]),
line(l_hor[j][0], l_hor[j][1])))
lines_r = [[l2ad(l[0], l[1], im.size) for l in l_vert],
hoshi(intersection(line(l_vert[i][0], l_vert[i][1]),
line(l_hor[j][0], l_hor[j][1])))
lines_r = [[l2ad(l[0], l[1], im.size) for l in l_vert],