How can i distinguish between two images using opencv python?

Hey i need a solution to distingush bewtween two images (here i attached both images) . one image is normal passport size photos, and another one is same passport size photo but its not proper photo, some more white area is there. i need to difference both image while i uploading. for example its correct image or its has more white area image or scanned image. i tried some more method but i did not distingush. thanks in advance

can you try again with the images, please ?

could u pls share ur gmail id …i will send sample images…i am uploading here but it failed

unfortunately, that’s not how it works here.
try to edit your question, there’s an upload button there

hey i got error while uploading images…

Error: Sorry, new users can only put one embedded media item in a post.