How to Hardcoded File IN for the app single cam? instead of capture node i want to hardcoded File as INPUT i don't know how to do .give me some example ?
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 Hardcoded File IN for the app single cam? instead of capture node i want to hardcoded File as INPUT i don't know how to do .give me some example ?
Hi Nikhil ,
1. I want to check both input 1st RAW image then YUV image .
2.I am using ti-processor-sdk-rtos-j721e-evm-07_01_00_11 version.
Hi Bijay,
You could refer the function read_test_image_raw() in single cam demo to read raw files.
All you have to do is to disconnect the connection between capture node and viss node.
If you see the demo, the viss node takes obj->raw as input which is obtained from capture node from the below line in the source code.
obj->raw = (tivx_raw_image)vxGetObjectArrayItem(obj->cap_frames[0], 0);
You could replace this with below lines and feed raw image from file instead of capture node
obj->raw = tivxCreateRawImage(obj->context, &(sensorParams.sensorInfo.raw_params));
if(status == VX_SUCCESS)
{
status = read_test_image_raw(NULL, obj->raw, 1);
}
Here I have used read_test_image_raw() just to see the output.. you could modify this function to point to your file.
Regards,
Nikhil