GstAnalyticsRelationMeta
The GstAnalyticsRelationMeta is a GstMeta that can contain a large number of results from the analysis of a meta. Each result can be accessed by using its id, or more conviently, by using a GstAnalyticsMtd. A matrix of relationships between the various metadata is also defined and can be filled by the analysis processes.
GstAnalyticsMtd
Handle containing data required to use gst_analytics_mtd API. 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
GstAnalytics.Mtd
Handle containing data required to use gst_analytics_mtd API. 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 analysis-metadata identified by id is stored.
Since : 1.24
GstAnalytics.Mtd
Handle containing data required to use gst_analytics_mtd API. 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 analysis-metadata identified by id is stored.
Since : 1.24
Methods
gst_analytics_mtd_get_id
guint gst_analytics_mtd_get_id (const GstAnalyticsMtd * instance)
Get instance id
Parameters:
instance
–
Instance of GstAnalyticsMtd
Id of instance
Since : 1.24
GstAnalytics.Mtd.prototype.get_id
function GstAnalytics.Mtd.prototype.get_id(): {
// javascript wrapper for 'gst_analytics_mtd_get_id'
}
Get instance id
Parameters:
Instance of GstAnalytics.Mtd
Id of instance
Since : 1.24
GstAnalytics.Mtd.get_id
def GstAnalytics.Mtd.get_id (self):
#python wrapper for 'gst_analytics_mtd_get_id'
Get instance id
Parameters:
Instance of GstAnalytics.Mtd
Id of instance
Since : 1.24
gst_analytics_mtd_get_mtd_type
GstAnalyticsMtdType gst_analytics_mtd_get_mtd_type (const GstAnalyticsMtd * instance)
Parameters:
instance
–
Instance of GstAnalyticsMtd Get analysis result type.
opaque id of the type
Since : 1.24
GstAnalytics.Mtd.prototype.get_mtd_type
function GstAnalytics.Mtd.prototype.get_mtd_type(): {
// javascript wrapper for 'gst_analytics_mtd_get_mtd_type'
}
Parameters:
Instance of GstAnalytics.Mtd Get analysis result type.
opaque id of the type
Since : 1.24
GstAnalytics.Mtd.get_mtd_type
def GstAnalytics.Mtd.get_mtd_type (self):
#python wrapper for 'gst_analytics_mtd_get_mtd_type'
Parameters:
Instance of GstAnalytics.Mtd Get analysis result type.
opaque id of the type
Since : 1.24
gst_analytics_mtd_get_semantic_tag
gchar * gst_analytics_mtd_get_semantic_tag (const GstAnalyticsMtd * instance)
Get the semantic tag of the analytics metadata.
Parameters:
instance
–
Instance of GstAnalyticsMtd
A copy of the semantic tag string. Returns an empty string if no tag has been set. The caller must free the returned string with g_free when no longer needed.
Since : 1.30
GstAnalytics.Mtd.prototype.get_semantic_tag
function GstAnalytics.Mtd.prototype.get_semantic_tag(): {
// javascript wrapper for 'gst_analytics_mtd_get_semantic_tag'
}
Get the semantic tag of the analytics metadata.
Parameters:
Instance of GstAnalytics.Mtd
A copy of the semantic tag string. Returns an empty string if no tag has been set. The caller must free the returned string with GLib.prototype.free when no longer needed.
Since : 1.30
GstAnalytics.Mtd.get_semantic_tag
def GstAnalytics.Mtd.get_semantic_tag (self):
#python wrapper for 'gst_analytics_mtd_get_semantic_tag'
Get the semantic tag of the analytics metadata.
Parameters:
Instance of GstAnalytics.Mtd
Since : 1.30
gst_analytics_mtd_get_size
gsize gst_analytics_mtd_get_size (const GstAnalyticsMtd * instance)
Get instance size
Parameters:
instance
–
Instance of GstAnalyticsMtd
Size (in bytes) of this instance or 0 on failure.
Since : 1.24
GstAnalytics.Mtd.prototype.get_size
function GstAnalytics.Mtd.prototype.get_size(): {
// javascript wrapper for 'gst_analytics_mtd_get_size'
}
Get instance size
Parameters:
Instance of GstAnalytics.Mtd
Size (in bytes) of this instance or 0 on failure.
Since : 1.24
GstAnalytics.Mtd.get_size
def GstAnalytics.Mtd.get_size (self):
#python wrapper for 'gst_analytics_mtd_get_size'
Get instance size
Parameters:
Instance of GstAnalytics.Mtd
Size (in bytes) of this instance or 0 on failure.
Since : 1.24
gst_analytics_mtd_has_semantic_tag
gboolean gst_analytics_mtd_has_semantic_tag (const GstAnalyticsMtd * instance, const gchar * tag)
Check if the metadata's semantic tag matches tag. An empty or unset tag never matches.
TRUE if the metadata's semantic tag equals tag.
Since : 1.30
GstAnalytics.Mtd.prototype.has_semantic_tag
function GstAnalytics.Mtd.prototype.has_semantic_tag(tag: String): {
// javascript wrapper for 'gst_analytics_mtd_has_semantic_tag'
}
Check if the metadata's semantic tag matches tag. An empty or unset tag never matches.
Since : 1.30
GstAnalytics.Mtd.has_semantic_tag
def GstAnalytics.Mtd.has_semantic_tag (self, tag):
#python wrapper for 'gst_analytics_mtd_has_semantic_tag'
Check if the metadata's semantic tag matches tag. An empty or unset tag never matches.
Since : 1.30
gst_analytics_mtd_semantic_tag_has_prefix
gboolean gst_analytics_mtd_semantic_tag_has_prefix (const GstAnalyticsMtd * instance, const gchar * prefix)
Check if the metadata's semantic tag starts with prefix. An empty or unset tag never matches.
TRUE if the metadata's semantic tag starts with prefix.
Since : 1.30
GstAnalytics.Mtd.prototype.semantic_tag_has_prefix
function GstAnalytics.Mtd.prototype.semantic_tag_has_prefix(prefix: String): {
// javascript wrapper for 'gst_analytics_mtd_semantic_tag_has_prefix'
}
Check if the metadata's semantic tag starts with prefix. An empty or unset tag never matches.
Since : 1.30
GstAnalytics.Mtd.semantic_tag_has_prefix
def GstAnalytics.Mtd.semantic_tag_has_prefix (self, prefix):
#python wrapper for 'gst_analytics_mtd_semantic_tag_has_prefix'
Check if the metadata's semantic tag starts with prefix. An empty or unset tag never matches.
Since : 1.30
gst_analytics_mtd_set_semantic_tag
gboolean gst_analytics_mtd_set_semantic_tag (GstAnalyticsMtd * instance, const gchar * tag)
Set semantic tag on any analytics metadata. This gives context to understand the metadata. Pass NULL to clear the tag.
Parameters:
instance
–
Instance of GstAnalyticsMtd
tag
(
[nullable])
–
string representing a semantic type, or NULL to clear the tag
TRUE if the semantic tag was set successfully.
Since : 1.30
GstAnalytics.Mtd.prototype.set_semantic_tag
function GstAnalytics.Mtd.prototype.set_semantic_tag(tag: String): {
// javascript wrapper for 'gst_analytics_mtd_set_semantic_tag'
}
Set semantic tag on any analytics metadata. This gives context to understand the metadata. Pass null to clear the tag.
Parameters:
Instance of GstAnalytics.Mtd
Since : 1.30
GstAnalytics.Mtd.set_semantic_tag
def GstAnalytics.Mtd.set_semantic_tag (self, tag):
#python wrapper for 'gst_analytics_mtd_set_semantic_tag'
Set semantic tag on any analytics metadata. This gives context to understand the metadata. Pass None to clear the tag.
Parameters:
Instance of GstAnalytics.Mtd
Since : 1.30
Functions
gst_analytics_mtd_type_get_name
const gchar * gst_analytics_mtd_type_get_name (GstAnalyticsMtdType type)
Gets the string version of the name of this type of analytics data
Parameters:
type
–
The type of analytics data
the name
Since : 1.24
GstAnalytics.Mtd.prototype.type_get_name
function GstAnalytics.Mtd.prototype.type_get_name(type: Number): {
// javascript wrapper for 'gst_analytics_mtd_type_get_name'
}
Gets the string version of the name of this type of analytics data
Parameters:
The type of analytics data
the name
Since : 1.24
GstAnalyticsMtdImpl
This structure must be provided when registering a new type of Mtd. It must have a static lifetime (never be freed).
Members
name
(const char*)
–
The name of the metadata type
Since : 1.24
GstAnalytics.MtdImpl
This structure must be provided when registering a new type of Mtd. It must have a static lifetime (never be freed).
Members
name
(String)
–
The name of the metadata type
Since : 1.24
GstAnalytics.MtdImpl
This structure must be provided when registering a new type of Mtd. It must have a static lifetime (never be freed).
Members
name
(str)
–
The name of the metadata type
Since : 1.24
GstAnalyticsRelationMeta
An opaque GstMeta that can be used to hold various types of results from analysis processes.
The content should be accessed through the API.
Since : 1.24
GstAnalytics.RelationMeta
An opaque Gst.Meta that can be used to hold various types of results from analysis processes.
The content should be accessed through the API.
Since : 1.24
GstAnalytics.RelationMeta
An opaque Gst.Meta that can be used to hold various types of results from analysis processes.
The content should be accessed through the API.
Since : 1.24
Methods
gst_analytics_relation_meta_add_cls_mtd
gboolean gst_analytics_relation_meta_add_cls_mtd (GstAnalyticsRelationMeta * instance, gsize length, gfloat * confidence_levels, GQuark * class_quarks, GstAnalyticsClsMtd * cls_mtd)
Add analytic classification metadata to instance.
Parameters:
instance
–
Instance of GstAnalyticsRelationMeta where to add classification instance
length
–
length of confidence_levels
confidence_levels
(
[array length=length])
–
confidence levels
class_quarks
(
[array length=length])
–
labels of this classification. Order define index, quark, labels relation. This array need to exist as long has this classification meta exist.
cls_mtd
(
[out][not nullable])
–
Handle updated to newly added classification meta.
Added successfully
Since : 1.24
GstAnalytics.RelationMeta.prototype.add_cls_mtd
function GstAnalytics.RelationMeta.prototype.add_cls_mtd(length: Number, confidence_levels: [ Number ], class_quarks: [ GLib.Quark ]): {
// javascript wrapper for 'gst_analytics_relation_meta_add_cls_mtd'
}
Add analytic classification metadata to instance.
Parameters:
Instance of GstAnalytics.RelationMeta where to add classification instance
length of confidence_levels
confidence levels
labels of this classification. Order define index, quark, labels relation. This array need to exist as long has this classification meta exist.
Returns a tuple made of:
Added successfully
Added successfully
Since : 1.24
GstAnalytics.RelationMeta.add_cls_mtd
def GstAnalytics.RelationMeta.add_cls_mtd (self, length, confidence_levels, class_quarks):
#python wrapper for 'gst_analytics_relation_meta_add_cls_mtd'
Add analytic classification metadata to instance.
Parameters:
Instance of GstAnalytics.RelationMeta where to add classification instance
length of confidence_levels
confidence levels
labels of this classification. Order define index, quark, labels relation. This array need to exist as long has this classification meta exist.
Returns a tuple made of:
Added successfully
Added successfully
Since : 1.24
gst_analytics_relation_meta_add_group_mtd
gboolean gst_analytics_relation_meta_add_group_mtd (GstAnalyticsRelationMeta * instance, gsize pre_alloc_size, GstAnalyticsGroupMtd * group_mtd)
Add mtd grouping metadata to inscance. Use this API when the number of members need to be dynamic, otherwise prefer gst_analytics_relation_meta_add_group_mtd_with_size.
Parameters:
instance
–
Instance of GstAnalyticsRelationMeta where to add group_mtd instance
pre_alloc_size
–
Slots allocated for group members
group_mtd
(
[out][not nullable])
–
Handle to updated to newly added grouping mtd
TRUE is added successfully, otherwise FALSE.
Since : 1.30
GstAnalytics.RelationMeta.prototype.add_group_mtd
function GstAnalytics.RelationMeta.prototype.add_group_mtd(pre_alloc_size: Number): {
// javascript wrapper for 'gst_analytics_relation_meta_add_group_mtd'
}
Add mtd grouping metadata to inscance. Use this API when the number of members need to be dynamic, otherwise prefer gst_analytics_relation_meta_add_group_mtd_with_size.
Parameters:
Instance of GstAnalyticsRelationMeta where to add group_mtd instance
Slots allocated for group members
Returns a tuple made of:
TRUE is added successfully, otherwise FALSE.
TRUE is added successfully, otherwise FALSE.
Since : 1.30
GstAnalytics.RelationMeta.add_group_mtd
def GstAnalytics.RelationMeta.add_group_mtd (self, pre_alloc_size):
#python wrapper for 'gst_analytics_relation_meta_add_group_mtd'
Add mtd grouping metadata to inscance. Use this API when the number of members need to be dynamic, otherwise prefer gst_analytics_relation_meta_add_group_mtd_with_size.
Parameters:
Instance of GstAnalyticsRelationMeta where to add group_mtd instance
Slots allocated for group members
Returns a tuple made of:
TRUE is added successfully, otherwise FALSE.
TRUE is added successfully, otherwise FALSE.
Since : 1.30
gst_analytics_relation_meta_add_group_mtd_with_size
gboolean gst_analytics_relation_meta_add_group_mtd_with_size (GstAnalyticsRelationMeta * instance, gsize group_size, GstAnalyticsGroupMtd * group_mtd)
Add mtd grouping metadata to inscance. Use this API when the number of members is known when adding the group.
Parameters:
instance
–
Instance of GstAnalyticsRelationMeta where to add group_mtd instance
group_size
–
Slots reserved for group members
group_mtd
(
[out][not nullable])
–
Handle to updated to newly added grouping mtd
TRUE is added successfully, otherwise FALSE.
Since : 1.30
GstAnalytics.RelationMeta.prototype.add_group_mtd_with_size
function GstAnalytics.RelationMeta.prototype.add_group_mtd_with_size(group_size: Number): {
// javascript wrapper for 'gst_analytics_relation_meta_add_group_mtd_with_size'
}
Add mtd grouping metadata to inscance. Use this API when the number of members is known when adding the group.
Parameters:
Instance of GstAnalyticsRelationMeta where to add group_mtd instance
Slots reserved for group members
Returns a tuple made of:
TRUE is added successfully, otherwise FALSE.
TRUE is added successfully, otherwise FALSE.
Since : 1.30
GstAnalytics.RelationMeta.add_group_mtd_with_size
def GstAnalytics.RelationMeta.add_group_mtd_with_size (self, group_size):
#python wrapper for 'gst_analytics_relation_meta_add_group_mtd_with_size'
Add mtd grouping metadata to inscance. Use this API when the number of members is known when adding the group.
Parameters:
Instance of GstAnalyticsRelationMeta where to add group_mtd instance
Slots reserved for group members
Returns a tuple made of:
TRUE is added successfully, otherwise FALSE.
TRUE is added successfully, otherwise FALSE.
Since : 1.30
gst_analytics_relation_meta_add_keypoint_mtd
gboolean gst_analytics_relation_meta_add_keypoint_mtd (GstAnalyticsRelationMeta * instance, GstAnalyticsKeypointDimensions dimension, gint x, gint y, gint z, guint8 visibility_flags, gfloat confidence, GstAnalyticsKeypointMtd * keypoint_mtd)
Add individual keypoint metadata to instance. The point represents a location in Euclidean space.
Parameters:
instance
–
Instance of GstAnalyticsRelationMeta where to add keypoint
dimension
–
2D or 3D keypoint dimension
x
–
X coordinate, increases toward the right
y
–
Y coordinate, increases toward the bottom
z
–
Z coordinate, increases along the axis defined by a right-hand coordinate system with respect to X and Y, that is out of the XY plane. z=0 is on the XY plane. The unit of Z is the average of the X and Y units: (scale_x + scale_y) / 2.
visibility_flags
–
Visibility flags, a combination of GstAnalyticsKeypointVisibility values
confidence
–
Confidence score
keypoint_mtd
(
[out][not nullable])
–
Handle updated to newly added keypoint
TRUE if added successfully, FALSE otherwise
Since : 1.30
GstAnalytics.RelationMeta.prototype.add_keypoint_mtd
function GstAnalytics.RelationMeta.prototype.add_keypoint_mtd(dimension: GstAnalytics.KeypointDimensions, x: Number, y: Number, z: Number, visibility_flags: Number, confidence: Number): {
// javascript wrapper for 'gst_analytics_relation_meta_add_keypoint_mtd'
}
Add individual keypoint metadata to instance. The point represents a location in Euclidean space.
Parameters:
Instance of GstAnalytics.RelationMeta where to add keypoint
2D or 3D keypoint dimension
X coordinate, increases toward the right
Y coordinate, increases toward the bottom
Z coordinate, increases along the axis defined by a right-hand coordinate system with respect to X and Y, that is out of the XY plane. z=0 is on the XY plane. The unit of Z is the average of the X and Y units: (scale_x + scale_y) / 2.
Visibility flags, a combination of GstAnalytics.KeypointVisibility values
Confidence score
Returns a tuple made of:
TRUE if added successfully, FALSE otherwise
TRUE if added successfully, FALSE otherwise
Since : 1.30
GstAnalytics.RelationMeta.add_keypoint_mtd
def GstAnalytics.RelationMeta.add_keypoint_mtd (self, dimension, x, y, z, visibility_flags, confidence):
#python wrapper for 'gst_analytics_relation_meta_add_keypoint_mtd'
Add individual keypoint metadata to instance. The point represents a location in Euclidean space.
Parameters:
Instance of GstAnalytics.RelationMeta where to add keypoint
2D or 3D keypoint dimension
X coordinate, increases toward the right
Y coordinate, increases toward the bottom
Z coordinate, increases along the axis defined by a right-hand coordinate system with respect to X and Y, that is out of the XY plane. z=0 is on the XY plane. The unit of Z is the average of the X and Y units: (scale_x + scale_y) / 2.
Visibility flags, a combination of GstAnalytics.KeypointVisibility values
Confidence score
Returns a tuple made of:
TRUE if added successfully, FALSE otherwise
TRUE if added successfully, FALSE otherwise
Since : 1.30
gst_analytics_relation_meta_add_keypoints_group
gboolean gst_analytics_relation_meta_add_keypoints_group (GstAnalyticsRelationMeta * instance, const gchar * semantic_tag, GstAnalyticsKeypointDimensions dimension, gsize positions_len, const gint * positions, gsize keypoint_count, const gfloat * confidences, const guint8 * visibilities, gsize skeleton_pairs_len, const gint * skeleton_pairs, GstAnalyticsGroupMtd * group_mtd)
Creates a group of keypoints with optional skeleton structure. Individual keypoints are created as GstAnalyticsMtd. Skeleton links are represented as RELATE_TO relations between keypoints.
The skeleton_pairs array contains pairs of keypoint indices that are connected. For example, [0, 1, 1, 2, 2, 3] creates links: 0<->1, 1<->2, 2<->3.
See gst_analytics_relation_meta_add_keypoint_mtd for more details
Parameters:
instance
–
Instance of GstAnalyticsRelationMeta
semantic_tag
–
Semantic tag for the group (e.g., "hand-21-kp", "pose-17-kp")
dimension
–
2D or 3D keypoints
positions_len
–
length of positions array.
positions
(
[array length=positions_len])
–
Array of positions [x0, y0, [z0], x1, y1, [z1], ...]
keypoint_count
–
Number of keypoints
confidences
(
[array length=keypoint_count][nullable])
–
Array of confidence scores [c0, c1, ...] or NULL
visibilities
(
[array length=keypoint_count][nullable])
–
Array of GstAnalyticsKeypointVisibility flags [v0, v1, ...] or NULL
skeleton_pairs_len
–
Length of skeleton_pairs array (must be even, representing pairs of keypoint indices)
skeleton_pairs
(
[array length=skeleton_pairs_len][nullable])
–
Array of keypoint index pairs [kp1_idx, kp2_idx, kp1_idx, kp2_idx, ...] or NULL
group_mtd
(
[out][not nullable])
–
Handle to newly created group
TRUE if successful, FALSE otherwise
Since : 1.30
GstAnalytics.RelationMeta.prototype.add_keypoints_group
function GstAnalytics.RelationMeta.prototype.add_keypoints_group(semantic_tag: String, dimension: GstAnalytics.KeypointDimensions, positions_len: Number, positions: [ Number ], keypoint_count: Number, confidences: [ Number ], visibilities: [ Number ], skeleton_pairs_len: Number, skeleton_pairs: [ Number ]): {
// javascript wrapper for 'gst_analytics_relation_meta_add_keypoints_group'
}
Creates a group of keypoints with optional skeleton structure. Individual keypoints are created as GstAnalytics.Mtd. Skeleton links are represented as RELATE_TO relations between keypoints.
The skeleton_pairs array contains pairs of keypoint indices that are connected. For example, [0, 1, 1, 2, 2, 3] creates links: 0<->1, 1<->2, 2<->3.
See GstAnalytics.RelationMeta.prototype.add_keypoint_mtd for more details
Parameters:
Instance of GstAnalytics.RelationMeta
Semantic tag for the group (e.g., "hand-21-kp", "pose-17-kp")
2D or 3D keypoints
length of positions array.
Array of positions [x0, y0, [z0], x1, y1, [z1], ...]
Number of keypoints
Array of confidence scores [c0, c1, ...] or NULL
Array of GstAnalytics.KeypointVisibility flags [v0, v1, ...] or NULL
Length of skeleton_pairs array (must be even, representing pairs of keypoint indices)
Array of keypoint index pairs [kp1_idx, kp2_idx, kp1_idx, kp2_idx, ...] or NULL
Returns a tuple made of:
TRUE if successful, FALSE otherwise
TRUE if successful, FALSE otherwise
Since : 1.30
GstAnalytics.RelationMeta.add_keypoints_group
def GstAnalytics.RelationMeta.add_keypoints_group (self, semantic_tag, dimension, positions_len, positions, keypoint_count, confidences, visibilities, skeleton_pairs_len, skeleton_pairs):
#python wrapper for 'gst_analytics_relation_meta_add_keypoints_group'
Creates a group of keypoints with optional skeleton structure. Individual keypoints are created as GstAnalytics.Mtd. Skeleton links are represented as RELATE_TO relations between keypoints.
The skeleton_pairs array contains pairs of keypoint indices that are connected. For example, [0, 1, 1, 2, 2, 3] creates links: 0<->1, 1<->2, 2<->3.
See GstAnalytics.RelationMeta.add_keypoint_mtd for more details
Parameters:
Instance of GstAnalytics.RelationMeta
Semantic tag for the group (e.g., "hand-21-kp", "pose-17-kp")
2D or 3D keypoints
length of positions array.
Array of positions [x0, y0, [z0], x1, y1, [z1], ...]
Number of keypoints
Array of confidence scores [c0, c1, ...] or NULL
Array of GstAnalytics.KeypointVisibility flags [v0, v1, ...] or NULL
Length of skeleton_pairs array (must be even, representing pairs of keypoint indices)
Array of keypoint index pairs [kp1_idx, kp2_idx, kp1_idx, kp2_idx, ...] or NULL
Returns a tuple made of:
TRUE if successful, FALSE otherwise
TRUE if successful, FALSE otherwise
Since : 1.30
gst_analytics_relation_meta_add_mtd
gpointer gst_analytics_relation_meta_add_mtd (GstAnalyticsRelationMeta * meta, const GstAnalyticsMtdImpl * impl, gsize size, GstAnalyticsMtd * rlt_mtd)
Add a relatable metadata to meta. This method is meant to be used by new struct sub-classing GstAnalyticsRelatableMtd.
Parameters:
meta
–
Instance
impl
–
Implementation of relatable (#GstAnalyticsRelatableMtd)
size
–
Size required
rlt_mtd
(
[out][nullable])
–
Updated handle
A pointer to a memory area of size size where to put the data
Since : 1.24
gst_analytics_relation_meta_add_od_mtd
gboolean gst_analytics_relation_meta_add_od_mtd (GstAnalyticsRelationMeta * instance, GQuark type, gint x, gint y, gint w, gint h, gfloat loc_conf_lvl, GstAnalyticsODMtd * od_mtd)
Parameters:
instance
–
Instance of GstAnalyticsRelationMeta where to add classification instance
type
–
Quark of the object type
x
–
x component of bounding box upper-left corner
y
–
y component of bounding box upper-left corner
w
–
bounding box width
h
–
bounding box height
loc_conf_lvl
–
confidence level on the object location
od_mtd
(
[out][nullable])
–
Handle updated with newly added object detection meta. Add an object-detetion metadata to instance.
Added successfully
Since : 1.24
GstAnalytics.RelationMeta.prototype.add_od_mtd
function GstAnalytics.RelationMeta.prototype.add_od_mtd(type: GLib.Quark, x: Number, y: Number, w: Number, h: Number, loc_conf_lvl: Number): {
// javascript wrapper for 'gst_analytics_relation_meta_add_od_mtd'
}
Parameters:
Instance of GstAnalytics.RelationMeta where to add classification instance
Quark of the object type
x component of bounding box upper-left corner
y component of bounding box upper-left corner
bounding box width
bounding box height
confidence level on the object location
Returns a tuple made of:
Added successfully
Added successfully
Since : 1.24
GstAnalytics.RelationMeta.add_od_mtd
def GstAnalytics.RelationMeta.add_od_mtd (self, type, x, y, w, h, loc_conf_lvl):
#python wrapper for 'gst_analytics_relation_meta_add_od_mtd'
Parameters:
Instance of GstAnalytics.RelationMeta where to add classification instance
Quark of the object type
x component of bounding box upper-left corner
y component of bounding box upper-left corner
bounding box width
bounding box height
confidence level on the object location
Returns a tuple made of:
Added successfully
Added successfully
Since : 1.24
gst_analytics_relation_meta_add_one_cls_mtd
gboolean gst_analytics_relation_meta_add_one_cls_mtd (GstAnalyticsRelationMeta * instance, gfloat confidence_level, GQuark class_quark, GstAnalyticsClsMtd * cls_mtd)
Add analytic classification metadata to instance.
Parameters:
instance
–
Instance of GstAnalyticsRelationMeta where to add classification instance
confidence_level
–
confidence levels
class_quark
–
labels of this classification. Order define index, quark, labels relation. This array need to exist as long has this classification meta exist.
cls_mtd
(
[out][not nullable])
–
Handle updated to newly added classification meta.
Added successfully
Since : 1.24
GstAnalytics.RelationMeta.prototype.add_one_cls_mtd
function GstAnalytics.RelationMeta.prototype.add_one_cls_mtd(confidence_level: Number, class_quark: GLib.Quark): {
// javascript wrapper for 'gst_analytics_relation_meta_add_one_cls_mtd'
}
Add analytic classification metadata to instance.
Parameters:
Instance of GstAnalytics.RelationMeta where to add classification instance
confidence levels
labels of this classification. Order define index, quark, labels relation. This array need to exist as long has this classification meta exist.
Returns a tuple made of:
Added successfully
Added successfully
Since : 1.24
GstAnalytics.RelationMeta.add_one_cls_mtd
def GstAnalytics.RelationMeta.add_one_cls_mtd (self, confidence_level, class_quark):
#python wrapper for 'gst_analytics_relation_meta_add_one_cls_mtd'
Add analytic classification metadata to instance.
Parameters:
Instance of GstAnalytics.RelationMeta where to add classification instance
confidence levels
labels of this classification. Order define index, quark, labels relation. This array need to exist as long has this classification meta exist.
Returns a tuple made of:
Added successfully
Added successfully
Since : 1.24
gst_analytics_relation_meta_add_oriented_od_mtd
gboolean gst_analytics_relation_meta_add_oriented_od_mtd (GstAnalyticsRelationMeta * instance, GQuark type, gint x, gint y, gint w, gint h, gfloat r, gfloat loc_conf_lvl, GstAnalyticsODMtd * od_mtd)
Parameters:
instance
–
Instance of GstAnalyticsRelationMeta where to add classification instance
type
–
Quark of the object type
x
–
x component of bounding box upper-left corner (pre-rotation)
y
–
y component of bounding box upper-left corner (pre-rotation)
w
–
bounding box width
h
–
bounding box height
r
–
bounding box rotation in radians <0, 2xPI> with respect to the bounding box center (the rotation value is a clock-wise angle)
loc_conf_lvl
–
confidence level on the object location
od_mtd
(
[out][nullable])
–
Handle updated with newly added object detection meta. Add an object-detetion metadata to instance.
Added successfully
Since : 1.26
GstAnalytics.RelationMeta.prototype.add_oriented_od_mtd
function GstAnalytics.RelationMeta.prototype.add_oriented_od_mtd(type: GLib.Quark, x: Number, y: Number, w: Number, h: Number, r: Number, loc_conf_lvl: Number): {
// javascript wrapper for 'gst_analytics_relation_meta_add_oriented_od_mtd'
}
Parameters:
Instance of GstAnalytics.RelationMeta where to add classification instance
Quark of the object type
x component of bounding box upper-left corner (pre-rotation)
y component of bounding box upper-left corner (pre-rotation)
bounding box width
bounding box height
bounding box rotation in radians <0, 2xPI> with respect to the bounding box center (the rotation value is a clock-wise angle)
confidence level on the object location
Returns a tuple made of:
Added successfully
Added successfully
Since : 1.26
GstAnalytics.RelationMeta.add_oriented_od_mtd
def GstAnalytics.RelationMeta.add_oriented_od_mtd (self, type, x, y, w, h, r, loc_conf_lvl):
#python wrapper for 'gst_analytics_relation_meta_add_oriented_od_mtd'
Parameters:
Instance of GstAnalytics.RelationMeta where to add classification instance
Quark of the object type
x component of bounding box upper-left corner (pre-rotation)
y component of bounding box upper-left corner (pre-rotation)
bounding box width
bounding box height
bounding box rotation in radians <0, 2xPI> with respect to the bounding box center (the rotation value is a clock-wise angle)
confidence level on the object location
Returns a tuple made of:
Added successfully
Added successfully
Since : 1.26
gst_analytics_relation_meta_add_segmentation_mtd
gboolean gst_analytics_relation_meta_add_segmentation_mtd (GstAnalyticsRelationMeta * instance, GstBuffer * buffer, GstSegmentationType segmentation_type, gsize region_count, guint * region_ids, gint masks_loc_x, gint masks_loc_y, guint masks_loc_w, guint masks_loc_h, GstAnalyticsSegmentationMtd * segmentation_mtd)
Add analytics segmentation metadata to instance. The rectangle (@masks_loc_x, mask_loc_y, mask_loc_w, mask_loc_h) define a area of the image that correspond to the segmentation masks stored in buffer. For example if the segmentation masks stored in buffer describe the segmented regions for the entire image the rectangular area will be (@masks_loc_x = 0, masks_loc_y = 0, masks_loc_w = image_width, masks_loc_h = image_height).
Parameters:
instance
–
Instance of GstAnalyticsRelationMeta where to add segmentation instance.
buffer
(
[in][transfer: full])
–
Buffer containing segmentation masks. buffer must have a GstVideoMeta attached
segmentation_type
–
region_count
–
region_ids
(
[in][array length=region_count])
–
Arrays of region ids present in the mask.
masks_loc_x
–
masks_loc_y
–
masks_loc_w
–
masks_loc_h
–
segmentation_mtd
(
[out][not nullable])
–
Handle update with newly added segmentation meta.
TRUE if added successfully, otherwise FALSE
Since : 1.26
GstAnalytics.RelationMeta.prototype.add_segmentation_mtd
function GstAnalytics.RelationMeta.prototype.add_segmentation_mtd(buffer: Gst.Buffer, segmentation_type: GstAnalytics.SegmentationType, region_count: Number, region_ids: [ Number ], masks_loc_x: Number, masks_loc_y: Number, masks_loc_w: Number, masks_loc_h: Number): {
// javascript wrapper for 'gst_analytics_relation_meta_add_segmentation_mtd'
}
Add analytics segmentation metadata to instance. The rectangle (@masks_loc_x, mask_loc_y, mask_loc_w, mask_loc_h) define a area of the image that correspond to the segmentation masks stored in buffer. For example if the segmentation masks stored in buffer describe the segmented regions for the entire image the rectangular area will be (@masks_loc_x = 0, masks_loc_y = 0, masks_loc_w = image_width, masks_loc_h = image_height).
Parameters:
Instance of GstAnalytics.RelationMeta where to add segmentation instance.
Buffer containing segmentation masks. buffer must have a GstVideo.VideoMeta attached
Arrays of region ids present in the mask.
Returns a tuple made of:
TRUE if added successfully, otherwise FALSE
TRUE if added successfully, otherwise FALSE
Since : 1.26
GstAnalytics.RelationMeta.add_segmentation_mtd
def GstAnalytics.RelationMeta.add_segmentation_mtd (self, buffer, segmentation_type, region_count, region_ids, masks_loc_x, masks_loc_y, masks_loc_w, masks_loc_h):
#python wrapper for 'gst_analytics_relation_meta_add_segmentation_mtd'
Add analytics segmentation metadata to instance. The rectangle (@masks_loc_x, mask_loc_y, mask_loc_w, mask_loc_h) define a area of the image that correspond to the segmentation masks stored in buffer. For example if the segmentation masks stored in buffer describe the segmented regions for the entire image the rectangular area will be (@masks_loc_x = 0, masks_loc_y = 0, masks_loc_w = image_width, masks_loc_h = image_height).
Parameters:
Instance of GstAnalytics.RelationMeta where to add segmentation instance.
Buffer containing segmentation masks. buffer must have a GstVideo.VideoMeta attached
Arrays of region ids present in the mask.
Returns a tuple made of:
TRUE if added successfully, otherwise FALSE
TRUE if added successfully, otherwise FALSE
Since : 1.26
gst_analytics_relation_meta_add_tensor_mtd
gboolean gst_analytics_relation_meta_add_tensor_mtd (GstAnalyticsRelationMeta * instance, gsize num_dims, GstAnalyticsTensorMtd * tensor_mtd)
Add a new GstAnalyticsTensorMtd holding a GstTensor to instance. The GstTensor needs to be filled.
Parameters:
instance
–
Instance
num_dims
–
The number of dimensions in the tensor
tensor_mtd
(
[out][nullable])
–
Handle update with newly added tensor mtd. Add tensor mtd to instance.
Added successfully
Since : 1.28
GstAnalytics.RelationMeta.prototype.add_tensor_mtd
function GstAnalytics.RelationMeta.prototype.add_tensor_mtd(num_dims: Number): {
// javascript wrapper for 'gst_analytics_relation_meta_add_tensor_mtd'
}
Add a new GstAnalytics.TensorMtd holding a GstAnalytics.Tensor to instance. The GstAnalytics.Tensor needs to be filled.
Parameters:
Instance
The number of dimensions in the tensor
Returns a tuple made of:
Added successfully
Added successfully
Since : 1.28
GstAnalytics.RelationMeta.add_tensor_mtd
def GstAnalytics.RelationMeta.add_tensor_mtd (self, num_dims):
#python wrapper for 'gst_analytics_relation_meta_add_tensor_mtd'
Add a new GstAnalytics.TensorMtd holding a GstAnalytics.Tensor to instance. The GstAnalytics.Tensor needs to be filled.
Parameters:
Instance
The number of dimensions in the tensor
Returns a tuple made of:
Added successfully
Added successfully
Since : 1.28
gst_analytics_relation_meta_add_tensor_mtd_simple
gboolean gst_analytics_relation_meta_add_tensor_mtd_simple (GstAnalyticsRelationMeta * instance, GQuark id, GstTensorDataType data_type, GstBuffer * data, GstTensorDimOrder dims_order, gsize num_dims, gsize * dims, GstAnalyticsTensorMtd * tensor_mtd)
Add a new GstAnalyticsTensorMtd holding a GstTensor to instance.
Parameters:
instance
–
Instance
id
–
semantically identify the contents of the tensor
data_type
–
GstTensorDataType of tensor data
data
(
[transfer: full])
–
GstBuffer holding tensor data
dims_order
–
Indicate tensor dimension indexing order
num_dims
–
number of tensor dimensions
dims
(
[array length=num_dims])
–
size of tensor in each dimension. A value of 0 means the dimension is dynamic.
tensor_mtd
(
[out][nullable])
–
Handle update with newly added tensor mtd. Add tensor mtd to instance.
Added successfully
Since : 1.28
GstAnalytics.RelationMeta.prototype.add_tensor_mtd_simple
function GstAnalytics.RelationMeta.prototype.add_tensor_mtd_simple(id: GLib.Quark, data_type: GstAnalytics.TensorDataType, data: Gst.Buffer, dims_order: GstAnalytics.TensorDimOrder, num_dims: Number, dims: [ Number ]): {
// javascript wrapper for 'gst_analytics_relation_meta_add_tensor_mtd_simple'
}
Add a new GstAnalytics.TensorMtd holding a GstAnalytics.Tensor to instance.
Parameters:
Instance
semantically identify the contents of the tensor
GstAnalytics.TensorDataType of tensor data
Gst.Buffer holding tensor data
Indicate tensor dimension indexing order
number of tensor dimensions
size of tensor in each dimension. A value of 0 means the dimension is dynamic.
Returns a tuple made of:
Added successfully
Added successfully
Since : 1.28
GstAnalytics.RelationMeta.add_tensor_mtd_simple
def GstAnalytics.RelationMeta.add_tensor_mtd_simple (self, id, data_type, data, dims_order, num_dims, dims):
#python wrapper for 'gst_analytics_relation_meta_add_tensor_mtd_simple'
Add a new GstAnalytics.TensorMtd holding a GstAnalytics.Tensor to instance.
Parameters:
Instance
semantically identify the contents of the tensor
GstAnalytics.TensorDataType of tensor data
Gst.Buffer holding tensor data
Indicate tensor dimension indexing order
number of tensor dimensions
size of tensor in each dimension. A value of 0 means the dimension is dynamic.
Returns a tuple made of:
Added successfully
Added successfully
Since : 1.28
gst_analytics_relation_meta_add_tracking_mtd
gboolean gst_analytics_relation_meta_add_tracking_mtd (GstAnalyticsRelationMeta * instance, guint64 tracking_id, GstClockTime tracking_first_seen, GstAnalyticsTrackingMtd * trk_mtd)
Parameters:
instance
–
Instance of GstAnalyticsRelationMeta where to add tracking mtd
tracking_id
–
Tracking id
tracking_first_seen
–
Timestamp of first time the object was observed.
trk_mtd
(
[out][not nullable])
–
Handle updated with newly added tracking meta. Add an analytic tracking metadata to instance. Returns: Added successfully
Since : 1.24
GstAnalytics.RelationMeta.prototype.add_tracking_mtd
function GstAnalytics.RelationMeta.prototype.add_tracking_mtd(tracking_id: Number, tracking_first_seen: Number): {
// javascript wrapper for 'gst_analytics_relation_meta_add_tracking_mtd'
}
Parameters:
Instance of GstAnalyticsRelationMeta where to add tracking mtd
Tracking id
Timestamp of first time the object was observed.
Returns a tuple made of:
Since : 1.24
GstAnalytics.RelationMeta.add_tracking_mtd
def GstAnalytics.RelationMeta.add_tracking_mtd (self, tracking_id, tracking_first_seen):
#python wrapper for 'gst_analytics_relation_meta_add_tracking_mtd'
Parameters:
Instance of GstAnalyticsRelationMeta where to add tracking mtd
Tracking id
Timestamp of first time the object was observed.
Returns a tuple made of:
Since : 1.24
gst_analytics_relation_meta_exist
gboolean gst_analytics_relation_meta_exist (const GstAnalyticsRelationMeta * rmeta, guint an_meta_first_id, guint an_meta_second_id, gint max_relation_span, GstAnalyticsRelTypes cond_types, GArray ** relations_path)
Verify existence of relation(s) between an_meta_first_d and an_meta_second_id according to relation condition cond_types. It optionally also return a shortest path of relations ( compliant with cond_types) between an_meta_first_id and an_meta_second_id.
Parameters:
rmeta
(
[transfer: none])
–
a GstAnalyticsRelationMeta describing analysis-meta relation
an_meta_first_id
–
First analysis-meta
an_meta_second_id
–
Second analysis-meta
max_relation_span
–
Maximum number of relation between an_meta_first_id and an_meta_second_id. A value of 1 mean only only consider direct relation.
cond_types
–
condition on relation types.
relations_path
–
(transfer full)(nullable)(inout)(array) (element-type gint): If not NULL this list will be filled with relation path between an_meta_first_id and an_meta_second_id. List value should be access with GSList API. Use GPOINTER_TO_INT(iter->data) where iter is a GSList element to get analysis-meta id on the relation path. Free this list with g_slist_free (@relations_path) after using.
TRUE if a relation between exit between an_meta_first_id and an_meta_second_id, otherwise FALSE.
Since : 1.24
GstAnalytics.RelationMeta.prototype.exist
function GstAnalytics.RelationMeta.prototype.exist(an_meta_first_id: Number, an_meta_second_id: Number, max_relation_span: Number, cond_types: GstAnalytics.RelTypes, relations_path: [ Number ]): {
// javascript wrapper for 'gst_analytics_relation_meta_exist'
}
Verify existence of relation(s) between an_meta_first_d and an_meta_second_id according to relation condition cond_types. It optionally also return a shortest path of relations ( compliant with cond_types) between an_meta_first_id and an_meta_second_id.
Parameters:
a GstAnalytics.RelationMeta describing analysis-meta relation
First analysis-meta
Second analysis-meta
Maximum number of relation between an_meta_first_id and an_meta_second_id. A value of 1 mean only only consider direct relation.
condition on relation types.
(transfer full)(nullable)(inout)(array) (element-type gint): If not NULL this list will be filled with relation path between an_meta_first_id and an_meta_second_id. List value should be access with GSList API. Use GPOINTER_TO_INT(iter->data) where iter is a GSList element to get analysis-meta id on the relation path. Free this list with g_slist_free (@relations_path) after using.
Returns a tuple made of:
TRUE if a relation between exit between an_meta_first_id and an_meta_second_id, otherwise FALSE.
TRUE if a relation between exit between an_meta_first_id and an_meta_second_id, otherwise FALSE.
Since : 1.24
GstAnalytics.RelationMeta.exist
def GstAnalytics.RelationMeta.exist (self, an_meta_first_id, an_meta_second_id, max_relation_span, cond_types, relations_path):
#python wrapper for 'gst_analytics_relation_meta_exist'
Verify existence of relation(s) between an_meta_first_d and an_meta_second_id according to relation condition cond_types. It optionally also return a shortest path of relations ( compliant with cond_types) between an_meta_first_id and an_meta_second_id.
Parameters:
a GstAnalytics.RelationMeta describing analysis-meta relation
First analysis-meta
Second analysis-meta
Maximum number of relation between an_meta_first_id and an_meta_second_id. A value of 1 mean only only consider direct relation.
condition on relation types.
(transfer full)(nullable)(inout)(array) (element-type gint): If not NULL this list will be filled with relation path between an_meta_first_id and an_meta_second_id. List value should be access with GSList API. Use GPOINTER_TO_INT(iter->data) where iter is a GSList element to get analysis-meta id on the relation path. Free this list with g_slist_free (@relations_path) after using.
Returns a tuple made of:
TRUE if a relation between exit between an_meta_first_id and an_meta_second_id, otherwise FALSE.
TRUE if a relation between exit between an_meta_first_id and an_meta_second_id, otherwise FALSE.
Since : 1.24
gst_analytics_relation_meta_get_cls_mtd
gboolean gst_analytics_relation_meta_get_cls_mtd (GstAnalyticsRelationMeta * meta, guint an_meta_id, GstAnalyticsClsMtd * rlt)
Fill rlt if a analytics-meta with id == an_meta_id exist in meta instance, otherwise this method return FALSE and rlt is invalid.
Parameters:
meta
–
Instance of GstAnalyticsRelationMeta
an_meta_id
–
Id of GstAnalyticsClsMtd instance to retrieve
rlt
(
[out][not nullable])
–
Will be filled with relatable meta
TRUE if successful.
Since : 1.24
GstAnalytics.RelationMeta.prototype.get_cls_mtd
function GstAnalytics.RelationMeta.prototype.get_cls_mtd(an_meta_id: Number): {
// javascript wrapper for 'gst_analytics_relation_meta_get_cls_mtd'
}
Fill rlt if a analytics-meta with id == an_meta_id exist in meta instance, otherwise this method return FALSE and rlt is invalid.
Returns a tuple made of:
TRUE if successful.
TRUE if successful.
Since : 1.24
GstAnalytics.RelationMeta.get_cls_mtd
def GstAnalytics.RelationMeta.get_cls_mtd (self, an_meta_id):
#python wrapper for 'gst_analytics_relation_meta_get_cls_mtd'
Fill rlt if a analytics-meta with id == an_meta_id exist in meta instance, otherwise this method return FALSE and rlt is invalid.
Returns a tuple made of:
TRUE if successful.
TRUE if successful.
Since : 1.24
gst_analytics_relation_meta_get_group_mtd
gboolean gst_analytics_relation_meta_get_group_mtd (GstAnalyticsRelationMeta * meta, guint an_meta_id, GstAnalyticsGroupMtd * rlt)
Retrieve group metadata instance from meta.
Parameters:
meta
–
Instance of GstAnalyticsRelationMeta
an_meta_id
–
Id of GstAnalyticsGroupMtd instance to retrieve
rlt
(
[out][not nullable])
–
Will be filled with group mtd
TRUE if successful, FALSE otherwise.
Since : 1.30
GstAnalytics.RelationMeta.prototype.get_group_mtd
function GstAnalytics.RelationMeta.prototype.get_group_mtd(an_meta_id: Number): {
// javascript wrapper for 'gst_analytics_relation_meta_get_group_mtd'
}
Retrieve group metadata instance from meta.
Returns a tuple made of:
TRUE if successful, FALSE otherwise.
TRUE if successful, FALSE otherwise.
Since : 1.30
GstAnalytics.RelationMeta.get_group_mtd
def GstAnalytics.RelationMeta.get_group_mtd (self, an_meta_id):
#python wrapper for 'gst_analytics_relation_meta_get_group_mtd'
Retrieve group metadata instance from meta.
Returns a tuple made of:
TRUE if successful, FALSE otherwise.
TRUE if successful, FALSE otherwise.
Since : 1.30
gst_analytics_relation_meta_get_keypoint_mtd
gboolean gst_analytics_relation_meta_get_keypoint_mtd (GstAnalyticsRelationMeta * meta, guint an_meta_id, GstAnalyticsKeypointMtd * rlt)
Retrieve keypoint metadata instance from meta.
Parameters:
meta
–
Instance of GstAnalyticsRelationMeta
an_meta_id
–
Id of GstAnalyticsKeypointMtd instance to retrieve
rlt
(
[out][not nullable])
–
Will be filled with keypoint mtd
TRUE if successful, FALSE otherwise
Since : 1.30
GstAnalytics.RelationMeta.prototype.get_keypoint_mtd
function GstAnalytics.RelationMeta.prototype.get_keypoint_mtd(an_meta_id: Number): {
// javascript wrapper for 'gst_analytics_relation_meta_get_keypoint_mtd'
}
Retrieve keypoint metadata instance from meta.
Parameters:
Instance of GstAnalytics.RelationMeta
Id of GstAnalytics.KeypointMtd instance to retrieve
Returns a tuple made of:
TRUE if successful, FALSE otherwise
TRUE if successful, FALSE otherwise
Since : 1.30
GstAnalytics.RelationMeta.get_keypoint_mtd
def GstAnalytics.RelationMeta.get_keypoint_mtd (self, an_meta_id):
#python wrapper for 'gst_analytics_relation_meta_get_keypoint_mtd'
Retrieve keypoint metadata instance from meta.
Parameters:
Instance of GstAnalytics.RelationMeta
Id of GstAnalytics.KeypointMtd instance to retrieve
Returns a tuple made of:
TRUE if successful, FALSE otherwise
TRUE if successful, FALSE otherwise
Since : 1.30
gst_analytics_relation_meta_get_mtd
gboolean gst_analytics_relation_meta_get_mtd (GstAnalyticsRelationMeta * meta, guint an_meta_id, GstAnalyticsMtdType type, GstAnalyticsMtd * rlt)
Fill rlt if a analytics-meta with id == an_meta_id exist in meta instance, otherwise this method return FALSE and rlt is invalid.
Parameters:
meta
–
Instance of GstAnalyticsRelationMeta
an_meta_id
–
Id of GstAnalyticsMtd instance to retrieve
type
–
Filter on a specific type of analysis, use GST_ANALYTICS_MTD_TYPE_ANY to match any type
rlt
(
[out][not nullable])
–
Will be filled with relatable meta
TRUE if successful.
Since : 1.24
GstAnalytics.RelationMeta.prototype.get_mtd
function GstAnalytics.RelationMeta.prototype.get_mtd(an_meta_id: Number, type: Number): {
// javascript wrapper for 'gst_analytics_relation_meta_get_mtd'
}
Fill rlt if a analytics-meta with id == an_meta_id exist in meta instance, otherwise this method return FALSE and rlt is invalid.
Parameters:
Instance of GstAnalyticsRelationMeta
Id of GstAnalyticsMtd instance to retrieve
Filter on a specific type of analysis, use GstAnalytics.MTD_TYPE_ANY to match any type
Returns a tuple made of:
TRUE if successful.
TRUE if successful.
Since : 1.24
GstAnalytics.RelationMeta.get_mtd
def GstAnalytics.RelationMeta.get_mtd (self, an_meta_id, type):
#python wrapper for 'gst_analytics_relation_meta_get_mtd'
Fill rlt if a analytics-meta with id == an_meta_id exist in meta instance, otherwise this method return FALSE and rlt is invalid.
Parameters:
Instance of GstAnalyticsRelationMeta
Id of GstAnalyticsMtd instance to retrieve
Filter on a specific type of analysis, use GstAnalytics.MTD_TYPE_ANY to match any type
Returns a tuple made of:
TRUE if successful.
TRUE if successful.
Since : 1.24
gst_analytics_relation_meta_get_mtd_data
gpointer gst_analytics_relation_meta_get_mtd_data (const GstAnalyticsRelationMeta * meta, guint an_meta_id)
Parameters:
meta
–
Instance of GstAnalyticsRelationMeta
an_meta_id
–
Id of GstAnalyticsMtd instance to retrieve
Analytics data pointer
Since : 1.24
gst_analytics_relation_meta_get_od_mtd
gboolean gst_analytics_relation_meta_get_od_mtd (GstAnalyticsRelationMeta * meta, guint an_meta_id, GstAnalyticsODMtd * rlt)
Fill rlt if a analytics-meta with id == an_meta_id exist in meta instance, otherwise this method return FALSE and rlt is invalid.
Parameters:
meta
–
Instance of GstAnalyticsRelationMeta
an_meta_id
–
Id of GstAnalyticsODMtd instance to retrieve
rlt
(
[out][not nullable])
–
Will be filled with relatable meta
TRUE if successful.
Since : 1.24
GstAnalytics.RelationMeta.prototype.get_od_mtd
function GstAnalytics.RelationMeta.prototype.get_od_mtd(an_meta_id: Number): {
// javascript wrapper for 'gst_analytics_relation_meta_get_od_mtd'
}
Fill rlt if a analytics-meta with id == an_meta_id exist in meta instance, otherwise this method return FALSE and rlt is invalid.
Returns a tuple made of:
TRUE if successful.
TRUE if successful.
Since : 1.24
GstAnalytics.RelationMeta.get_od_mtd
def GstAnalytics.RelationMeta.get_od_mtd (self, an_meta_id):
#python wrapper for 'gst_analytics_relation_meta_get_od_mtd'
Fill rlt if a analytics-meta with id == an_meta_id exist in meta instance, otherwise this method return FALSE and rlt is invalid.
Returns a tuple made of:
TRUE if successful.
TRUE if successful.
Since : 1.24
gst_analytics_relation_meta_get_relation
GstAnalyticsRelTypes gst_analytics_relation_meta_get_relation (const GstAnalyticsRelationMeta * meta, guint an_meta_first_id, guint an_meta_second_id)
Get relations between first and second analysis-meta. Ids (@an_meta_first_id and an_meta_second_id) must be from a call to gst_analytics_mtd_get_id (handle).
Parameters:
meta
(
[transfer: none])
–
an_meta_first_id
–
Id of first analysis-meta
an_meta_second_id
–
Id of second analysis-meta
relation description between first and second analysis-meta.
Since : 1.24
GstAnalytics.RelationMeta.prototype.get_relation
function GstAnalytics.RelationMeta.prototype.get_relation(an_meta_first_id: Number, an_meta_second_id: Number): {
// javascript wrapper for 'gst_analytics_relation_meta_get_relation'
}
Get relations between first and second analysis-meta. Ids (@an_meta_first_id and an_meta_second_id) must be from a call to gst_analytics_mtd_get_id (handle).
Parameters:
Id of first analysis-meta
Id of second analysis-meta
relation description between first and second analysis-meta.
Since : 1.24
GstAnalytics.RelationMeta.get_relation
def GstAnalytics.RelationMeta.get_relation (self, an_meta_first_id, an_meta_second_id):
#python wrapper for 'gst_analytics_relation_meta_get_relation'
Get relations between first and second analysis-meta. Ids (@an_meta_first_id and an_meta_second_id) must be from a call to gst_analytics_mtd_get_id (handle).
Parameters:
Id of first analysis-meta
Id of second analysis-meta
relation description between first and second analysis-meta.
Since : 1.24
gst_analytics_relation_meta_get_segmentation_mtd
gboolean gst_analytics_relation_meta_get_segmentation_mtd (GstAnalyticsRelationMeta * meta, guint an_meta_id, GstAnalyticsSegmentationMtd * rlt)
Fill rlt if a analytics-meta with id == an_meta_id exist in meta instance, otherwise this method return FALSE and rlt is invalid.
Parameters:
meta
–
Instance of GstAnalyticsRelationMeta
an_meta_id
–
Id of GstAnalyticsSegmentationMtd instance to retrieve
rlt
(
[out][not nullable])
–
Will be filled with relatable meta
TRUE if successful.
Since : 1.26
GstAnalytics.RelationMeta.prototype.get_segmentation_mtd
function GstAnalytics.RelationMeta.prototype.get_segmentation_mtd(an_meta_id: Number): {
// javascript wrapper for 'gst_analytics_relation_meta_get_segmentation_mtd'
}
Fill rlt if a analytics-meta with id == an_meta_id exist in meta instance, otherwise this method return FALSE and rlt is invalid.
Parameters:
Instance of GstAnalytics.RelationMeta
Id of GstAnalytics.SegmentationMtd instance to retrieve
Returns a tuple made of:
TRUE if successful.
TRUE if successful.
Since : 1.26
GstAnalytics.RelationMeta.get_segmentation_mtd
def GstAnalytics.RelationMeta.get_segmentation_mtd (self, an_meta_id):
#python wrapper for 'gst_analytics_relation_meta_get_segmentation_mtd'
Fill rlt if a analytics-meta with id == an_meta_id exist in meta instance, otherwise this method return FALSE and rlt is invalid.
Parameters:
Instance of GstAnalytics.RelationMeta
Id of GstAnalytics.SegmentationMtd instance to retrieve
Returns a tuple made of:
TRUE if successful.
TRUE if successful.
Since : 1.26
gst_analytics_relation_meta_get_tensor_mtd
gboolean gst_analytics_relation_meta_get_tensor_mtd (GstAnalyticsRelationMeta * meta, guint an_meta_id, GstAnalyticsTensorMtd * rlt)
Fill rlt if a analytics-meta with id == an_meta_id exist in meta instance, otherwise this method return FALSE and rlt is invalid.
Parameters:
meta
–
Instance of GstAnalyticsRelationMeta
an_meta_id
–
Id of GstAnalyticsTensorMtd instance to retrieve
rlt
(
[out][not nullable])
–
Will be filled with relatable meta
TRUE if successful.
Since : 1.28
GstAnalytics.RelationMeta.prototype.get_tensor_mtd
function GstAnalytics.RelationMeta.prototype.get_tensor_mtd(an_meta_id: Number): {
// javascript wrapper for 'gst_analytics_relation_meta_get_tensor_mtd'
}
Fill rlt if a analytics-meta with id == an_meta_id exist in meta instance, otherwise this method return FALSE and rlt is invalid.
Returns a tuple made of:
TRUE if successful.
TRUE if successful.
Since : 1.28
GstAnalytics.RelationMeta.get_tensor_mtd
def GstAnalytics.RelationMeta.get_tensor_mtd (self, an_meta_id):
#python wrapper for 'gst_analytics_relation_meta_get_tensor_mtd'
Fill rlt if a analytics-meta with id == an_meta_id exist in meta instance, otherwise this method return FALSE and rlt is invalid.
Returns a tuple made of:
TRUE if successful.
TRUE if successful.
Since : 1.28
gst_analytics_relation_meta_get_tracking_mtd
gboolean gst_analytics_relation_meta_get_tracking_mtd (GstAnalyticsRelationMeta * meta, guint an_meta_id, GstAnalyticsTrackingMtd * rlt)
Fill rlt if a analytics-meta with id == an_meta_id exist in meta instance, otherwise this method return FALSE and rlt is invalid.
Parameters:
meta
–
Instance of GstAnalyticsRelationMeta
an_meta_id
–
Id of GstAnalyticsMtd instance to retrieve
rlt
(
[out][not nullable])
–
Will be filled with relatable meta
TRUE if successful.
Since : 1.24
GstAnalytics.RelationMeta.prototype.get_tracking_mtd
function GstAnalytics.RelationMeta.prototype.get_tracking_mtd(an_meta_id: Number): {
// javascript wrapper for 'gst_analytics_relation_meta_get_tracking_mtd'
}
Fill rlt if a analytics-meta with id == an_meta_id exist in meta instance, otherwise this method return FALSE and rlt is invalid.
Parameters:
Instance of GstAnalyticsRelationMeta
Id of GstAnalyticsMtd instance to retrieve
Returns a tuple made of:
TRUE if successful.
TRUE if successful.
Since : 1.24
GstAnalytics.RelationMeta.get_tracking_mtd
def GstAnalytics.RelationMeta.get_tracking_mtd (self, an_meta_id):
#python wrapper for 'gst_analytics_relation_meta_get_tracking_mtd'
Fill rlt if a analytics-meta with id == an_meta_id exist in meta instance, otherwise this method return FALSE and rlt is invalid.
Parameters:
Instance of GstAnalyticsRelationMeta
Id of GstAnalyticsMtd instance to retrieve
Returns a tuple made of:
TRUE if successful.
TRUE if successful.
Since : 1.24
gst_analytics_relation_meta_iterate
gboolean gst_analytics_relation_meta_iterate (GstAnalyticsRelationMeta * meta, gpointer * state, GstAnalyticsMtdType type, GstAnalyticsMtd * rlt_mtd)
Parameters:
meta
–
Instance of GstAnalyticsRelationMeta
state
–
Opaque data to store iteration state, initialize to NULL, no need to free it.
type
–
Type of GstAnalyticsMtd to iterate on or use GST_ANALYTICS_MTD_TYPE_ANY for any.
rlt_mtd
(
[out][not nullable])
–
Handle updated to iterated GstAnalyticsRelatableMtd.
FALSE if end was reached and iteration is completed.
Since : 1.24
GstAnalytics.RelationMeta.prototype.iterate
function GstAnalytics.RelationMeta.prototype.iterate(state: Object, type: Number): {
// javascript wrapper for 'gst_analytics_relation_meta_iterate'
}
Parameters:
Instance of GstAnalyticsRelationMeta
Opaque data to store iteration state, initialize to NULL, no need to free it.
Type of GstAnalyticsMtd to iterate on or use GstAnalytics.MTD_TYPE_ANY for any.
Returns a tuple made of:
FALSE if end was reached and iteration is completed.
FALSE if end was reached and iteration is completed.
Since : 1.24
GstAnalytics.RelationMeta.iterate
def GstAnalytics.RelationMeta.iterate (self, state, type):
#python wrapper for 'gst_analytics_relation_meta_iterate'
Parameters:
Instance of GstAnalyticsRelationMeta
Opaque data to store iteration state, initialize to NULL, no need to free it.
Type of GstAnalyticsMtd to iterate on or use GstAnalytics.MTD_TYPE_ANY for any.
Returns a tuple made of:
FALSE if end was reached and iteration is completed.
FALSE if end was reached and iteration is completed.
Since : 1.24
gst_analytics_relation_meta_set_relation
gboolean gst_analytics_relation_meta_set_relation (GstAnalyticsRelationMeta * meta, GstAnalyticsRelTypes type, guint an_meta_first_id, guint an_meta_second_id)
Sets the relation (#GstAnalyticsRelTypes) between an_meta_first and an_meta_second. Ids must have been obtained a call to gst_analytics_mtd_get_id(handle).
Parameters:
meta
(
[transfer: none])
–
Parameter to receive new maximum number of analysis-meta described by relation.
type
–
a GstAnalyticsRelTypes defining relation between two analysis-meta
an_meta_first_id
–
first meta id
an_meta_second_id
–
second meta id
TRUE on success and FALSE on failure.
Since : 1.24
GstAnalytics.RelationMeta.prototype.set_relation
function GstAnalytics.RelationMeta.prototype.set_relation(type: GstAnalytics.RelTypes, an_meta_first_id: Number, an_meta_second_id: Number): {
// javascript wrapper for 'gst_analytics_relation_meta_set_relation'
}
Sets the relation (#GstAnalyticsRelTypes) between an_meta_first and an_meta_second. Ids must have been obtained a call to gst_analytics_mtd_get_id(handle).
Parameters:
Parameter to receive new maximum number of analysis-meta described by relation.
a GstAnalytics.RelTypes defining relation between two analysis-meta
first meta id
second meta id
TRUE on success and FALSE on failure.
Since : 1.24
GstAnalytics.RelationMeta.set_relation
def GstAnalytics.RelationMeta.set_relation (self, type, an_meta_first_id, an_meta_second_id):
#python wrapper for 'gst_analytics_relation_meta_set_relation'
Sets the relation (#GstAnalyticsRelTypes) between an_meta_first and an_meta_second. Ids must have been obtained a call to gst_analytics_mtd_get_id(handle).
Parameters:
Parameter to receive new maximum number of analysis-meta described by relation.
a GstAnalytics.RelTypes defining relation between two analysis-meta
first meta id
second meta id
TRUE on success and FALSE on failure.
Since : 1.24
Functions
gst_analytics_relation_meta_get_info
const GstMetaInfo * gst_analytics_relation_meta_get_info ()
Get the meta info
Since : 1.24
GstAnalyticsRelationMetaInitParams
GstAnalyticsRelationMeta initialization parameters.
Members
initial_relation_order
(gsize)
–
Initial relations order.
initial_buf_size
(gsize)
–
Buffer size in bytes to store relatable metadata
Since : 1.24
Functions
gst_analytics_relation_get_length
gsize gst_analytics_relation_get_length (const GstAnalyticsRelationMeta * instance)
Get number of relatable meta attached to instance
Parameters:
instance
–
Instance of GstAnalyticsRelationMeta
Number of analysis-meta attached to this instance.
Since : 1.24
GstAnalytics.prototype.relation_get_length
function GstAnalytics.prototype.relation_get_length(instance: GstAnalytics.RelationMeta): {
// javascript wrapper for 'gst_analytics_relation_get_length'
}
Get number of relatable meta attached to instance
Parameters:
Instance of GstAnalytics.RelationMeta
Number of analysis-meta attached to this instance.
Since : 1.24
GstAnalytics.relation_get_length
def GstAnalytics.relation_get_length (instance):
#python wrapper for 'gst_analytics_relation_get_length'
Get number of relatable meta attached to instance
Parameters:
Instance of GstAnalytics.RelationMeta
Number of analysis-meta attached to this instance.
Since : 1.24
gst_analytics_relation_meta_api_get_type
GType gst_analytics_relation_meta_api_get_type ()
GType of GstAnalyticsRelationMeta
Since : 1.24
GstAnalytics.prototype.relation_meta_api_get_type
function GstAnalytics.prototype.relation_meta_api_get_type(): {
// javascript wrapper for 'gst_analytics_relation_meta_api_get_type'
}
GType of GstAnalyticsRelationMeta
Since : 1.24
GstAnalytics.relation_meta_api_get_type
def GstAnalytics.relation_meta_api_get_type ():
#python wrapper for 'gst_analytics_relation_meta_api_get_type'
GType of GstAnalyticsRelationMeta
Since : 1.24
gst_buffer_add_analytics_relation_meta
GstAnalyticsRelationMeta * gst_buffer_add_analytics_relation_meta (GstBuffer * buffer)
Attach a analysis-results-meta-relation meta (#GstAnalyticsRelationMeta)to buffer.
A GstAnalyticsRelationMeta is a metadata describing relation between other analysis meta. It's more efficient to use gst_buffer_add_analytics_relation_meta_full and providing the maximum number of analysis meta that will attached to a buffer.
Parameters:
buffer
(
[transfer: none])
–
Newly attached GstAnalyticsRelationMeta
Since : 1.24
GstAnalytics.prototype.buffer_add_analytics_relation_meta
function GstAnalytics.prototype.buffer_add_analytics_relation_meta(buffer: Gst.Buffer): {
// javascript wrapper for 'gst_buffer_add_analytics_relation_meta'
}
Attach a analysis-results-meta-relation meta (#GstAnalyticsRelationMeta)to buffer.
A GstAnalytics.RelationMeta is a metadata describing relation between other analysis meta. It's more efficient to use GstAnalytics.prototype.buffer_add_analytics_relation_meta_full and providing the maximum number of analysis meta that will attached to a buffer.
Parameters:
Newly attached GstAnalytics.RelationMeta
Since : 1.24
GstAnalytics.buffer_add_analytics_relation_meta
def GstAnalytics.buffer_add_analytics_relation_meta (buffer):
#python wrapper for 'gst_buffer_add_analytics_relation_meta'
Attach a analysis-results-meta-relation meta (#GstAnalyticsRelationMeta)to buffer.
A GstAnalytics.RelationMeta is a metadata describing relation between other analysis meta. It's more efficient to use GstAnalytics.buffer_add_analytics_relation_meta_full and providing the maximum number of analysis meta that will attached to a buffer.
Parameters:
Newly attached GstAnalytics.RelationMeta
Since : 1.24
gst_buffer_add_analytics_relation_meta_full
GstAnalyticsRelationMeta * gst_buffer_add_analytics_relation_meta_full (GstBuffer * buffer, GstAnalyticsRelationMetaInitParams * init_params)
Attache a analysis-results relation-meta (#GstAnalyticsRelationMeta) to buffer.
A GstAnalyticsRelationMeta is a metadata describing relation between other analysis meta.
Newly attached GstAnalyticsRelationMeta
Since : 1.24
GstAnalytics.prototype.buffer_add_analytics_relation_meta_full
function GstAnalytics.prototype.buffer_add_analytics_relation_meta_full(buffer: Gst.Buffer, init_params: GstAnalytics.RelationMetaInitParams): {
// javascript wrapper for 'gst_buffer_add_analytics_relation_meta_full'
}
Attache a analysis-results relation-meta (#GstAnalyticsRelationMeta) to buffer.
A GstAnalytics.RelationMeta is a metadata describing relation between other analysis meta.
Parameters:
Initialization parameters
Newly attached GstAnalytics.RelationMeta
Since : 1.24
GstAnalytics.buffer_add_analytics_relation_meta_full
def GstAnalytics.buffer_add_analytics_relation_meta_full (buffer, init_params):
#python wrapper for 'gst_buffer_add_analytics_relation_meta_full'
Attache a analysis-results relation-meta (#GstAnalyticsRelationMeta) to buffer.
A GstAnalytics.RelationMeta is a metadata describing relation between other analysis meta.
Parameters:
Initialization parameters
Newly attached GstAnalytics.RelationMeta
Since : 1.24
gst_buffer_get_analytics_relation_meta
GstAnalyticsRelationMeta * gst_buffer_get_analytics_relation_meta (GstBuffer * buffer)
Retrives the meta or NULL if it doesn't exist
Parameters:
buffer
–
(transfer none) (nullable) :The GstAnalyticsRelationMeta if there is one
Since : 1.24:
GstAnalytics.prototype.buffer_get_analytics_relation_meta
function GstAnalytics.prototype.buffer_get_analytics_relation_meta(buffer: Gst.Buffer): {
// javascript wrapper for 'gst_buffer_get_analytics_relation_meta'
}
Retrives the meta or null if it doesn't exist
Parameters:
(transfer none) (nullable) :The GstAnalytics.RelationMeta if there is one
Since : 1.24:
GstAnalytics.buffer_get_analytics_relation_meta
def GstAnalytics.buffer_get_analytics_relation_meta (buffer):
#python wrapper for 'gst_buffer_get_analytics_relation_meta'
Retrives the meta or None if it doesn't exist
Parameters:
(transfer none) (nullable) :The GstAnalytics.RelationMeta if there is one
Since : 1.24:
Function Macros
GST_ANALYTICS_MTD_CAST
#define GST_ANALYTICS_MTD_CAST(mtd) \
((GstAnalyticsMtd *)(mtd))
Since : 1.24
Enumerations
GstAnalyticsRelTypes
Members
GST_ANALYTICS_REL_TYPE_NONE
(0)
–
No relation
GST_ANALYTICS_REL_TYPE_IS_PART_OF
(2)
–
First analysis-meta is part of second analysis-meta
GST_ANALYTICS_REL_TYPE_CONTAIN
(4)
–
First analysis-meta contain second analysis-meta.
GST_ANALYTICS_REL_TYPE_RELATE_TO
(8)
–
First analysis-meta relate to second analysis-meta.
GST_ANALYTICS_REL_TYPE_N_TO_N
(16)
–
Used to express relations between two groups where each group's components correspond to the respective component in the other group.
(Since: 1.26)GST_ANALYTICS_REL_TYPE_ANY
(2147483647)
–
Only use for criteria.
Since : 1.24
GstAnalytics.RelTypes
Members
GstAnalytics.RelTypes.NONE
(0)
–
No relation
GstAnalytics.RelTypes.IS_PART_OF
(2)
–
First analysis-meta is part of second analysis-meta
GstAnalytics.RelTypes.CONTAIN
(4)
–
First analysis-meta contain second analysis-meta.
GstAnalytics.RelTypes.RELATE_TO
(8)
–
First analysis-meta relate to second analysis-meta.
GstAnalytics.RelTypes.N_TO_N
(16)
–
Used to express relations between two groups where each group's components correspond to the respective component in the other group.
(Since: 1.26)GstAnalytics.RelTypes.ANY
(2147483647)
–
Only use for criteria.
Since : 1.24
GstAnalytics.RelTypes
Members
GstAnalytics.RelTypes.NONE
(0)
–
No relation
GstAnalytics.RelTypes.IS_PART_OF
(2)
–
First analysis-meta is part of second analysis-meta
GstAnalytics.RelTypes.CONTAIN
(4)
–
First analysis-meta contain second analysis-meta.
GstAnalytics.RelTypes.RELATE_TO
(8)
–
First analysis-meta relate to second analysis-meta.
GstAnalytics.RelTypes.N_TO_N
(16)
–
Used to express relations between two groups where each group's components correspond to the respective component in the other group.
(Since: 1.26)GstAnalytics.RelTypes.ANY
(2147483647)
–
Only use for criteria.
Since : 1.24
Constants
GST_ANALYTICS_MTD_TYPE_ANY
#define GST_ANALYTICS_MTD_TYPE_ANY (0)
A wildcard matching any type of analysis
Since : 1.24
GstAnalytics.MTD_TYPE_ANY
A wildcard matching any type of analysis
Since : 1.24
GstAnalytics.MTD_TYPE_ANY
A wildcard matching any type of analysis
Since : 1.24
GST_ANALYTICS_RELATION_META_API_TYPE
#define GST_ANALYTICS_RELATION_META_API_TYPE \ (gst_analytics_relation_meta_api_get_type())
The Analyics Relation Meta API type
Since : 1.24
GST_ANALYTICS_RELATION_META_INFO
#define GST_ANALYTICS_RELATION_META_INFO \ (gst_analytics_relation_meta_get_info())
Get the meta info
Since : 1.24
GST_INF_RELATION_SPAN
#define GST_INF_RELATION_SPAN -1
Passes to functions asking for a relation span when the span is infinite.
Since : 1.24
GstAnalytics.INF_RELATION_SPAN
Passes to functions asking for a relation span when the span is infinite.
Since : 1.24
GstAnalytics.INF_RELATION_SPAN
Passes to functions asking for a relation span when the span is infinite.
Since : 1.24
Aliases
The results of the search are