headDetections with opencv + haarcascade.

56 views
Skip to first unread message

nomad

unread,
Mar 10, 2011, 3:18:33 AM3/10/11
to OpenKinect
hi
here a sample of headDetections with opencv and haarcascade.
porting from the book "learning Opencv" page 511 -> original source
for webcams
"ch13_ex13_4.cpp"
clip: freenomad_0103.AVI
on youtube: http://www.youtube.com/watch?v=k4oCRPhfQ8c
on github.com
https://github.com/freenomad/freenomad_vision/downloads
-> okHeadDetections.tar.gz
hope its useful
regards nomad

Marco Piccirilli

unread,
Mar 15, 2011, 5:21:19 PM3/15/11
to openk...@googlegroups.com
I had this compilation error:

headDetections1.cpp: In function 'int main(int, char**)':
headDetections1.cpp:445: error: 'Freenect::Freenect' is not a template
headDetections1.cpp:446: error: no matching function for call to
'Freenect::Freenect::createDevice(int)'

nomad

unread,
Mar 16, 2011, 4:17:09 AM3/16/11
to OpenKinect
hi
i dont know witch release you working with (excuse my english)
my source code is older: (libfreenect.h)
you can make achange in your code.....
or
if you have a running example (kinect and opencv)
port my opencv-stuff into your code:
the interface from kinect to opencv is:
------------------------------
// save output for colorDetections()
cv::imwrite("original.jpg",rgbMat);
// read
cv::Mat img1 = cv::imread("original.jpg",1);
// working with frame for Colordetections
frame = cvLoadImage("original.jpg", 1);
--------------------------
and make a new kinect-code with your libfreenect.h (functions)
regards nomad

opi
cv::wirte("name1.jpg", cv-image)----but you canh hat for a release
Reply all
Reply to author
Forward
0 new messages