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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:00:47+00:00 2026-05-26T12:00:47+00:00

I am trying to do some Face Recognition (not detection) stuff using OpenCV. I

  • 0

I am trying to do some Face Recognition (not detection) stuff using OpenCV. I found this article with some code:

http://www.cognotics.com/opencv/servo_2007_series/index.html

However, this code is written using the older C-style OpenCV API. Does someone have a C++ API version of this using a more recent version like OpenCV 2.3.1?

  • 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-26T12:00:48+00:00Added an answer on May 26, 2026 at 12:00 pm

    I’m doing a face recognition project for my engineer’s degree, using c++ api. I think that everything regarding face recognition in c++ is fairly straightforward, even simpler than in C (less pointers). To use PCA you have a class named PCA described here. Just use the proper methods and read documentation with understanding. To build the matrix with input data I’ve created a matrix of proper size, then pasted pictures as rows (use method reshape) into it (there is a method in cv::Mat that lets you to get easily a row of a matrix). You just need to keep sure that base data and tested data have the same parameters (channels, size,etc.)

    EDIT:

         using namespace cv; //somewhere near top
    

    inserting data to data matrix:

        62       Mat reshaped=img.reshape(1,1);
        63       Mat dataRow=_data.row(y++);
        64       resize(reshaped,dataRow,dataRow.size(),0,0,CV_INTER_LINEAR);
    

    computing pca:

        251 _pca(_data,Mat(),CV_PCA_DATA_AS_ROW); //compute pca 
        252 _pca.project(_data,_vectors); // project original data to new coordinates
    

    As opencv’s documentation isn’t the best out there, it doesn’t hurt to spend some time reading it. Most of the c api functions have their equivalents in c++ api, You only need to do some “write into search window and hit enter” searching. And, there are also tutorials in c++ to get a grip of the c++ api.

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

Sidebar

Related Questions

I am trying to do some facial recognition using EmguCV. I was wondering if
I am trying some programs in c face a problem with this program can
I'm trying to make a hand detection program by using OpenCV and Haar cascade.
Recently I was trying some practice programs in python and I came across this
I'm using Eclipse with C++ plugins on my macbook, trying some practice projects to
I'm trying to find the way to face this situation. Having these tables in
http://pastebin.com/AreCLL5W Could anyone help me with this, I've been trying all day to get
I'm know trying to get into image processing for iPhone/iPad with openCV I found
I'm trying to run some unit tests using QUnit written in CoffeeScript but there
I spent some time trying to generate certain tab icons using Android Asset Studio

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.