Deep learning based distortion restoration and defect segmentation from linear scanning camera images. (1st May 2023)