This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Problem with the face detection module of APPRO's DM365IPNC-MT5

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

 

 

  • I changed:

    facePrm.detectThres=1

    the results is the same.

  • Hi,

    A few things that need clarification:

    1. Did the face detection work at all, initially when you got the camera from Appro?

    2. Did you make any changes to the source code when trying face detection?

    3. Can you dump the registers starting at address 0x1c71800 and ending at 0x1c71900? You can use regrw.out utility in the IPNC filesystem.

    4. Can you check with Appro if the camera shipped to you is with the Face Detection enabled part? There is a separate device part number of DM365 which support Face Detection. It is not switched on for all regular devices.

    Regards,

    Anshuman

     

  • Thanks for your reply,

    1. when I got the camera from Appro, I didn't see the face detection works

    2. I didn't make any changes to the source code except inserting the print out code.

    3. I dump the registers starting at address 0x1c71800 and ending at 0x1c71900 and all values is 0

    ./regrw.out 1c71800 70                                                       
                                                                                   
     0x01c71800: 00000000 00000000 00000000 00000000                               
     0x01c71810: 00000000 00000000 00000000 00000000                               
     0x01c71820: 00000000 00000000 00000000 00000000                               
     0x01c71830: 00000000 00000000 00000000 00000000                               
     0x01c71840: 00000000 00000000 00000000 00000000                               
     0x01c71850: 00000000 00000000 00000000 00000000                               
     0x01c71860: 00000000 00000000 00000000 00000000                               
     0x01c71870: 00000000 00000000 00000000 00000000                               
     0x01c71880: 00000000 00000000 00000000 00000000                               
     0x01c71890: 00000000 00000000 00000000 00000000                               
     0x01c718a0: 00000000 00000000 00000000 00000000                               
     0x01c718b0: 00000000 00000000 00000000 00000000                               
     0x01c718c0: 00000000 00000000 00000000 00000000                               
     0x01c718d0: 00000000 00000000 00000000 00000000                               
     0x01c718e0: 00000000 00000000 00000000 00000000                               
     0x01c718f0: 00000000 00000000 00000000 00000000                               
     0x01c71900: 00000000 00000000 00000000 00000000                               

    all other registers have non-zero values, for example rsz

     ./regrw.out 1c71400 20                                                       
                                                                                   
     0x01c71400: 4d010000 f0050000 00000000 00000000                               
     0x01c71410: 00000000 00000000 00000000 00000000                               
     0x01c71420: 00000000 00000000 00000000 00000000                               
     0x01c71430: 00000000 00000000 00000000 00000000                               
     0x01c71440: 00000000 00000000 00000000 0c0363cb        

    So now, I think the face detection module is not enable in my device. is it right?

    thanks you very much.


  • Hi,

    This almost points that your camera does not have DM365 device which supports face detection. I would recommend you to talk to Appro about the same. We will also follw up with Appro to have proper markings on the cameras that support face detection.

    Regards,

    Anshuman

    PS: Please mark this post as verified, if you think it has answered your question. Thanks.