Jump to content

GstInference/Metadatas/GstEmbeddingMeta: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 36: Line 36:


FaceNet also raises a signal containing GstClassificationMeta, for details on how to use this signal please check the [[GstInference/Example_Applications/Embedding | example applications]] section.
FaceNet also raises a signal containing GstClassificationMeta, for details on how to use this signal please check the [[GstInference/Example_Applications/Embedding | example applications]] section.
In the following section of code, we add the include like in point 2 and safe the GstDetectionMeta in the detect_meta variable like in point 3.
<syntaxhighlight lines=1 lang=C>
#include "gst/r2inference/gstinferencemeta.h"
static void
get_buffer(GstPadProbeInfo * info)
{
  GstBuffer *buffer;
  GstDetectionMeta *meta;
  buffer = gst_pad_probe_info_get_buffer (info);
  class_meta = (GstClassificationMeta *) gst_buffer_get_meta (buffer,
                  GST_DETECTION_META_API_TYPE);
}
</syntaxhighlight>


<noinclude>
<noinclude>
{{GstInference/Foot|Metadatas/GstClassificationMeta|Metadatas/GstDetectionMeta}}
{{GstInference/Foot|Metadatas/GstClassificationMeta|Metadatas/GstDetectionMeta}}
</noinclude>
</noinclude>
351

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.