# How can i distinguish between two images using opencv python?

**URL:** <https://forum.opencv.org/t/how-can-i-distinguish-between-two-images-using-opencv-python/7837>\
**Category:** Python\
**Created:** [March 7, 2022, 5:39am UTC](https://forum.opencv.org/t/how-can-i-distinguish-between-two-images-using-opencv-python/7837 "2022-03-07T05:39:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![murugan\_bala](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/murugan_bala/32/4670_2.png) [@murugan\_bala](https://forum.opencv.org/u/murugan_bala)\
**Post date:** [March 7, 2022, 5:39am UTC](https://forum.opencv.org/t/how-can-i-distinguish-between-two-images-using-opencv-python/7837/1 "2022-03-07T05:39:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [March 7, 2022, 7:14am UTC](https://forum.opencv.org/t/how-can-i-distinguish-between-two-images-using-opencv-python/7837/2 "2022-03-07T07:14:36Z")

</div>

can you try again with the images, please ?

---

<div class="post-metadata">

**Author:** ![murugan\_bala](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/murugan_bala/32/4670_2.png) [@murugan\_bala](https://forum.opencv.org/u/murugan_bala)\
**Post date:** [March 7, 2022, 7:47am UTC](https://forum.opencv.org/t/how-can-i-distinguish-between-two-images-using-opencv-python/7837/3 "2022-03-07T07:47:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [March 7, 2022, 7:49am UTC](https://forum.opencv.org/t/how-can-i-distinguish-between-two-images-using-opencv-python/7837/4 "2022-03-07T07:49:56Z")

</div>

> [@murugan\_bala](#):
>
> could u pls share ur gmail id

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

---

<div class="post-metadata">

**Author:** ![murugan\_bala](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/murugan_bala/32/4670_2.png) [@murugan\_bala](https://forum.opencv.org/u/murugan_bala)\
**Post date:** [March 7, 2022, 9:09am UTC](https://forum.opencv.org/t/how-can-i-distinguish-between-two-images-using-opencv-python/7837/5 "2022-03-07T09:09:16Z")

</div>

hey i got error while uploading images…

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