CObjectMeasure

class ikomia.dataprocess.pydataprocess.CObjectMeasure

Store values of a given measure computed on a single blob of an image. Available measures are listed here: MeasureId. It can also maps this measure with the associated graphics item (by its identifier). Store graphics item in a CGraphicsOutput object is the classical way to handle graphics items.

Import

from ikomia.dataprocess import CObjectMeasure

Methods

__init__(arg1)

__init__( (object)self) -> None :

get_measure_info(self)

Get measure information (identifier + name).

Attributes

values

Values of the measure

graphics_id

Identifier of the associated graphics item

label

Label of the measure

Details

__init__((object)arg1) None
__init__( (object)self) -> None :

Default constructor

__init__( (object)self, (CMeasure)measure, (float)value, (int)graphicsId, (str)label) -> None :

Construct a CObjectMeasure instance with a single value.

Args:

measure (CMeasure): basic information about the computed measure.

value (double): value of the measure

graphicsId (int): graphics item identifier, -1 if no associated item

label (str)

__init__( (object)arg1, (CMeasure)arg2, (object)arg3, (int)arg4, (str)arg5) -> None :

Construct a CObjectMeasure instance with multiple values.

Args:

measure (CMeasure): basic information about the computed measure.

values (list of double): values of the measure (example Bbox needs 4 values)

graphicsId (int): graphics item identifier, -1 if no associated item

label (str)

get_measure_info((CObjectMeasure)self) CMeasure :

Get measure information (identifier + name). See CMeasure.