GstAnalyticsTextMtd
This type of metadata stores UTF-8 text and its confidence level. It can be used for image/video-to-text and audio-to-text inference.
GstAnalyticsTextMtd only stores text-related information. Additional information such as a bounding box can be represented by other metadata types such as GstAnalyticsODMtd and associated with the text metadata using GstAnalyticsRelationMeta.
GstAnalyticsTextMtd
Handle containing data required to use gst_analytics_text_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 analytics-metadata identified by id is stored.
Since : 1.30
GstAnalytics.TextMtd
Handle containing data required to use gst_analytics_text_mtd APIs. This type is generally expected to be allocated on the stack.
Members
id
(Number)
–
Instance identifier.
meta
(GstAnalytics.RelationMeta)
–
Instance of GstAnalytics.RelationMeta where the analytics-metadata identified by id is stored.
Since : 1.30
GstAnalytics.TextMtd
Handle containing data required to use gst_analytics_text_mtd APIs. This type is generally expected to be allocated on the stack.
Members
id
(int)
–
Instance identifier.
meta
(GstAnalytics.RelationMeta)
–
Instance of GstAnalytics.RelationMeta where the analytics-metadata identified by id is stored.
Since : 1.30
Methods
gst_analytics_text_mtd_get_confidence
gfloat gst_analytics_text_mtd_get_confidence (const GstAnalyticsTextMtd * mtd)
Gets the confidence level of the text stored in mtd.
Parameters:
mtd
–
the confidence level
Since : 1.30
GstAnalytics.TextMtd.prototype.get_confidence
function GstAnalytics.TextMtd.prototype.get_confidence(): {
// javascript wrapper for 'gst_analytics_text_mtd_get_confidence'
}
Gets the confidence level of the text stored in mtd.
Parameters:
the confidence level
Since : 1.30
GstAnalytics.TextMtd.get_confidence
def GstAnalytics.TextMtd.get_confidence (self):
#python wrapper for 'gst_analytics_text_mtd_get_confidence'
Gets the confidence level of the text stored in mtd.
Parameters:
the confidence level
Since : 1.30
gst_analytics_text_mtd_get_length
gsize gst_analytics_text_mtd_get_length (const GstAnalyticsTextMtd * mtd)
Gets the length in bytes of the UTF-8 text stored in mtd, excluding the terminating nul byte.
Parameters:
mtd
–
the length of the text in bytes
Since : 1.30
GstAnalytics.TextMtd.prototype.get_length
function GstAnalytics.TextMtd.prototype.get_length(): {
// javascript wrapper for 'gst_analytics_text_mtd_get_length'
}
Gets the length in bytes of the UTF-8 text stored in mtd, excluding the terminating nul byte.
Parameters:
the length of the text in bytes
Since : 1.30
GstAnalytics.TextMtd.get_length
def GstAnalytics.TextMtd.get_length (self):
#python wrapper for 'gst_analytics_text_mtd_get_length'
Gets the length in bytes of the UTF-8 text stored in mtd, excluding the terminating nul byte.
Parameters:
the length of the text in bytes
Since : 1.30
gst_analytics_text_mtd_get_text
const gchar * gst_analytics_text_mtd_get_text (const GstAnalyticsTextMtd * mtd)
Gets the text stored in mtd.
Parameters:
mtd
–
the UTF-8 text stored in mtd
Since : 1.30
GstAnalytics.TextMtd.prototype.get_text
function GstAnalytics.TextMtd.prototype.get_text(): {
// javascript wrapper for 'gst_analytics_text_mtd_get_text'
}
Gets the text stored in mtd.
Parameters:
the UTF-8 text stored in mtd
Since : 1.30
GstAnalytics.TextMtd.get_text
def GstAnalytics.TextMtd.get_text (self):
#python wrapper for 'gst_analytics_text_mtd_get_text'
Gets the text stored in mtd.
Parameters:
the UTF-8 text stored in mtd
Since : 1.30
gst_analytics_text_mtd_get_timestamp
gboolean gst_analytics_text_mtd_get_timestamp (const GstAnalyticsTextMtd * mtd, GstClockTime * timestamp, GstClockTime * duration)
Gets the timestamp and duration of the recognized text.
Parameters:
mtd
–
timestamp
(
[out][optional])
–
return location for the timestamp
duration
(
[out][optional])
–
return location for the duration
Since : 1.30
GstAnalytics.TextMtd.prototype.get_timestamp
function GstAnalytics.TextMtd.prototype.get_timestamp(): {
// javascript wrapper for 'gst_analytics_text_mtd_get_timestamp'
}
Gets the timestamp and duration of the recognized text.
Parameters:
Returns a tuple made of:
Since : 1.30
GstAnalytics.TextMtd.get_timestamp
def GstAnalytics.TextMtd.get_timestamp (self):
#python wrapper for 'gst_analytics_text_mtd_get_timestamp'
Gets the timestamp and duration of the recognized text.
Parameters:
Returns a tuple made of:
Since : 1.30
gst_analytics_text_mtd_set_timestamp
gboolean gst_analytics_text_mtd_set_timestamp (GstAnalyticsTextMtd * mtd, GstClockTime timestamp, GstClockTime duration)
Sets the timestamp and duration of the recognized text.
timestamp is typically expressed in the same timeline as the PTS of the buffer carrying this metadata, but is not limited to that.
Parameters:
mtd
–
timestamp
–
timestamp of the text
duration
–
duration of the text
Since : 1.30
GstAnalytics.TextMtd.prototype.set_timestamp
function GstAnalytics.TextMtd.prototype.set_timestamp(timestamp: Number, duration: Number): {
// javascript wrapper for 'gst_analytics_text_mtd_set_timestamp'
}
Sets the timestamp and duration of the recognized text.
timestamp is typically expressed in the same timeline as the PTS of the buffer carrying this metadata, but is not limited to that.
Parameters:
timestamp of the text
duration of the text
Since : 1.30
GstAnalytics.TextMtd.set_timestamp
def GstAnalytics.TextMtd.set_timestamp (self, timestamp, duration):
#python wrapper for 'gst_analytics_text_mtd_set_timestamp'
Sets the timestamp and duration of the recognized text.
timestamp is typically expressed in the same timeline as the PTS of the buffer carrying this metadata, but is not limited to that.
Parameters:
timestamp of the text
duration of the text
Since : 1.30
Functions
gst_analytics_text_mtd_get_mtd_type
GstAnalyticsMtdType gst_analytics_text_mtd_get_mtd_type ()
Since : 1.30
GstAnalytics.TextMtd.prototype.get_mtd_type
function GstAnalytics.TextMtd.prototype.get_mtd_type(): {
// javascript wrapper for 'gst_analytics_text_mtd_get_mtd_type'
}
the Number of GstAnalytics.TextMtd
Since : 1.30
GstAnalytics.TextMtd.get_mtd_type
def GstAnalytics.TextMtd.get_mtd_type ():
#python wrapper for 'gst_analytics_text_mtd_get_mtd_type'
the int of GstAnalytics.TextMtd
Since : 1.30
The results of the search are