def METHOD_NAME(self, lines):
    proportion = 0.0
    h, w = self.shape
    for line in lines:
        x1, y1, x2, y2 = line
        length = abs(y2 - y1) / h + abs(x2 - x1) / w
        proportion = proportion + length
    return proportion