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.

SDK_VISION guidelines_RVC

Hello,

we are developing a SDK_VISION application on   TDA2XX_EVM for rvc and trying to use  these algo ALG_drawRearview ALG_swcrc ALG_rvcDiags  to draw a dynamic Steering_lines  , thanks to to an algorithm called ACKERMANNSTEERTINGMODEL the rvc show two dynamic lines which they are moving from right to left and vis-versa , my question is there any document or wiki to understand how to configure and manipulate this algo for example changing the speed of moving , the angle of deviation and the starting position ?  

Best regards 

Ahmed

  • Hi,

    What is the VSDK version are you using?

    Is there any usecase are you referring for this?

    Regards,

    Anuj

  • Hi Anuj,

    Thank you for replying ,

    we are using PROCESSOR_SDK_VISION_03_02 with the RVC UC , we need to configure the behavior of the steering lines via the ACKERMANN Algorithm.

    Regards 

    Ahmed

  • Hi Ahmed,

    It looks like we have some documentation behind NDA restrictions, so I may not be able to provide it here.

    Let me follow up with this a bit more, I'll provide you more info in a few days.

    Thanks,

    David

  • Good morning David , 

     I appreciate your support thank you , I still waiting for more documentation about my application use-case . 

    For now i am able to modify  the parameters of the ALGO  such as the the height the width , position etc ,but what i really worry about is the color of the lines  i tried my format of color system for example SYSTEM_DF_YUV420SP_UV or RGB4444  but i can't print a RED color or an other color just there is the green and pink . 

    Best regards

    AHMED

  • Hello DAVID ,

    I still working on the rearview camera using the same usecase , i blocked on an issue with the colors of the lines , i cannot change the color of the lines , using the alg_plugins drawRearview it mentioned that the Supported formats are SYSTEM_DF_YUV422I_YUYV, SYSTEM_DF_YUV420SP_UV , I tried the both , the color are wrong just the there are two color the green and pink can appeared , even with the format rgb no changes in the color! is the any other config i can do ?

    Thank you ,

    Best regards 

    AHMED

  • Hi Ahmed,

    It sounds like the ACKERMANN steering lines algorithm is meant as an example application, not for real use. Please use it as an example for designing a proper steering lines algorithm instead of trying to use it at all as is.

    Thanks,

    David

  • Hi David,

    Thank you for replying, ofcourse i used  ACKERMANN steering lines algorithm example to establish our own application now i just need to know how to use the SYSTEM_DF_YUV420SP_UV format and change the color of any pixel in the draw  whatever the algo is!

    Best regards.

    Ahmed

  • Hi Ahmed,

    It looks like the Alg_drawRearview function uses draw2D. Specifically, can you look at Draw2D_drawLine and the Draw2D_LinePrm parameter passed to it for how to set color format, line thickness, and color?

    It looks like the example uses SYSTEM_DF_YUV420SP_UV as its color format, and in apps/src/rtos/alg_plugins/drawRearview/drawRearviewLink_priv.h there is a set of defined colors already for that. Can you try using one of these combinations?

    Thanks,

    David

  • Hi Ahmed,

    Another update, this looks like it draws the colors directly on the Camera buffers, so you need to make sure your color format is the same as what your camera is outputting, otherwise you'll be writing RGB values into a YUV420 plane etc.

    Thanks,

    David

  • Hi David

    I tried all the defined colors in apps/src/rtos/alg_plugins/drawRearview/drawRearviewLink_priv.h  and stil appears only a green or purple colors  ,I can change the Draw2D_drawLine params but the color  i cannot , I tried also the other format . 

    // Draw2D_LinePrm linePrm1;
    Draw2D_LinePrm linePrm1;
    linePrm1.lineColorFormat = SYSTEM_DF_YUV420SP_UV;
    linePrm1.lineSize =14;
    linePrm1.lineColor =0x5EA1F3;

    I wondered why i can change the colors from the grpxSrcLink_tsk.c  using the SYSTEM_DF_BGRA16_4444 & SYSTEM_DF_BGR16_565 format  displaying in VOUT2 !

    Regards

    Ahmed

  • Hello Ahmed,

    Could you please confirm which use case you are running?  Are you using the iss_mult_capture_isp_dewarp_3dsv_rearview_tda3xx use case?  I do not see any camera output in the attached pictures, so it appears that this use case may not be running.  Please confirm the colors that are seen when running this use case.

    I ask because this algorithm link was intended to run with this use case.  The input buffer to this link must be of format SYSTEM_DF_YUV420SP_UV or else the colors will not be as expected.  If you have created a new use case, please query the input buffer format to confirm that it is in fact SYSTEM_DF_YUV420SP_UV.  This could explain why you are seeing the correct colors in grpxSrcLink_tsk.c but not in the draw rearview link.

    Regards,

    Lucas

  • Hello Lucas

    Thank you for the reply 

    I am usisng the use case chains_vipSingleRvcCamCrc_Display and the dataformat it configured to support the SYSTEM_DF_YUV420SP_UV , for the camera actually its not connected in those pictures but its works fine .

    You can see my use case below :

    UseCase: chains_vipSingleRvcCamCrc_Display

    Capture -> Alg_RvcDiagnostic -> VPE_dei -> Alg_drawRearview (DSP1) -> Display_Video

    Capture_dsswb -> Alg_SwCrc (DSP1)

    GrpxSrc -> Display_Grpx

    Regards

    Ahmed

  • Hi Ahmed,

    Can you check in "chains_vipSingleRvcCamCrc_Display.c" chains_vipSingleRvcCamCrc_Display_SetVpePrms() what dataFormat is being set for VPE output? We're expecting that you need to match that color format for the drawing to work correctly.

    Does the Alg_drawRearview output look basically the same with the camera connected as well?

    Thanks,

    David

  • Hello David

    You helped me a lot thank you , a solved my problem , its the format of vpe buffer from chains_vipSingleRvcCamCrc_Display_SetVpePrms as you said . so i changed it and the color gets correctly works. But this effected  my lines draw , i guess  there are a scale can be changed and depends into the dataFormat input because the size and the position hey are multiplied by 2 . Do you have an idea where to set ?

    Best Rgards

    Ahmed