Hello ,
Presently I am able to save all the images which are given as input to the system using get_converted_mat() function. I am in need of only those images which have detected objects.
In gstdsexample.cpp file ,
gst_dsexample_transform_ip()
{
…
if (frame[i].num_obj_meta > 0 )
{
if (get_converted_mat (dsexample, surface, i, &rect_params,
scale_ratio, dsexample->video_info.width,
dsexample->video_info.height) != GST_FLOW_OK) {
goto error;
}
}
…
}
Using this if loop I am able to get only few , detected images . However not every detected images. Would be glad if you can give me some inputs on the same ?