Table of Contents

Class OcrElement

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

Constructors

OcrElement(nint, JniHandleOwnership)

protected OcrElement(nint javaReference, JniHandleOwnership transfer)

Parameters

javaReference nint
transfer JniHandleOwnership

Properties

Confidence

public abstract double Confidence { get; }

Property Value

double

Roi

public abstract IList<PointF> Roi { get; }

Property Value

IList<PointF>

Text

public abstract string Text { get; }

Property Value

string

Methods

Block(string, double, IList<PointF>, IList<Line>)

[Register("block", "(Ljava/lang/String;DLjava/util/List;Ljava/util/List;)Lio/scanbot/sdk/ocr/Block;", "")]
public static Block Block(string text, double confidence, IList<PointF> roi, IList<Line> lines)

Parameters

text string
confidence double
roi IList<PointF>
lines IList<Line>

Returns

Block

DescribeContents()

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

[Register("describeContents", "()I", "GetDescribeContentsHandler")]
public abstract 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.

Get_type()

[Register("get_type", "()Ljava/lang/String;", "GetGet_typeHandler")]
public abstract string Get_type()

Returns

string

Glyph(string, double, IList<PointF>)

[Register("glyph", "(Ljava/lang/String;DLjava/util/List;)Lio/scanbot/sdk/ocr/Glyph;", "")]
public static Glyph Glyph(string text, double confidence, IList<PointF> roi)

Parameters

text string
confidence double
roi IList<PointF>

Returns

Glyph

Invoke(IDictionary<string, Object>)

[Register("invoke", "(Ljava/util/Map;)Lio/scanbot/sdk/ocr/OcrElement;", "")]
public static OcrElement Invoke(IDictionary<string, Object> source)

Parameters

source IDictionary<string, Object>

Returns

OcrElement

Line(string, double, IList<PointF>, IList<Word>)

[Register("line", "(Ljava/lang/String;DLjava/util/List;Ljava/util/List;)Lio/scanbot/sdk/ocr/Line;", "")]
public static Line Line(string text, double confidence, IList<PointF> roi, IList<Word> words)

Parameters

text string
confidence double
roi IList<PointF>
words IList<Word>

Returns

Line

Page(string, double, IList<PointF>, IList<Block>)

[Register("page", "(Ljava/lang/String;DLjava/util/List;Ljava/util/List;)Lio/scanbot/sdk/ocr/Page;", "")]
public static Page Page(string text, double confidence, IList<PointF> roi, IList<Block> blocks)

Parameters

text string
confidence double
roi IList<PointF>
blocks IList<Block>

Returns

Page

ToJson(ToJsonConfiguration)

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

Parameters

config ToJsonConfiguration

Returns

JSONObject

Word(string, double, IList<PointF>, IList<Glyph>)

[Register("word", "(Ljava/lang/String;DLjava/util/List;Ljava/util/List;)Lio/scanbot/sdk/ocr/Word;", "")]
public static Word Word(string text, double confidence, IList<PointF> roi, IList<Glyph> glyphs)

Parameters

text string
confidence double
roi IList<PointF>
glyphs IList<Glyph>

Returns

Word

WriteToParcel(Parcel, ParcelableWriteFlags)

Flatten this object in to a Parcel.

[Register("writeToParcel", "(Landroid/os/Parcel;I)V", "GetWriteToParcel_Landroid_os_Parcel_IHandler")]
public abstract 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.