PredetectedRegionElement
The PredetectedRegionElement
class represents a region element that has been pre-detected in an image. It is a subclass of the RegionObjectElement
.
Definition
Module: dynamsoft_core
class PredetectedRegionElement(RegionObjectElement)
Methods
Method | Description |
---|---|
__init__ |
Initializes a new instance of the PredetectedRegionElement class. |
get_mode_name |
Gets the name of the detection mode used to detect this region element. |
set_location |
Sets the location of the region object element. |
get_label_id |
Gets the label id of the region object element. |
get_label_name |
Gets the label name of the region object element. |
__init__
Initializes a new instance of the PredetectedRegionElement
class.
def __init__(self):
get_mode_name
Gets the name of the detection mode used to detect this region element.
def get_mode_name(self) -> str:
Return value
Returns the name of the detection mode used to detect this region element.
set_location
Set the location of the region object element.
def set_location(self, loc: Quadrilateral) -> int:
Parameters
loc
The location of the region object element.
Return value
Returns 0 if success, otherwise an error code.
See Also
get_label_id
Gets the label id of the predetected region element.
def get_label_id(self) -> int:
Return value
Returns the label id of the predetected region element.
get_label_name
Gets the label name of the predetected region element.
def get_label_name(self) -> str:
Return value
Returns the label name of the predetected region element.