Save image frame with bounding box in C application


Hello @yuweiw

I just tried

  if (!osd_src_pad )
    g_print ("Unable to get src pad\n");
  else
    gst_pad_add_probe (osd_src_pad , GST_PAD_PROBE_TYPE_BUFFER, pgie_src_pad_buffer_probe, (gpointer) obj_ctx_handle, NULL);
  gst_object_unref (osd_src_pad );

The cropped images are saved along with bounding boxes. However, the full-frame image is saved only once with all detected objects with bounding boxes.(frame-0)

I have not changed anything in pgie_src_pad_buffer_probe.

Should I change anything, please share any references so that they help new beginners like me can understand.

Thank You.