hi,
after enabling the face detection module, I print out the result by insert some code in ../v_capture/application/ipnc/multimedia/av_server/src/video/videoFaceDetectThr.c
......
VIDEO_fdSetFaceStatus(&faceStatus, pBufInfo);
if(faceStatus.numFaces>0){
OSA_printf(" \n");
OSA_printf(" %d Face(s) detected\n", faceStatus.numFaces);
OSA_printf(" \n");
int i=0;
for(i=0; i<faceStatus.numFaces; i++) {
OSA_printf(" #%2d : centre(X,Y) = (%3d,%3d), angle = %3d, size = %d, confidence = %d \n",
1+i,
faceStatus.info[i].centerX,
faceStatus.info[i].centerY,
faceStatus.info[i].angle,
CSL_FACE_DETECT_GET_SIZE(faceStatus.info[i].sizeConfidence),
CSL_FACE_DETECT_GET_CONFIDENCE(faceStatus.info[i].sizeConfidence)
);
}
OSA_printf("\n");
}else{
OSA_printf(" No Face detected\n");
}
OSA_bufPutEmpty(&gVIDEO_ctrl.faceDetectStream.bufFdIn, inBufId);
return status;
}
but the result is always : No Face detected
I tried to run the test function DRV_faceDetectTestMain(int argc, char **argv) in drv_faceDetect.c with input image
- a file I convert from a jpg image: out.yuv
- 1 file I saved at VideoCaptureThr.c: test_0001_320x192.yuv
http://www.mediafire.com/?ooj02doelmk
http://www.mediafire.com/?wo3lhdmjvnd
configurations:
facePrm.inWidth = 320;
facePrm.inHeight = 240;
facePrm.detectThres = 8;
facePrm.detectCondition = DRV_FACE_DETECT_CONDITION_DEFAULT;
but the results is still: no face detected
please tell me what is wrong?
thanks you very much