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.

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.

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.

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:

Returns –

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:

Returns (Number) –

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:

Returns (float) –

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:

Returns –

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:

Returns (Number) –

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:

Returns (int) –

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:

Returns ( [transfer: none]) –

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:

Returns (String) –

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:

Returns (str) –

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:

timestamp ( [out][optional]) –

return location for the timestamp

duration ( [out][optional]) –

return location for the duration

Returns –

TRUE on success, otherwise FALSE

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:

(Number ) –

true on success, otherwise false

timestamp (Number ) –

true on success, otherwise false

duration (Number ) –

true on success, otherwise false

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:

(bool ) –

True on success, otherwise False

timestamp (int ) –

True on success, otherwise False

duration (int ) –

True on success, otherwise False

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:

timestamp –

timestamp of the text

duration –

duration of the text

Returns –

TRUE on success, otherwise FALSE

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 (Number) –

timestamp of the text

duration (Number) –

duration of the text

Returns (Number) –

true on success, otherwise false

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 (int) –

timestamp of the text

duration (int) –

duration of the text

Returns (bool) –

True on success, otherwise False

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'
}
Returns (Number) –

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'
Returns (int) –

the int of GstAnalytics.TextMtd

Since : 1.30


The results of the search are