Obtaining MetaData from buffer in appsink from python

Josh Doe josh at joshdoe.com
Thu Jan 21 12:55:17 UTC 2021


On Fri, Jan 15, 2021 at 5:33 AM joseph <joseph.celi at jci.com> wrote:

> I have a Python appsink written in Python.  I'm able to get the buffers for
> each frame in the video.  It's not obvious how to obtain the MetaData that
> has been generated along the way.  My pipleline looks like the following
> ...
>
> gst_string = " filesrc location={} ! decodebin ! videoconvert ! gvadetect
> model={} device=CPU inference-interval=10  ! gvatrack
> tracking-type=short-term ! queue ! gvawatermark ! video/x-raw,format=BGR !
> appsink name=appsink emit-signals=True".format(input_file, pvb_model)
>
> I would like to be able to obtain things like the object type detected,
> object bounding boxes, tracker output (object id and corresponding bounding
> box).
>

Wouldn't you just use the Python bindings here? Haven't tried GVA myself,
but I should look into it.
https://github.com/openvinotoolkit/dlstreamer_gst/wiki/Python
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20210121/02205e6d/attachment.htm>


More information about the gstreamer-devel mailing list