Documentation
Table of contents

This documentation is deprecated. It applies only to legacy version 2.x of Capture Vision and must not be used for new development.

Please refer to the latest documentation and Migration Guide, which supersede this content.

LocalizedTextLinesUnit

The LocalizedTextLinesUnit class represents a unit that contains localized text lines. It inherits from the IntermediateResultUnit class.

Definition

Module: dynamsoft_label_recognizer

class LocalizedTextLinesUnit(IntermediateResultUnit)

Inheritance: IntermediateResultUnit -> LocalizedTextLinesUnit

Methods

Method Description
get_count Gets the number of localized text lines in the unit.
get_localized_text_line Gets a localized text line element.
remove_all_localized_text_lines Removes all localized text lines.
remove_localized_text_line Removes the localized text line at the specified index.
add_localized_text_line Adds a localized text line.
set_localized_text_line Sets the localized text line at the specified index.

get_count

Gets the number of localized text lines in the unit.

def get_count(self) -> int:

Return value

Returns the number of localized text lines in the unit.

get_localized_text_line

Gets a localized text line element.

def get_localized_text_line(self, index: int) -> LocalizedTextLineElement:

Parameters

index The index of the localized text line element to retrieve.

Return value

Returns the localized text line element at the specified index.

See Also

LocalizedTextLineElement

remove_all_localized_text_lines

Removes all localized text lines.

def remove_all_localized_text_lines(self) -> None:

remove_localized_text_line

Removes the localized text line at the specified index.

def remove_localized_text_line(self, index: int) -> int:

Parameters

index The index of the localized text line to remove.

Return value

Returns 0 if successful, otherwise returns a negative value.

add_localized_text_line

Adds a localized text line.

def add_localized_text_line(self, element: LocalizedTextLineElement, matrix_to_original_image: List[float] = IDENTITY_MATRIX) -> int:

Parameters

element The localized text line element to add.

matrix_to_original_image The matrix to original image.

Return value

Returns 0 if successful, otherwise returns a negative value.

See Also

LocalizedTextLineElement

set_localized_text_line

Sets the localized text line at the specified index.

def set_localized_text_line(self, index: int, element: LocalizedTextLineElement, matrix_to_original_image: List[float] = IDENTITY_MATRIX) -> int:

Parameters

index The index of the localized text line to set.

element The localized text line element to set.

matrix_to_original_image The matrix to original image.

Return value

Returns 0 if successful, otherwise returns a negative value.

See Also

LocalizedTextLineElement

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: