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 8097329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T21:43:29+00:00 2026-06-05T21:43:29+00:00

Following a tutorial from iTunes U on how to do face detection (the tutorial

  • 0

Following a tutorial from iTunes U on how to do face detection (the tutorial is only in the video, and not written online so I can’t post a direct link). Basically, I have gotten face detection to work, but only if the phone is in LandscapeLeft mode.

Any ideas on why it works like that?

  • 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-06-05T21:43:31+00:00Added an answer on June 5, 2026 at 9:43 pm

    Without seeing your code it’s hard to say but my guess is that you are not setting CIDetectorImageOrientation? I’ve had detection fail when there was a mismatch between the image orientation and what the detector orientation is set to be.

    Some code below – not cut ‘n paste but more of a rough example.

    - (void)detectFacialFeatures:(UIImage *)image withHighAccuracy:(BOOL) highAccuracy
    {
    
    CIImage* ciImage = [CIImage imageWithCGImage:sourceImage.CGImage];
    
    if (ciImage == nil){
        printf("ugh \n");
        // bail
    }
    
    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
    
        NSString *accuracy = highAccuracy ? CIDetectorAccuracyHigh : CIDetectorAccuracyLow;
    
        NSDictionary* options = [NSDictionary dictionaryWithObjectsAndKeys:
                                 CIDetectorAccuracyHigh, CIDetectorAccuracy,
                                 orientation, CIDetectorImageOrientation,
                                 nil];
    
        CIDetector* detector = [CIDetector detectorOfType:CIDetectorTypeFace 
                                                  context:nil options:options];
    
        NSArray *features = [detector featuresInImage:ciImage];
    
        NSLog(@"features %@", features);
    
    });
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been following a video tutorial from O'reilly media going through the basics
Following the My First Triangle tutorial from this link: My First Triangle the desktop
Can anyone please help. Im following a tutorial on drawing primitives from the MSDN
I managed to get authentication to work by following the tutorial from this page
I am learning GWT, so I am following this tutorial from Google GWT https://developers.google.com/web-toolkit/tools/gwtdesigner/tutorials/stockwatcher
I'm following the kernel tutorial from here im having problems compiling my files. i
I have been following the affableBean tutorial from the NetBeans site located here .
I'm new to NHibernate... I have been following this NHibernate Tutorial from Gabriel Schenker
I been following a tutorial for making my webpage css 100% height from this
I'm following a tutorial on how to use Interface Builder from Chapter 2 of

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.