• Jetson Nano
• DeepStream SDK 5.0.0
• JetPack 4.3
I’m attempting to customize my deepstream-app
to take inferenced objects and pass them on to an external application (a custom app I’ll develop later). Part of that is making sure I know which source the detected object came from. Thumbing through the deepstream_app_main.c
it looks like the best place to get at that data is in the all_bbox_generated()
callback function. I can get at the NvDsFrameMeta
and NvDsObjectMeta
, and although the documentation says NvDsFrameMeta::source_id
holds the camera ID, it’s always zero for me no matter which source the object came from.
Is there some other way to get at the [sourceX]
camera-id
property? I’ve looked at this thread and this thread and still didn’t really figure it out. Any help would be greatly appreciated.
My example sources:
[source0]
enable=1
type=4
uri=rtsp://mycamerauri
gpu-id=0
cudadec-memtype=0
camera-id=10
[source1]
enable=1
type=4
uri=rtsp://myothercamerauri
gpu-id=0
cudadec-memtype=0
camera-id=11
And just to test I’m printing the source id like this in the sample code whenever a person is detected:
g_print("source_id: %d\n", frame_meta->source_id);