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.

Compiler/TDA2EX17EVM: single camera usecase for capturing

Part Number: TDA2EX17EVM

Tool/software: TI C/C++ Compiler

Hi Sir

I still some questions over TI-RTOS.

1. Which utility can I use to know the capturing data? Or which buffer can I print to know the camera is capturing for usecase-framecopy? I want to know whether camera is working and capturing.

2. I use usecase-framecopy and have a algorithm API-AAA(*ptr) that want to call by buffer address of framecopy. Which buffer can I call for our AAA(*ptr) - ptr?  

Thanks so much

Best Regards,

Jacob

  • Hi,

    All The buffer are handled in Capture link and the next link.

    If you want to do some processing on any camera output data then you have write your own link and then process.

    please go through vision sdk developers guide.

    Regards,

    Anuj

  • Hi Anuj

    Is there any easy example for my reference and understanding? I never touched the VISION_SDK before. Thanks a lot.

    Best Regards,

    Jacob

  • Hi,

    You can use PDK capture example.

    Please follow pdk userguide and build PDk example

    http://processors.wiki.ti.com/index.php/PDK/PDK_TDA_Software_Developer_Guide

    \ti_components\drivers\pdk\packages\ti\drv\vps\examples\vip\captureVip

    Regards,

    Anuj

  • Hi,

    Its been long since any update on this thread.

    I hope it is resolved.

    If not then please reply below or create a new thread for a different query.

    Regards,

    Anuj

  • Hi Sir

    I still have no idea for my algorithm porting to TDA2ex platform. I am tracing code now. And I want to first arrange my condition.

    1. I have a C-based algorithm and it works over PC simulation.The algorithm features are 720P data size and YVYU422 format.

    2. The algoritm AAA(unsigned int *ptr) needs image YCbCr data to calculate out a result and so the API AAA wants to set point buffer address of stored image data.

    3. My circuit is single camera

    4. My system needs the display by HDMI

    5. Usecase base : use the "vip_single_cam_frame_copy" and add my algorithm to it

    6. preview without algorithm : OK

    My study and question:

    How to add a new plugin link to  "vip_single_cam_frame_copy" and access the handled buffer?The "vip_single_cam_frame_copy" has a own plugin link to handle framecopy for input and output buffer.The 720P streaming is 30-fps continuous.

    For example and references:

    /vision_sdk\apps\src\rtos\alg_plugs\framecopy\frameCopyLink_algPlugin.c => AlgorithmLink_FrameCopy_initPlugin

    /vision_sdk\apps\src\rtos\alg_plugs\crc\crcLink_algPlugin.c => AlgorithmLink_Crc_initPlugin

    >> Conbine the two plugins to use the same buffer.

    * Key:

    I really want to make sure my direction whether is correct. For example, I put my algorithm to

    /vision_sdk\apps\src\rtos\alg_plugs\framecopy\frameCopyAlgoCpu.c => Add my algorithm before the "Alg_FrameCopyProcess" return but the result is so lag.I think it is not correct direction.

    ...

    ...

     AAA((unsigned int *)outputPtr);

    return SYSTEM_LINK_STATUS_SOK;

    }

    Thanks so much.

    Best Regards,

    Jacob Lin

  • Hi,

    So if i understand correctly then you have some algorithm which will take camera input and do some processing and send data to display link.

    You can write your own alg link to integrate your algorithm in vision sdk.

    Once your link is ready you can create a usecase like below

    capture -> your_link -> display.

    For creation of your link, please follow below userguide

    vision_sdk\docs\FeatureSpecificUserGuides\VisionSDK_DevelopmentGuide.pdf

    vision_sdk\docs\FeatureSpecificUserGuides\VisionSDK_UserGuide_BuildSystem.pdf

    Regards,

    Anuj