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.

dm385 移动监测算法



ti专家们好,请问在dm385中怎样开启移动监测算法?sdk提供的使能接口设置了gMDHndl.motionenable,但是我并没有看到这个使能参数在哪里被调用了,(dm368上的移动监测是使用了这个参数的),而且ti_motiondetect.c中的 DM81XX_MD_Run 算法由于没有获取到新的数据,一直没有运行,请问该怎样修改才能正常使用该算法?

  • 你好,

    在IE界面上有对运动检测的使能。你可以看一下编码link是否有正确收到界面运动检测使能的设定而调用了DM81XX_MD_Apply API。

    Source\ipnc_rdk\ipnc_mcfw\mcfw\src_bios6\links_m3video\iva_enc\encLink_h264.c

            /* If SAD values are available then run Motion Detection Algorithm */
            if (outputBufDesc->numBufs == 2)
            {
                //changed address because memory layout has changed
                mvDataBuf = (UInt32) (outputBufDesc->descs[1].buf);

                DM81XX_MD_Apply(mvDataBuf,                     // MV buf addr
                                pReqObj->OutBuf->frameWidth,   // frame width
                                pReqObj->OutBuf->frameHeight,  // frame height
                                pReqObj->OutBuf->isKeyFrame);  // isKeyFrame
            }

    Source\ipnc_rdk\ipnc_mcfw\mcfw\src_bios6\links_m3video\alg\motion_detection\ti_motiondetect.c

    int DM81XX_MD_Apply(Uint32 mvBuf, Uint32 frameWidth, Uint32 frameHeight,
                        Uint32 isKeyFrame)
    {
     ...

        /* Send cmd to the Motion Detection task */
        Utils_tskSendCmd(&gMDHndl.tskHndl, SYSTEM_CMD_NEW_DATA);
        return 0;
    }