C# Класс Algorithmix.Shred

Наследование: INode
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
BUFFER int
Chamfer List
Convolution List
ConvolutionKernel double[]
Filepath string
Id long
Luminousity List
OCR_EMPTY_THRESHOLD int
Offsets List
SAMPLE_SIZE int
Sparsity List
THRESHOLD double
Thresholded List

Открытые методы

Метод Описание
AddOcrData ( OcrData results ) : void

Standard Add OCR will filter a shred if it is empty

AddOcrData ( OcrData results, long orienationConfidence, bool isUpsideDown ) : void

Set OCR Results, and Orientation Confidence on an Object

Factory ( List files, bool runOcr = true ) : List
Factory ( string prefix, string directory, bool runOcr = true ) : List

Factory Method loads a bunch of shreds from a directory given a prefix to match

Flatten ( List list ) : void
GetBitmap ( Orientation orientation = Orientation.Regular ) : Bitmap

Load a bitmap image of the shred with a specific orientation

GetChamfer ( Direction direction, Orientation orientation = Orientation.Regular ) : int[]
GetConvolution ( Direction direction, Orientation orientation = Orientation.Regular ) : double[]
GetLuminousity ( Direction direction, Orientation orientation = Orientation.Regular ) : double[]
GetSparsity ( Direction direction, Orientation orientation = Orientation.Regular ) : long
GetThresholded ( Direction direction, Orientation orientation = Orientation.Regular ) : double[]
IsLeaf ( ) : bool
Leaf ( ) : Shred
Left ( ) : INode
LeftEdge ( ) : Edge
LeftShred ( ) : Shred
Load ( string filepath ) : Shred

Deserialize binary shred on disk into memory

MatchData ( ) : MatchData
Mirror ( ) : void
OrphanChildren ( ) : void
Parent ( ) : INode
Parent ( INode parent ) : void
Right ( ) : INode
RightEdge ( ) : Edge
RightShred ( ) : Shred
Root ( ) : INode
Root ( INode representative ) : void
Save ( Shred shred, string filename ) : void

Serialize Shred to binary file on disk

Shred ( string filepath, bool ignoreTopBottom = true ) : System

Create a shred object given a filepath to a bitmap image

Size ( ) : int
ToJson ( JsonTextWriter writer ) : void
VisualizeChamfers ( Direction direction, Orientation orientation = Orientation.Regular ) : void

Plots a trace of the Chamfering

VisualizeLuminousity ( Direction direction, Orientation orientation = Orientation.Regular ) : void

Plots a trace of the Luminousity

VisualizeThresholded ( Direction direction, Orientation orientation = Orientation.Regular ) : void

Plots a trace of the threshold

Приватные методы

Метод Описание
Create ( string file, bool ignoreTopAndBottom = true ) : Shred
Index ( Direction direction, Orientation orientation ) : int

Helper for converting Orientation + Direction into an index number

InitializeINode ( ) : void
WriteLeaf ( Shred shred, JsonTextWriter writer ) : void

Описание методов

AddOcrData() публичный Метод

Standard Add OCR will filter a shred if it is empty
public AddOcrData ( OcrData results ) : void
results OcrData Shreds Ocr Data
Результат void

AddOcrData() публичный Метод

Set OCR Results, and Orientation Confidence on an Object
public AddOcrData ( OcrData results, long orienationConfidence, bool isUpsideDown ) : void
results OcrData The Orientation Results from the OCR execution
orienationConfidence long Absolute Orientation Confidence
isUpsideDown bool Indicates if True orientation is different than the current
Результат void

Factory() публичный статический Метод

public static Factory ( List files, bool runOcr = true ) : List
files List
runOcr bool
Результат List

Factory() публичный статический Метод

Factory Method loads a bunch of shreds from a directory given a prefix to match
public static Factory ( string prefix, string directory, bool runOcr = true ) : List
prefix string prefix to match within shred folder
directory string path where folder is located
runOcr bool Run Optical Character Recognition for Page Text and Orientation Detection
Результат List

Flatten() публичный Метод

public Flatten ( List list ) : void
list List
Результат void

GetBitmap() публичный Метод

Load a bitmap image of the shred with a specific orientation
public GetBitmap ( Orientation orientation = Orientation.Regular ) : Bitmap
orientation Orientation Specific Orientation, regular or reversed, default is regular
Результат System.Drawing.Bitmap

GetChamfer() публичный Метод

public GetChamfer ( Direction direction, Orientation orientation = Orientation.Regular ) : int[]
direction Direction
orientation Orientation
Результат int[]

