Opencv implements simple threshold segmentation to extract line data