GstAnalyticsClsMtd
This type of metadata holds classification, it is generally used in relationship with another metadata type to enhance its content. For example, it can enhance the classifcation of an object detection held by the GstAnalyticsODMtd metadata type.
GstAnalyticsClsMtd
Handle containing data required to use gst_analytics_cls_mtd APIs. This type is generally expected to be allocated on the stack.
Members
id
(guint)
–
Instance identifier.
meta
(GstAnalyticsRelationMeta *)
–
Instance of GstAnalyticsRelationMeta where the analysis-metadata identified by id is stored.
Since : 1.24
Methods
gst_analytics_cls_mtd_get_index_by_quark
gint gst_analytics_cls_mtd_get_index_by_quark (const GstAnalyticsClsMtd * handle, GQuark quark)
Parameters:
handle
–
Instance handle
quark
–
Quark of the class Get index of class represented by quark Returns: index of the class associated with quarks ( and label) or a negative value on failure.
Since : 1.24
gst_analytics_cls_mtd_get_length
gsize gst_analytics_cls_mtd_get_length (const GstAnalyticsClsMtd * handle)
Parameters:
handle
–
Instance handle Get number of classes Returns: Number of classes in this classification instance
Since : 1.24
gst_analytics_cls_mtd_get_level
gfloat gst_analytics_cls_mtd_get_level (const GstAnalyticsClsMtd * handle, gsize index)
Get confidence level for class at index
Parameters:
handle
–
instance handle
index
–
Object class index
confidence level for index, <0.0 if the call failed.
Since : 1.24
gst_analytics_cls_mtd_get_quark
GQuark gst_analytics_cls_mtd_get_quark (const GstAnalyticsClsMtd * handle, gsize index)
Parameters:
handle
–
Instance handle
index
–
index of the class Get quark of the class at index Returns: Quark of this class (label) associated with index
Since : 1.24
Functions
gst_analytics_cls_mtd_get_mtd_type
GstAnalyticsMtdType gst_analytics_cls_mtd_get_mtd_type ()
Get an id identifying GstAnalyticsMtd type.
opaque id of GstAnalyticsMtd type
Since : 1.24
The results of the search are