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.

How to implement the object count on the DVRRDK 04.00.00.03

hi, all

I want to fulfill the function of object counting ,but after I type the "./run.sh" I only see the 

5 items as follow

 1: VCAP + VENC + VDEC + VDIS - Progressive SD Encode + Decode
 2: VCAP + VENC + VDIS - SD Encode ONLY
 3: VCAP + VENC + VDEC + VDIS - Progressive HD Encode + Decode
 4: VDEC + VDIS - SD/HD Decode ONLY
 a: 960H DVR usecase

I search for the function for a while still never see the function of count function.

Could anyone who could tell me about how to implement the object count

thanks a lot~ 

  • This algorithm is enabled in demo-1 (Progressive SD EncDec) . By default TripZone has been enabled for 1-channel. This can  be checked at the menu option "l: Print SCD Analytics Config of All Channels" inside capture setting.

    Once the demo-1 is selected, user is asked to provide algorithm configuration file i.e. "ini" file. There are sample files in ~/demo_ini/ folder. If user does not specify any file, by default /opt/dvr_rdk/ti816x/demo_ini/demo_init/dmvalConfig.ini file is selected. It specify algorithm configuration of 1-channel. 

    You can go through the ini file for more details about parameter to be set. To Select Object Count select the detectmode = 32 (ALG_LINK_SCD_DETECTMODE_COUNTER).

    Currently result of the algorithm is exported to A8. It is then processed to print it on console and/or showcase on graphics. All these tasks are done in demo_scd_bits_wr.c. Please go through function Scd_VaProcessMetaData() for any further details on result processing and console prints. You can add a print to display number of counted object, this data is present in AlgLink_ScdResult structure.