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: Linux(A72) get capture image data from R5F

Part Number: TDA4VM


Hi, experts

I use SDK version as below to develop TDA4 software:
RTOS SDK version: sdk-rtos-j721e-evm-07_02_00_06
Linux SDK version: sdk-linux-j7-evm-07_02_00_07

I can run app_multi_cam.sh according to Multi Camera VPAC Application and I know R5F capture image from camera and the display is also on the R5F core.
Now, I want to get capture image data in linux side(A72) from R5F.It is there any sample codes or documents I can reference?


Looking forward to your reply.
Thanks.

  • hello, can anyone help me?

  • Thank you for your question.  In order to capture image data in Linux, please try using the following contents of the configuration file "app_multi_cam.cfg" with the application.  This will store the captured data in the folder /opt/vision_apps/app_cam_out on the SD card (remember to have this folder available on the SD card to save the data.).  Once you have the data stored on SD card, you can easily copy on your Linux platform for use.  

    Please select your sensor and remember that the following configuration asks to skip 2 frames and records a total of 50 frames. 

    Please let us know if you have any additional question.

     

    # sensor selection

    # 0 : IMX390

    # 1 : AR0233

    # 2 : AR0820

    sensor_index   0 

    # LDC 0-disable, 1-enable

    enable_ldc  0

    # Number of cameras enabled

    num_cameras_enabled   1

    # Number of frames to run

    num_frames_to_run  10000

    # Show output in HDMI/eDP, 0-disable, 1-enable

    display_option    1

    # Supported usecase options 0, 1

    usecase_option   0

    # enable interactive mode 0-noninteractive, 1-interactive

    is_interactive    1

    # enable writing final output 0-disable, 1-enable

    en_out_img_write  0

    # enable writing csix output 0-disable, 1-enable

    en_out_capture_write  1

    # enable writing viss output 0-disable, 1-enable

    en_out_viss_write  1

    # enable writing ldc output 0-disable, 1-enable

    en_out_ldc_write  0

    # Number of frames to write per 's' command,

    num_frames_to_write 50

    # Number of frames to skip per 's' command, Eg. 0-no frame skip, 1-skip 1 frame, 2-skip 2 frames etc.

    num_frames_to_skip  2

    # path to write the processed frames

    output_file_path /opt/vision_apps/app_cam_out

    # Disable error detection by default

    enable_error_detection  0

    # Send a test image as the error frame and compare the results to the expected checksums

    test_mode  0

  • Hi,Muhammad Ikram

    I can save store capture data as you steps, but this is not actually result I wanted.
    In RTOS(R5F) can get capture data, but my program run in Linux(A72) and this program's input is capture data.
    On the Linux(A72) side, is there a method or code interface to get the camera data captured by RTOS(R5F).

  • If I try to understand your request correctly - are you looking for a method to use the captured images run through your A72 code?   If so, there is a method where you can use the raw captured image and run it through your code.   Please confirm so that I can explain the method.  Thanks. 

  • Yes, this is what I want

  • Thank you for confirming.   You can place your image (that you had captured) in directory /opt/vision_apps/test_data/ and name that image img_test.raw.  Then disconnect the camera from the board.   After that when you run the single camera app (vx_app_single_cam), it will use the image img_test.raw.  If you'd like to use this image in another application of yours, simply look it up as /opt/vision_apps/test_data/img_test.raw.  Hope this will resolve your issue.