Table of Contents

Class DocumentDetectionResult

Namespace
IO.Scanbot.Sdk.Documentscanner
Assembly
DocumentSDK.NET.Droid.dll
[Register("io/scanbot/sdk/documentscanner/DocumentDetectionResult", DoNotGenerateAcw = true)]
public sealed class DocumentDetectionResult : Object, IParcelable, IJavaObject, IJavaPeerable, IDisposable
Inheritance
DocumentDetectionResult
Implements
Inherited Members

Constructors

DocumentDetectionResult(DocumentDetectionStatus, DocumentDetectionScores, IList<Point>, IList<LineSegmentInt>, IList<LineSegmentInt>, IList<PointF>, IList<LineSegmentFloat>, IList<LineSegmentFloat>, double, int, DocumentDisplacement, PointF)

[Register(".ctor", "(Lio/scanbot/sdk/documentscanner/DocumentDetectionStatus;Lio/scanbot/sdk/documentscanner/DocumentDetectionScores;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;DILio/scanbot/sdk/documentscanner/DocumentDisplacement;Landroid/graphics/PointF;)V", "")]
public DocumentDetectionResult(DocumentDetectionStatus status, DocumentDetectionScores detectionScores, IList<Point> points, IList<LineSegmentInt> horizontalLines, IList<LineSegmentInt> verticalLines, IList<PointF> pointsNormalized, IList<LineSegmentFloat> horizontalLinesNormalized, IList<LineSegmentFloat> verticalLinesNormalized, double aspectRatio, int averageBrightness, DocumentDisplacement displacement, PointF displacementVector)

Parameters

status DocumentDetectionStatus
detectionScores DocumentDetectionScores
points IList<Point>
horizontalLines IList<LineSegmentInt>
verticalLines IList<LineSegmentInt>
pointsNormalized IList<PointF>
horizontalLinesNormalized IList<LineSegmentFloat>
verticalLinesNormalized IList<LineSegmentFloat>
aspectRatio double
averageBrightness int
displacement DocumentDisplacement
displacementVector PointF

DocumentDetectionResult(JSONObject)

[Register(".ctor", "(Lorg/json/JSONObject;)V", "")]
public DocumentDetectionResult(JSONObject json)

Parameters

json JSONObject

DocumentDetectionResult(IDictionary<string, Object>)

[Register(".ctor", "(Ljava/util/Map;)V", "")]
public DocumentDetectionResult(IDictionary<string, Object> source)

Parameters

source IDictionary<string, Object>

Properties

AspectRatio

public double AspectRatio { get; }

Property Value

double

AverageBrightness

public int AverageBrightness { get; }

Property Value

int

Creator

[Register("CREATOR")]
public static IParcelableCreator Creator { get; }

Property Value

IParcelableCreator

DetectionScores

public DocumentDetectionScores DetectionScores { get; }

Property Value

DocumentDetectionScores

Displacement

public DocumentDisplacement Displacement { get; }

Property Value

DocumentDisplacement

DisplacementVector

public PointF DisplacementVector { get; }

Property Value

PointF

HorizontalLines

public IList<LineSegmentInt> HorizontalLines { get; }

Property Value

IList<LineSegmentInt>

HorizontalLinesNormalized

public IList<LineSegmentFloat> HorizontalLinesNormalized { get; }

Property Value

IList<LineSegmentFloat>

Points

public IList<Point> Points { get; }

Property Value

IList<Point>

PointsNormalized

public IList<PointF> PointsNormalized { get; }

Property Value

IList<PointF>

Status

public DocumentDetectionStatus Status { get; }

Property Value

DocumentDetectionStatus

VerticalLines

public IList<LineSegmentInt> VerticalLines { get; }

Property Value

IList<LineSegmentInt>

VerticalLinesNormalized

public IList<LineSegmentFloat> VerticalLinesNormalized { get; }

Property Value

IList<LineSegmentFloat>

Methods

Component1()

[Register("component1", "()Lio/scanbot/sdk/documentscanner/DocumentDetectionStatus;", "")]
public DocumentDetectionStatus Component1()

Returns

DocumentDetectionStatus

Component10()

[Register("component10", "()I", "")]
public int Component10()

Returns

int

Component11()

[Register("component11", "()Lio/scanbot/sdk/documentscanner/DocumentDisplacement;", "")]
public DocumentDisplacement Component11()

Returns

DocumentDisplacement

Component12()

