Linear Structure Recognition based on Image Vectorization