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.

RawTextLinesUnit

The RawTextLinesUnit class represents an intermediate result unit containing raw text lines. It inherits from the IntermediateResultUnit class.

Definition

Module: dynamsoft_label_recognizer

class RawTextLinesUnit(IntermediateResultUnit)

Inheritance: IntermediateResultUnit -> RawTextLinesUnit

Methods

Method Description
get_count Gets the number of raw text lines in the unit.
get_raw_textLine Gets a raw text line.
operator[] Gets a raw text line.
remove_all_raw_text_lines Removes all raw text lines.
remove_raw_text_line Removes the raw text line at the specified index.
add_raw_text_line Adds a raw text line.
set_raw_text_line Sets the raw text line at the specified index.

get_count

Gets the number of raw text lines in the unit.

def get_count(self) -> int:

Return value

Returns the number of raw text lines in the unit.

get_raw_textLine

Gets a raw text line.

def get_raw_text_line(self, index: int) -> RawTextLine:

Parameters

index The index of the raw text line to retrieve.

Return value

Returns the raw text line at the specified index.

See Also

RawTextLine

remove_all_raw_text_lines

Removes all raw text lines.

def remove_all_raw_text_lines(self) -> None:

remove_raw_text_line

Removes the raw text line at the specified index.

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

Parameters

index The index of the raw text line to remove.

Return value

Returns 0 if successful, otherwise returns a negative value.

add_raw_text_line

Adds a raw text line.

def add_raw_text_line(self, text_line: RawTextLine, matrix_to_original_image: List[float] = IDENTITY_MATRIX) -> int:

Parameters

text_line The raw text line to add.

matrix_to_original_image The matrix to original image.

Return value

Returns 0 if successful, otherwise returns a negative value.

See Also

RawTextLine

set_raw_text_line

Sets the raw text line at the specified index.

def set_raw_text_line(self, index: int, text_line: RawTextLine, matrix_to_original_image: List[float] = IDENTITY_MATRIX) -> int:

Parameters

index The index of the raw text line to set.

text_line The raw text line to set.

matrix_to_original_image The matrix to original image.

Return value

Returns 0 if successful, otherwise returns a negative value.

See Also

RawTextLine

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: