# Is it possible to recognize a face with only with eyes?

**URL:** <https://forum.opencv.org/t/is-it-possible-to-recognize-a-face-with-only-with-eyes/4513>\
**Category:** Uncategorized\
**Tags:** cascadeclassifier\
**Created:** [July 29, 2021, 6:51am UTC](https://forum.opencv.org/t/is-it-possible-to-recognize-a-face-with-only-with-eyes/4513 "2021-07-29T06:51:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akshay\_Hebbar](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/akshay_hebbar/32/2269_2.png) [@Akshay\_Hebbar](https://forum.opencv.org/u/Akshay_Hebbar)\
**Post date:** [July 29, 2021, 6:51am UTC](https://forum.opencv.org/t/is-it-possible-to-recognize-a-face-with-only-with-eyes/4513/1 "2021-07-29T06:51:41Z")

</div>

Is there any way to recognize a face only with an eyes other than Haarcascade\_eyes.XML model? I tried with this but it failed to recognize.

---

<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:** [July 29, 2021, 1:38pm UTC](https://forum.opencv.org/t/is-it-possible-to-recognize-a-face-with-only-with-eyes/4513/2 "2021-07-29T13:38:22Z")

</div>

you probably meant _detection_ (face or not) not _recognition_ (who is it), right ?

do you have an example image ?

---

<div class="post-metadata">

**Author:** ![Akshay\_Hebbar](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/akshay_hebbar/32/2269_2.png) [@Akshay\_Hebbar](https://forum.opencv.org/u/Akshay_Hebbar)\
**Post date:** [July 29, 2021, 2:08pm UTC](https://forum.opencv.org/t/is-it-possible-to-recognize-a-face-with-only-with-eyes/4513/3 "2021-07-29T14:08:25Z")

</div>

Well I want to recognize a person when he is on facemask .So when the person is on facemask only feature which I get is his eyes so I tried with haarcascade-eye.XML but it fail to recognize .  
for e.g. I want to recognize Barak Obama I have collected dataset of him then I use haarcascade\_eye.xml model

---

<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:** [July 30, 2021, 7:18am UTC](https://forum.opencv.org/t/is-it-possible-to-recognize-a-face-with-only-with-eyes/4513/4 "2021-07-30T07:18:57Z")

</div>

> [@Akshay\_Hebbar](#):
>
> but it fail to recognize .

that is the expected result. you cant use cascades for recognition  
(there are dnn’s for that task)

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [July 30, 2021, 4:37pm UTC](https://forum.opencv.org/t/is-it-possible-to-recognize-a-face-with-only-with-eyes/4513/5 "2021-07-30T16:37:46Z")

</div>

I still think the language barrier is an issue here. again:

- classification: _is it_ a face?
- detection: _where_ is a face?
- recognition: is this the _same_ face as another?

you need to be precise with your words.
