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 use usecase_gen tool

Hi,

I want to use usecase_gen tool to generate a new usecase in VISION_SDK_02_08_00_00

After referring to "VisionSDK_UsecaseGen_Overview" & "VisionSDK_UsecaseGen_UserGuide", I'm still confused how to use this tool.

Hope some guides from you. 

Thanks

  • Hi, Benz,

    Your query has been forwarded to Vision SDK expert.

    Regards,
    Mariya
  • I am not the Vision SDK expert, but I have some experiences in using the vision_sdk_usecase_gen.

    First you need to create a usecase text file, there are many examples in vision SDK.
    Take example: /vision_sdk/examples/tda2xx/src/usecases/vip_single_cam_view/chains_vipSingleCam_Display.txt

    If you are on Ubuntu, then you run:
    /vision_sdk/tools/vision_sdk_usecase_gen/bin/vsdk_linux.out -img -file /vision_sdk/examples/tda2xx/src/usecases/vip_single_cam_view\chains_vipSingleCam_Display.txt

    If you are on windows, then you run:
    /vision_sdk/tools/vision_sdk_usecase_gen/bin/vsdk_win32 -img -file /vision_sdk/examples/tda2xx/src/usecases/vip_single_cam_view\chains_vipSingleCam_Display.txt

    It will generate:
    chains_vipSingleCam_Display_img.txt
    chains_vipSingleCam_Display.jpg
    chains_vipSingleCam_Display_priv.c
    chains_vipSingleCam_Display_priv.h

    You will then need to create the chains_vipSingleCam_Display.c similar to the example in /vision_sdk/examples/tda2xx/src/usecases/vip_single_cam_view

    Hope that helps.
    //Buddy
  • These steps are correct, but you will need to initialise parameters of the links according to you usecase requirements..

    There is a userguide which explains how to use usecase gen tool. You could find this userguide in vision_sdk/docs/VisionSDK_UsecaseGen_UserGuide.pdf.

    Regards,
    Brijesh
  • Hi Buddy,
    When on windows, did you run vdsk_win32.exe in cmd prompt(C:\Windows\System32\cmd.exe), or other apps?
    When I did this in cmd line, the log is showed below,

    Microsoft Windows [???? 6.1.7601]
    ???????? (c) 2009 Microsoft Corporation????????????????
    C:\Users\temp>cd c:/VISION_SDK_02_08_00_00/vision_sdk/tools/vision_sdk_usecase_gen/bin
    c:\VISION_SDK_02_08_00_00\vision_sdk\tools\vision_sdk_usecase_gen\bin>vsdk_win32 -img -file
    Program too big to fit in memory
    c:\VISION~1\VISION~1\tools\VISION~1\bin>

    my PC system info:
    CPU: Inter(R) Core(TM) i5-6500 CPU @ 3.2GHz
    MEM: 4.00GB (3.35GB available)
    Virtual Memory: 3433MB

    I doubt wether the Virtual Memory is not large enough, or the way I use this tool is not ture.
  • Benz,

    Is your Windows 7 64bit? The utility vsdk_win32 inclued in VSDK 2.0.8 can not run under 64-bit OS. Please get 64-bit version (vsdk_win64.exe) from newer VsionSDK.

     

    My steps below for your reference.

     

    1. Make sure vsdk_win64.exe is placed in D:\VisionSDK\vision_sdk\tools\vision_sdk_usecase_gen\bin

     

    2. Download graphviz-2.38.zip from below link. Decompress to D:\. All executable files should locate at D:\graphviz-2.38\release\bin

    http://www.graphviz.org/Download_windows.php

     

    3. Make a directory D:\test_case, put config.txt under this directory. The content of config.txt is as follows

     

    UseCase: chains_vipSingleCameraFrameCopy

     

    Capture -> Alg_FrameCopy (A15) -> Display_Video

    GrpxSrc -> Display_Grpx

     

    4. Open a comand prompt window, input below commands

     

    d:

     

    cd \test_case

     

    set PATH=%PATH%;D:\VisionSDK\vision_sdk\tools\vision_sdk_usecase_gen\bin

     

    set PATH=%PATH%;D:\graphviz-2.38\release\bin

     

    vsdk_win64.exe -file -img config.txt

     5. Done. Attach screen capture FYR.


    Best Regards,

    Luke Lin

     

  • Hi Luke,
    My windows 7 is 32-bit. I have followed your steps to run it, but it still doesn't work, and the failure prompt is "Program too big to fit in memory".
    Then I chaged the VirtualMemory to 15GB, but the failure also occured.
    Maybe there are some problems in my windows system, I may change another better PC and then try it.

    Thanks
  • Benz,

    Please also check the itegrity of your vsdk_win32.exe. The following is the info of my vsdk_win32.exe (included in VisionSDK 2.0.8)

    File: vsdk_win32.exe
    Size: 727967 bytes
    MD5 : 2afe6816a6b9e6d0ec732d4d51ef0b6a
    SHA-1: 4cde9368aa4a9992282ee7813be794bb60a02dba

    Best Regards,
    Luke Lin
  • Hi Luke,
    The vsdk_win32.exe in my PC is 727967 bytes too.
    Could you send your vsdk_win64.exe(.bak) to this mail: 421090917@qq.com?
    Thanks a lot
  • I have changed another better PC, and try vsdk_win64 in it, then it works.
    Thanks for all.