How to detect scaled ID card rectangle
I have application which will read the ID crad , the nature of the image is that the card is scaled and shifted location now how I get the card rectangle and scale it to the fixed defined rectangle , a sample of card images attached
the input image is scaled by 130%
The required image , the card rectangle and scaled to the original size