I noticed in detectnet-camera.cpp that there’s a bit of code to display confidence and description, but it’s commented out:
/*if( font != NULL )
{
char str[256];
sprintf(str, "%05.2f%% %s", confidence * 100.0f, net->GetClassDesc(img_class));
font->RenderOverlay((float4*)imgRGBA, (float4*)imgRGBA, camera->GetWidth(), camera->GetHeight(),
str, 10, 10, make_float4(255.0f, 255.0f, 255.0f, 255.0f));
}*/
Here is the error on TX2:
/home/nvidia/jetson-inference/detectnet-camera/detectnet-camera.cpp:316:59: error: ‘class detectNet’ has no member named ‘GetClassDesc’
sprintf(str, "%05.2f%% %s", confidence * 100.0f, net->GetClassDesc(img_clas
^
/home/nvidia/jetson-inference/detectnet-camera/detectnet-camera.cpp:316:72: error: ‘img_class’ was not declared in this scope
sprintf(str, "%05.2f%% %s", confidence * 100.0f, net->GetClassDesc(img_class))
I tried uncommenting it with no success. Are there any plans to get it working? … Thanks.