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.

AM62A7: AM62A7: tivxCaptureNode not work.

Part Number: AM62A7

Sensor: ox05B1s
Tool/software: AM62A processor SDK v11.01.07.05

I was using gstreamer to capture image:
Some setup I used.
"v4l2src device=/dev/dms io-mode=dmabuf-import ! "

"video/x-bayer,width=1944,height=1946,framerate=30/1,format=bggi10 ! "
"tiovxmemalloc ! " 
"tee name=dms_isp_tee "

And it works.

Now I am trying to use TIOVX pipeline to capture images from sensor OX05B1s. 

I am not sure how to create node to do this job. I have tried to create tivxCaptureNode, but I didn't see any captured data.

here is how i setup code:
"

tivx_capture_params_t capture_params;

tivx_capture_params_init(&capture_params);

// Configure for  camera (single instance)
capture_params.numInst = 1U;
capture_params.numCh = 1U;
capture_params.instId[0] = 0U; // CSI-RX instance 0 for DMS
capture_params.instCfg[0].enableCsiv2p0Support = static_cast<uint32_t>(false);
capture_params.instCfg[0].numDataLanes = 4U;
capture_params.instCfg[0].laneBandSpeed = TIVX_CAPTURE_LANE_BAND_SPEED_720_TO_800_MBPS;
 
capture_params.chVcNum[0] = 0U;
capture_params.chInstMap[0] = 0U;

auto _capture_config = vxCreateUserDataObject(_context,"tivx_capture_params_t",sizeof(tivx_capture_params_t),&capture_params);

if (vxGetStatus(reinterpret_cast<vx_reference>(_capture_config)) != VX_SUCCESS)
{
std::cerr << "[TiovxCameraApp] Failed to create capture config\n";
return -1;
}

 
_capture_image_array = vxCreateObjectArray(context,reinterpret_cast<vx_reference>(raw_image),
NUM_CAPTURE_BUFFERS);

if (vxGetStatus(reinterpret_cast<vx_reference>(_capture_image_array)) != VX_SUCCESS)
{
std::cerr << "[TiovxCameraApp] Failed to create capture image array\n";
return -1;
}
 
_capture_node = tivxCaptureNode(_graph, _capture_config, _capture_image_array);
"

My expctation is this part of code will capture image from sensor.


Could you please provide some guidance or documentation on how tivxCaptureNode works? I would like to understand the required setup and the parameters that need to be prepared before using it.

Any hints, examples, or references would be greatly appreciated.