GetConvolution() публичный Метод

public GetConvolution ( Direction direction, Orientation orientation = Orientation.Regular ) : double[]
direction Direction
orientation Orientation
Результат double[]

GetLuminousity() публичный Метод

public GetLuminousity ( Direction direction, Orientation orientation = Orientation.Regular ) : double[]
direction Direction
orientation Orientation
Результат double[]

GetSparsity() публичный Метод

public GetSparsity ( Direction direction, Orientation orientation = Orientation.Regular ) : long
direction Direction
orientation Orientation
Результат long

GetThresholded() публичный Метод

public GetThresholded ( Direction direction, Orientation orientation = Orientation.Regular ) : double[]
direction Direction
orientation Orientation
Результат double[]

IsLeaf() публичный Метод

public IsLeaf ( ) : bool
Результат bool

Leaf() публичный Метод

public Leaf ( ) : Shred
Результат Shred

Left() публичный Метод

public Left ( ) : INode
Результат INode

LeftEdge() публичный Метод

public LeftEdge ( ) : Edge
Результат Edge

LeftShred() публичный Метод

public LeftShred ( ) : Shred
Результат Shred

Load() публичный статический Метод

Deserialize binary shred on disk into memory
public static Load ( string filepath ) : Shred
filepath string filepath of the deserialized shred
Результат Shred

MatchData() публичный Метод

public MatchData ( ) : MatchData
Результат MatchData

Mirror() публичный Метод

public Mirror ( ) : void
Результат void

OrphanChildren() публичный Метод

public OrphanChildren ( ) : void
Результат void

Parent() публичный Метод

public Parent ( ) : INode
Результат INode

Parent() публичный Метод

public Parent ( INode parent ) : void
parent INode
Результат void

Right() публичный Метод

public Right ( ) : INode
Результат INode

RightEdge() публичный Метод

public RightEdge ( ) : Edge
Результат Edge

RightShred() публичный Метод

public RightShred ( ) : Shred
Результат Shred

Root() публичный Метод

public Root ( ) : INode
Результат INode

Root() публичный Метод

public Root ( INode representative ) : void
representative INode
Результат void

Save() публичный статический Метод

Serialize Shred to binary file on disk
public static Save ( Shred shred, string filename ) : void
shred Shred Shred Object
filename string Destination File path
Результат void

Shred() публичный Метод

Create a shred object given a filepath to a bitmap image
public Shred ( string filepath, bool ignoreTopBottom = true ) : System
filepath string destination path of the shred image
ignoreTopBottom bool Default is true, set to false to scan top and bottom aswell
Результат System

Size() публичный Метод

public Size ( ) : int
Результат int

ToJson() публичный Метод

public ToJson ( JsonTextWriter writer ) : void
writer JsonTextWriter
Результат void

VisualizeChamfers() публичный Метод

Plots a trace of the Chamfering
public VisualizeChamfers ( Direction direction, Orientation orientation = Orientation.Regular ) : void
direction Direction Direction to be traced
orientation Orientation Orientation to be traced
Результат void

VisualizeLuminousity() публичный Метод

Plots a trace of the Luminousity
public VisualizeLuminousity ( Direction direction, Orientation orientation = Orientation.Regular ) : void
direction Direction Direction to be traced
orientation Orientation Orientation to be traced
Результат void

VisualizeThresholded() публичный Метод

Plots a trace of the threshold
public VisualizeThresholded ( Direction direction, Orientation orientation = Orientation.Regular ) : void
direction Direction Direction to be traced
orientation Orientation Orientation to be traced
Результат void

Описание свойств

BUFFER публичное статическое свойство

public static int BUFFER
Результат int

Chamfer публичное свойство

public List Chamfer
Результат List

Convolution публичное свойство

public List Convolution
Результат List

ConvolutionKernel публичное статическое свойство

public static double[] ConvolutionKernel
Результат double[]

Filepath публичное свойство

public string Filepath
Результат string

Id публичное свойство

public long Id
Результат long

Luminousity публичное свойство

public List Luminousity
Результат List

OCR_EMPTY_THRESHOLD публичное статическое свойство

public static int OCR_EMPTY_THRESHOLD
Результат int

Offsets публичное свойство

public List Offsets
Результат List

SAMPLE_SIZE публичное статическое свойство

public static int SAMPLE_SIZE
Результат int

Sparsity публичное свойство

public List Sparsity
Результат List

THRESHOLD публичное статическое свойство

public static double THRESHOLD
Результат double

Thresholded публичное свойство

public List Thresholded
Результат List