Four-Point-Invoice-Transform-with-OpenCV
I have customized the code of Adrian to find 4 points of document or rectangle dynamically. Here i have added findLargestCountours and convert_object, where convert_object is our driver method which actually doing image processing and getting all 4 point rectangles from image. After getting all 4 point rectangle list findLargestCountours method finding largest countour in list.