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.

SK-AM62A-LP: tiovxisp not able to handle ROI data

Part Number: SK-AM62A-LP

Tool/software:

Hello Team,

We are using AM62A34 evm in that I am trying to set ROI in driver using below v4l2 command.

v4l2-ctl -d /dev/v4l-rpi-subdev0 --set-subdev-selection target=crop,top=10,left=10,width=960,height=600

I am successfully able to set ROI in driver side and based on width and height of above command I am trying to stream using below command and able to successfully get video data.

gst-launch-1.0 -v v4l2src device=/dev/video-rpi-cam0 io-mode=dmabuf ! video/x-bayer, width=960, height=600, framerate=120/1, format=rggb ! fakesink


but , when I use tiovxisp plugin in that I am not able to get data.

Pipeline:

gst-launch-1.0 -v v4l2src device=/dev/video-rpi-cam0 io-mode=dmabuf-import ! video/x-bayer, width=960, height=600, framerate=120/1, format=rggb ! tiovxisp sink_0::device=/dev/v4l-rpi-subdev0 sensor-name="SENSOR_SONY_IMX219_RPI" dcc-isp-file=/opt/imaging/ar0235/dcc_viss.bin sink_0::dcc-2a-file=/opt/imaging/ar0235/dcc_2a.bin format-msb=9 ! fakesink

Is there any parameter change required in gstreamer pipeline to pass ROI data through ISP ?
Is there any limitation with tiovxisp plugin ?

Thanks,
Jaimin

  • Hi Jaimin,

    You can use the multi-scaler plugin which can do cropping using the ISP HW accelerator: 

    root@am62axx-evm:~# gst-inspect-1.0 tiovxmultiscaler | grep roi
    roi-height : Height of the cropped region of interest
    roi-startx : Starting X coordinate of the cropped region of interest
    roi-starty : Starting Y coordinate of the cropped region of interest
    roi-width : Width of the cropped region of interest
    roi-height : Height of the cropped region of interest
    roi-startx : Starting X coordinate of the cropped region of interest
    roi-starty : Starting Y coordinate of the cropped region of interest
    roi-width : Width of the cropped region of interest

    Regards,

    Jianzhong

  • root@am62axx-evm:~# gst-inspect-1.0 tiovxmultiscaler | grep roi

    Hello Jianzhong,

    Thanks for reply.

    We want to support ROI feature through image sensor and want to pass this image in ISP. Is there any changes required in ISP configuration to process images with ROI (smaller resolutions)?

     

    So tiovxmuiltiscaler will not help us. Please let us know changes required in ISP command line parameters to pass smaller images (captured through ROI).



    Thanks.

  • Hello Jaimin,

    Is there any changes required in ISP configuration to process images with ROI (smaller resolutions)?

    The ISP doesn't care whether the image is a full image or an ROI. As long as you provide the right image size of the cropped image from the sensor, the ISP should be able to process it correctly.

    Regards,

    Jianzhong