Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7577837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:17:22+00:00 2026-05-30T17:17:22+00:00

When detecting eyes using HaarDetectObject() function, we get the results (detectedObjects) like this: [((110,

  • 0

When detecting eyes using HaarDetectObject() function, we get the results (detectedObjects) like this:

[((110, 47, 44, 44), 11), ((27, 45, 54, 54), 31)] 
[((114, 49, 40, 40), 10), ((28, 50, 47, 47), 17)] 
[((31, 50, 47, 47), 18), ((106, 47, 44, 44), 3)] 
[((106, 46, 44, 44), 38), ((29, 53, 45, 45), 35), ((18, 30, 74, 74), 4)] 
[((98, 54, 36, 36), 7), ((108, 48, 45, 45), 31), ((26, 52, 49, 49), 49)] 
[((109, 46, 45, 45), 28), ((29, 50, 49, 49), 38)] 
[((109, 46, 44, 44), 29), ((27, 47, 53, 53), 27), ((123, 45, 48, 48), 3)] 
[((108, 46, 44, 44), 35), ((28, 50, 49, 49), 33)] 
[((109, 47, 45, 45), 34), ((28, 53, 47, 47), 35), ((126, 50, 44, 44), 3)] 
[((109, 47, 44, 44), 29), ((29, 47, 51, 51), 39)] 
[((106, 47, 42, 42), 49), ((27, 49, 49, 49), 30)] 
[((31, 54, 42, 42), 13), ((110, 46, 44, 44), 4), ((125, 46, 44, 44), 4), ((27, 35, 66, 66), 6)] 

and so on

what i do know is :

(110, 47, 44, 44), 11) ,which is
x, y, w, h, ?

x,y are the co-ordinates of the top-left corner of detected ‘eye’ in ‘eyes’
and w,h are width and height to determine the detected eye region, so that’s in cvRect format

So as you see, the last detection has 4 eyes – thus i ask, how do i know which two of them are my perfectly detected eyes? I mean, seeing the eyes[i][0][0] for any i, we can know if the eye is right or left. But here, we have two left and two right eyes,
eyes[0] and eyes[3] are the left ones, and eyes[1] and eyes[2] are the right ones.

And this is my question, now if i have to get only one of the two detected results for both right and left eye, how do i do that?

Earlier i thought that eye[i][1] could be used as some kind of score. I didn’t have access to the Internet for a while so I assumed that. But its not some quality score, as i just discovered.

So in our case, eyes[0][1] is 13, and eyes[1][1] is 4, eyes[2][1] is 4 and eyes[3][1] is 6.
Lets call this Q

In the rest of the detections i saw a pattern that the Q for my other detections was high, usually around 40-60 so i thought maybe Q within that range denotes best detection.But as before i said, its not.

So how i do determine which ‘eye’ in ‘eyes’ is the best detection?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T17:17:23+00:00Added an answer on May 30, 2026 at 5:17 pm

    I would say that you can use previous results and give more points for the detected eyes that are present for each image (assuming you’re working using the video).

    You can also use parameters, such as the distance inter eye to find the best matching couple.
    You can finally also go to something a bit more complex (like coupled head/eye detection or background substraction) to get a pattern of yourself and search for the best matchgin eye position.

    If the method gives you 4 eyes, you either have to enhance its results before by preprocessing the image or put some more complexity in your algorithm to filter out results.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: PHP detecting request type (GET, POST, PUT or DELETE) This should be
Possible Duplicate: Detecting an undefined object property in JavaScript Would it be like this?
I'm detecting @replies in a Twitter stream with the following PHP code using regexes.
I'm detecting the insertion of memory cards (removable media). Can I get information about
I have little issue with detecting internet connection while using static IP on device.
Is there some way of detecting whether an enumerable built using LINQ (to Objects
Detecting a parenthesis pattern in a string This is a line (an example between
Possible Duplicate: Detecting an “invalid date” Date instance in JavaScript I was using the
I would like some help for detecting the following expressions with RegEx: string "(x/x)"
I am tasked with detecting anomalies (known or unknown) using machine-learning algorithms from data

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.