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.

dm36x face detect for DVSDK 4.02



I could not find how to use face detect in DVSDK 4.02. It is even possible? If not, where to look for documentation, examples etc?

  • Oleg,

    As you can read in this post *** http://e2e.ti.com/support/embedded/linux/f/354/t/112368.aspx *** the DM36x Face Detection Module driver has not been supported in the since DVSDK 2.10 thus you will have to port the DVSDK 2.10 driver to the DVSDK 4.xx you are planning to use.

    Recall that DVSDK 2.10 is based on Linux Kernel version 2.6.18 while DVSDK 4.xx is based on version 2.6.32. Randy S. has done such a port successfully and I am currently in the process of doing a port to DVSDK 4.01 myself. Please let me know if you have additional questions.

    -Chuck

  • Hello Chuck,

    Thank's! I've seen this topic.

    I'm almost all done. I can not figure out how to replace vpss_require_irq. Which IRQ to use and how to configure the VPSS? Can you help me?

  • Hi Oleg,

    I'm using the standard Linux interrupt functions, e.g., I request IRQ5 by using request_irq(5, IRQF_SHARED, "dm365_facedetect", (void *) facedetect_dev) then use enable_irq(5), disable_irq(5), free_irq(5, facedetect_dev), etc.  I'm in the midst of incrementally testing my driver while adding functionality and so far everything is working.

    I'll keep you posted if I run into any significant problems with this approach and please do the same...

    -Chuck

  • Hi Chuck,

    I understand that it is necessary to configure it as VPSS that he would have generated the interrupt is from facedetect HW. "Face Detection
    User's Guide" in "2.6 Interrupt Support" describes NOT the same as in "Video Processing Front End (VPFE) User's Guide" in "6.6 ISP System Configuration (ISP) Registers" !

    I was furious about TI !

  • Oleg,

    So how are how are you requesting an IRQ, enabling/disabling interrupts, etc?  Do you have an approach that works?  

    My development testing is not complete so please advise if you have a better method that the standard Linux interrupt functions...

    -Chuck

  • Chuck,

    Of course need use request_irq() - but then there is no dedicated interrupt for facedetect. It must be somehow "connect", with setting VPSS. How?

  • Oleg,

    Using request_irq(), I am currently having trouble running my application normally after requesting irq 5 or 6.  I'm not sure how to select the Face Detection Module interrupt using this method.  Instead, I'm going to try selected the FD interrupt by writing to the hardware directly as described in the DM36x Face Detection User's Guide.

    -Chuck