Click here to Skip to main content
15,066,928 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All

i have this code
Image<Bgr, Byte> currentFrame;
Capture grabber;
currentFrame = grabber.QueryFrame().Resize(320, 240, 2);
gray = currentFrame.Convert<Gray, Byte>();

//Face Detector
MCvAvgComp[][] facesDetected = gray.DetectHaarCascade(face,1.2,10,Emgu.CV.CvEnum.HAAR_DETECTION_TYPE.DO_CANNY_PRUNING,new Size(20, 20));


as you see, the code take fram from the webcam,
and pass it to the face detector,
and i have an image stored in the disk,
i want to use the face detector to detect the face in that image(use image from file not from the webcam)

what to do?
any help will be appreciated
Posted
Updated 20-Mar-12 5:05am
v3
Comments
Sergey Alexandrovich Kryukov 19-Mar-12 17:11pm
   
What's the problem? Do you want to avoid storing data as a file or what. Do you use OpenCV or what? What is the grabber API?
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900