Table of contents

RegionObjectElement

The RegionObjectElement class represents an element of a region object in 2D space. It is an abstract class that provides the interface for region object elements.

Definition

Module: dynamsoft_core

class RegionObjectElement 

Methods

Method Description
get_location Gets the location of the region object element.
get_referenced_element Gets a referenced region object element.
get_element_type Gets the type of the region object element.
get_image_data Get the imageData of the region object element.
set_location Sets the location of the region object element.
clone Clones the region object element.

get_location

Gets the location of the region object element.

def get_location(self) -> Quadrilateral:

Return value

Returns a Quadrilateral object which represents the location of the region object element.

See Also

Quadrilateral

get_referenced_element

Gets a referenced region object element.

def get_referenced_element(self) -> "RegionObjectElement":

Return value

Returns a referenced RegionObjectElement object.

See Also

RegionObjectElement

get_element_type

Gets the type of the region object element.

def get_element_type(self) -> int:

Return value

Returns a EnumRegionObjectElementType enum value which represents the type of the region object element.

See Also

EnumRegionObjectElementType

get_image_data

Get the imageData of the region object element.

def get_image_data(self) -> ImageData:

Return value

Returns an ImageData object that contains the image data of current object.

See Also

ImageData

set_location

Sets the location of the region object element.

def set_location(self, location: Quadrilateral) -> int:

Parameters

location The location of the region object element.

Return value

Returns 0 if success, otherwise an error code.

See Also

Quadrilateral

Clone

Clones the region object element.

def clone(self) -> "RegionObjectElement":

Return value

Returns a copy of the region object element.

Is this page helpful?

YesYes NoNo

In this article: