Ask Your Question
0

Get Mat or vector from CvHaarClassifierCascade

asked Jan 23 '14

Darius gravatar image

Hi, i'm new to openCV, i'm trying to make simple face recognition program and i was wondering how to get Matrix or vector from this:

pStorageface = cvCreateMemStorage(0);    
        pFaceRectSeq = cvHaarDetectObjects
                (frame, face_cascade, pStorageface,
                1.1,                       
                3,                        
                CV_HAAR_DO_CANNY_PRUNING,  
                cvSize(30,30));

i am interested only in detected image.

Preview: (hide)

1 answer

Sort by » oldest newest most voted
0

answered Jan 23 '14

Some suggestions for OpenCV since you are a new user

  • Skip the old C - api and move on to the new C++ - api which is much easier to use
  • When encountering a problem, google is your best friend, this is somewhat the most tackled problem using OpenCV
  • In your OpenCV folder there is a cpp folder under samples with tons of examples, including examples on facedetection
  • Follow this guide and this guide for a sample program that runs perfectly
Preview: (hide)

Comments

1

thank you :)

Darius gravatar imageDarius (Jan 23 '14)edit

Question Tools

Stats

Asked: Jan 23 '14

Seen: 212 times

Last updated: Jan 23 '14