Resource Base
Table of contents

Thanks for downloading Dynamsoft Barcode Reader Package!

Your download will start shortly. If your download does not begin, click here to retry.

ShortLinesUnit

The ShortLinesUnit class extends the IntermediateResultUnit class and represents a unit of intermediate result specifically for short lines.

Definition

Namespace: com.dynamsoft.core.intermediate_results

Assembly: DynamsoftCore.aar

class ShortLinesUnit extends IntermediateResultUnit

Methods

Methods Desctiption
getShortLines Gets an array of LineSegment objects, each representing a short line detected within the image.
getCount Gets the number of short lines.
getShortLine Gets the short line at the specified index.
removeAllShortLines Removes all short lines.
removeShortLine Removes the short line at the specified index.
addShortLine Adds the specified short line.
setShortLine Sets the short line at the specified index.

Inherited Methods

The following methods are inherited from class IntermediateResultUnit.

Method Description
clone Creates a copy of the intermediate result unit.
gethashId Gets the hash ID of the unit. The hash ID is the unique identifier for the intermediate result unit.
getOriginalImageHashId Gets the hash ID of the original image. You can use this ID to get the original image via IntermediateResultManager class.
getOriginalImageTag Gets the image tag of the original image associated with this unit.
getType Gets the type of the intermediate result unit, defined by the enumeration EnumIntermediateResultUnitType.
getTransformMatrix Gets the transformation matrix via EnumTransformMatrixType.
replace Replaces the old unit with the new unit.

getShortLines

Gets an array of LineSegment objects, each representing a short line detected within the image.

LineSegment[] getShortLines()

Return Value

An array of LineSegment objects.

getCount

Gets the number of short lines.

int getCount()

Return Value

The number of short lines.

getShortLine

Gets the short line at the specified index.

LineSegment getShortLine(int index)

Parameters

index: The index of the short line.

Return Value

The short line at the specified index.

removeAllShortLines

Removes all short lines.

void removeAllShortLines()

removeShortLine

Removes the short line at the specified index.

int removeShortLine(int index)

Parameters

index: The index of the short line.

Return Value

Returns the ErrorCode if failed. Otherwise, returns 0.

addShortLine

Adds the specified short line.

int addShortLine(LineSegment line, Matrix matrixToOriginalImage)

Parameters

line: The short line to be added.

matrixToOriginalImage: The matrix to convert the coordinates of the short line to the original image coordinates.

Return Value

Returns the ErrorCode if failed. Otherwise, returns 0.

setShortLine

Sets the short line at the specified index.

int setShortLine(int index, LineSegment line,  Matrix matrixToOriginalImage)

Parameters

index: The index of the short line.

line: The short line to be set.

matrixToOriginalImage: The matrix to convert the coordinates of the short line to the original image coordinates.

Return Value

Returns the ErrorCode if failed. Otherwise, returns 0.

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version
    • Version 2.x
      • Version 2.2.10
      • Version 2.0.21
      • Version 2.0.20
      • Version 2.0.10
      • Version 2.2.10
      • Version 2.0.21
      • Version 2.0.20
      • Version 2.0.10
    • Version 1.x
      • Version 1.2.1
      • Version 1.2.0
      • Version 1.1.0
      • Version 1.0.0
      • Version 1.0.4
      • Version 1.0.3
      • Version 1.0.2
      • Version 1.0.1
      • Version 1.0.0
      • Version 1.1.13
      • Version 1.1.12
      • Version 1.1.11
      • Version 1.1.9
      • Version 1.1.8
      • Version 1.1.7
      • Version 1.1.6
      • Version 1.1.5
      • Version 1.1.4
      • Version 1.1.3
      • Version 1.1.2
      • Version 1.1.1
      • Version 1.1.0
      • Version 1.0.0
      • Version 1.0.4
      • Version 1.0.3
      • Version 1.0.2
      • Version 1.0.1
      • Version 1.0.0
    Change +
    © 2003–2024 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support