A contour-based thinning algorithm with post-processing using auto-encoder. (18th April 2023)