[Register("component12", "()Landroid/graphics/PointF;", "")]
public PointF Component12()

Returns

PointF

Component2()

[Register("component2", "()Lio/scanbot/sdk/documentscanner/DocumentDetectionScores;", "")]
public DocumentDetectionScores Component2()

Returns

DocumentDetectionScores

Component3()

[Register("component3", "()Ljava/util/List;", "")]
public IList<Point> Component3()

Returns

IList<Point>

Component4()

[Register("component4", "()Ljava/util/List;", "")]
public IList<LineSegmentInt> Component4()

Returns

IList<LineSegmentInt>

Component5()

[Register("component5", "()Ljava/util/List;", "")]
public IList<LineSegmentInt> Component5()

Returns

IList<LineSegmentInt>

Component6()

[Register("component6", "()Ljava/util/List;", "")]
public IList<PointF> Component6()

Returns

IList<PointF>

Component7()

[Register("component7", "()Ljava/util/List;", "")]
public IList<LineSegmentFloat> Component7()

Returns

IList<LineSegmentFloat>

Component8()

[Register("component8", "()Ljava/util/List;", "")]
public IList<LineSegmentFloat> Component8()

Returns

IList<LineSegmentFloat>

Component9()

[Register("component9", "()D", "")]
public double Component9()

Returns

double

Copy(DocumentDetectionStatus, DocumentDetectionScores, IList<Point>, IList<LineSegmentInt>, IList<LineSegmentInt>, IList<PointF>, IList<LineSegmentFloat>, IList<LineSegmentFloat>, double, int, DocumentDisplacement, PointF)

[Register("copy", "(Lio/scanbot/sdk/documentscanner/DocumentDetectionStatus;Lio/scanbot/sdk/documentscanner/DocumentDetectionScores;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;DILio/scanbot/sdk/documentscanner/DocumentDisplacement;Landroid/graphics/PointF;)Lio/scanbot/sdk/documentscanner/DocumentDetectionResult;", "")]
public DocumentDetectionResult Copy(DocumentDetectionStatus status, DocumentDetectionScores detectionScores, IList<Point> points, IList<LineSegmentInt> horizontalLines, IList<LineSegmentInt> verticalLines, IList<PointF> pointsNormalized, IList<LineSegmentFloat> horizontalLinesNormalized, IList<LineSegmentFloat> verticalLinesNormalized, double aspectRatio, int averageBrightness, DocumentDisplacement displacement, PointF displacementVector)

Parameters

status DocumentDetectionStatus
detectionScores DocumentDetectionScores
points IList<Point>
horizontalLines IList<LineSegmentInt>
verticalLines IList<LineSegmentInt>
pointsNormalized IList<PointF>
horizontalLinesNormalized IList<LineSegmentFloat>
verticalLinesNormalized IList<LineSegmentFloat>
aspectRatio double
averageBrightness int
displacement DocumentDisplacement
displacementVector PointF

Returns

DocumentDetectionResult

DescribeContents()

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.

[Register("describeContents", "()I", "")]
public int DescribeContents()

Returns

int

a bitmask indicating the set of special object types marshaled by this Parcelable object instance.

Remarks

<p>Describe the kinds of special objects contained in this Parcelable

instance's marshaled representation. For example, if the object will include a file descriptor in the output of #writeToParcel(Parcel, int), the return value of this method must include the #CONTENTS_FILE_DESCRIPTOR bit.

Java documentation for

android.os.Parcelable.describeContents()
.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

ToJson(ToJsonConfiguration)

[Register("toJson", "(Lio/scanbot/sdk/common/ToJsonConfiguration;)Lorg/json/JSONObject;", "")]
public JSONObject ToJson(ToJsonConfiguration config)

Parameters

config ToJsonConfiguration

Returns

JSONObject

WriteToParcel(Parcel, ParcelableWriteFlags)

Flatten this object in to a Parcel.

[Register("writeToParcel", "(Landroid/os/Parcel;I)V", "")]
public void WriteToParcel(Parcel dest, ParcelableWriteFlags flags)

Parameters

dest Parcel

The Parcel in which the object should be written.

flags ParcelableWriteFlags

Additional flags about how the object should be written. May be 0 or #PARCELABLE_WRITE_RETURN_VALUE.

Remarks

Flatten this object in to a Parcel.

Java documentation for

android.os.Parcelable.writeToParcel(android.os.Parcel, int)
.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.