Ask Your Question
0

Get Mat or vector from CvHaarClassifierCascade

asked 2014-01-23 06:42:17 -0600

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.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-01-23 07:04:08 -0600

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
edit flag offensive delete link more

Comments

1

thank you :)

Darius gravatar imageDarius ( 2014-01-23 07:06:15 -0600 )edit

Question Tools

Stats

Asked: 2014-01-23 06:42:17 -0600

Seen: 177 times

Last updated: Jan 23 '14