Part 1 is done by capturing image of an supermarket receipt.
In part 2 borders is selected manually by mouse clicks then perspective transform is applied.
Part 3 is done using MSER algorithms. Due to the large number of regions I have filtered and merged some of them.
Part 4 is done by using EasyOCR.