C# Class Algorithmix.Shred

Inheritance: INode
Afficher le fichier Open project: Algorithmix/Papyrus Class Usage Examples

Méthodes publiques

Свойство Type Description
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

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

AddOcrData() public méthode

Standard Add OCR will filter a shred if it is empty
public AddOcrData ( OcrData results ) : void
results OcrData Shreds Ocr Data
Résultat void

AddOcrData() public méthode

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
Résultat void

Factory() public static méthode

public static Factory ( List files, bool runOcr = true ) : List
files List
runOcr bool
Résultat List

Factory() public static méthode

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
Résultat List

Flatten() public méthode

public Flatten ( List list ) : void
list List
Résultat void

GetBitmap() public méthode

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
Résultat System.Drawing.Bitmap

GetChamfer() public méthode

public GetChamfer ( Direction direction, Orientation orientation = Orientation.Regular ) : int[]
direction Direction
orientation Orientation
Résultat int[]

GetConvolution() public méthode

public GetConvolution ( Direction direction, Orientation orientation = Orientation.Regular ) : double[]
direction Direction
orientation Orientation
Résultat double[]

GetLuminousity() public méthode

public GetLuminousity ( Direction direction, Orientation orientation = Orientation.Regular ) : double[]
direction Direction
orientation Orientation
Résultat double[]

GetSparsity() public méthode

public GetSparsity ( Direction direction, Orientation orientation = Orientation.Regular ) : long
direction Direction
orientation Orientation
Résultat long

GetThresholded() public méthode

public GetThresholded ( Direction direction, Orientation orientation = Orientation.Regular ) : double[]
direction Direction
orientation Orientation
Résultat double[]

IsLeaf() public méthode

public IsLeaf ( ) : bool
Résultat bool

Leaf() public méthode

public Leaf ( ) : Shred
Résultat Shred

Left() public méthode

public Left ( ) : INode
Résultat INode

LeftEdge() public méthode

public LeftEdge ( ) : Edge
Résultat Edge

LeftShred() public méthode

public LeftShred ( ) : Shred
Résultat Shred

Load() public static méthode

Deserialize binary shred on disk into memory
public static Load ( string filepath ) : Shred
filepath string filepath of the deserialized shred
Résultat Shred

MatchData() public méthode

public MatchData ( ) : MatchData
Résultat MatchData

Mirror() public méthode

public Mirror ( ) : void
Résultat void

OrphanChildren() public méthode

public OrphanChildren ( ) : void
Résultat void

Parent() public méthode

public Parent ( ) : INode
Résultat INode

Parent() public méthode

public Parent ( INode parent ) : void
parent INode
Résultat void

Right() public méthode

public Right ( ) : INode
Résultat INode

RightEdge() public méthode

public RightEdge ( ) : Edge
Résultat Edge

RightShred() public méthode

public RightShred ( ) : Shred
Résultat Shred

Root() public méthode

public Root ( ) : INode
Résultat INode

Root() public méthode

public Root ( INode representative ) : void
representative INode
Résultat void

Save() public static méthode

Serialize Shred to binary file on disk
public static Save ( Shred shred, string filename ) : void
shred Shred Shred Object
filename string Destination File path
Résultat void

Shred() public méthode

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
Résultat System

Size() public méthode

public Size ( ) : int
Résultat int

ToJson() public méthode

public ToJson ( JsonTextWriter writer ) : void
writer JsonTextWriter
Résultat void

VisualizeChamfers() public méthode

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
Résultat void

VisualizeLuminousity() public méthode

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
Résultat void

VisualizeThresholded() public méthode

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
Résultat void

Property Details

BUFFER public_oe static_oe property

public static int BUFFER
Résultat int

Chamfer public_oe property

public List Chamfer
Résultat List

Convolution public_oe property

public List Convolution
Résultat List

ConvolutionKernel public_oe static_oe property

public static double[] ConvolutionKernel
Résultat double[]

Filepath public_oe property

public string Filepath
Résultat string

Id public_oe property

public long Id
Résultat long

Luminousity public_oe property

public List Luminousity
Résultat List

OCR_EMPTY_THRESHOLD public_oe static_oe property

public static int OCR_EMPTY_THRESHOLD
Résultat int

Offsets public_oe property

public List Offsets
Résultat List

SAMPLE_SIZE public_oe static_oe property

public static int SAMPLE_SIZE
Résultat int

Sparsity public_oe property

public List Sparsity
Résultat List

THRESHOLD public_oe static_oe property

public static double THRESHOLD
Résultat double

Thresholded public_oe property

public List Thresholded
Résultat List