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.

TDA4VM: How to get the timestamp of the capture node at the application layer?

Part Number: TDA4VM

Hi,

The version of my PSDK is psdk_rtos_auto_j7_07_00_00_11.
I want to get the timestamp of the image received at the application layer. In the vx_capture_target.c file, there is the following code to get the timestamp of the image;


But in the application layer, the image is passed to out_capture_frames after being captured. How can I get this timestamp from out_capture_frames?

Thanks!

Kepei

  • Hello Kepei,

    The out_capture_frames that is being dequeued is a vx_object_array, so you first will need to get the element of the object array corresponding to the camera index that you want the timestamp of.  For instance, if you would like to get the timestamp of the first camera, you can get the first camera index by doing the below:

    tivx_raw_image element0 = (tivx_raw_image) vxGetObjectArrayItem(out_capture_frames, 0);

    Next, now that you have the appropriate element, you can query the element using the below API:

    vxQueryReference((vx_reference)element0, TIVX_REFERENCE_TIMESTAMP, &timestamp0, sizeof(timestamp0));

    Regards,

    Lucas

  • Hi Lucas,

    Thank you, the problem has been resolved.

    Regards,

    Kepei