C# 클래스 HistogramOCRTrainer.HistogramOCR

example usage: https://github.com/andreigec/Word-Find-Solver
파일 보기 프로젝트 열기: andreigec/Word-Find-Solver 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
HistogramHeight int
HistogramWidth int
Letters List
WhiteBitmap System.Drawing.Bitmap

공개 메소드들

메소드 설명
DeSerialise ( string filename ) : HistogramOCR

Des the serialise.

HistogramOCR ( int HWidth = 20, int HHeight = 20 ) : System

initialise with a file, or blank

Normalise ( Bitmap b1 ) : Bitmap

trim white and resize to created dimensions

PerformOCR ( Bitmap b, int spaceForWhiteSpace = -1 ) : string[]

Performs the ocr.

PerformOCR ( string filename, int spaceForWhiteSpace = -1 ) : string[]

Performs the ocr.

PerformOCRCharacterPerfect ( Bitmap b ) : char?

Performs the ocr character perfect.

Serialise ( string filename ) : void

Serialises the specified filename.

SplitUp ( Bitmap b, int whiteToSpace = -1 ) : System.Drawing.Bitmap[][]

Splits up.

Train ( Bitmap b, char letterChar ) : bool

take an image of a letter and a character of what it is, and train the ocr

Train ( string filename, string letters, int spaceForWhiteSpace = -1 ) : bool

Trains the specified filename.

비공개 메소드들

메소드 설명
GetOffScore ( Bitmap b, HistogramLetter l ) : int

get score. score of 0 is perfect

PerformOCRCharacter ( Bitmap b, bool perfectOnly = false ) : char

Performs the ocr character.

Split ( Bitmap b, bool byRow, int &whiteToSpace ) : IEnumerable

Splits the specified b.

메소드 상세

DeSerialise() 공개 정적인 메소드

Des the serialise.
public static DeSerialise ( string filename ) : HistogramOCR
filename string The filename.
리턴 HistogramOCR

HistogramOCR() 공개 메소드

initialise with a file, or blank
public HistogramOCR ( int HWidth = 20, int HHeight = 20 ) : System
HWidth int Width of the h.
HHeight int Height of the h.
리턴 System

Normalise() 공개 메소드

trim white and resize to created dimensions
public Normalise ( Bitmap b1 ) : Bitmap
b1 System.Drawing.Bitmap The b1.
리턴 System.Drawing.Bitmap

PerformOCR() 공개 메소드

Performs the ocr.
public PerformOCR ( Bitmap b, int spaceForWhiteSpace = -1 ) : string[]
b System.Drawing.Bitmap The b.
spaceForWhiteSpace int The space for white space.
리턴 string[]

PerformOCR() 공개 메소드

Performs the ocr.
public PerformOCR ( string filename, int spaceForWhiteSpace = -1 ) : string[]
filename string The filename.
spaceForWhiteSpace int The space for white space.
리턴 string[]

PerformOCRCharacterPerfect() 공개 메소드

Performs the ocr character perfect.
public PerformOCRCharacterPerfect ( Bitmap b ) : char?
b System.Drawing.Bitmap The b.
리턴 char?

Serialise() 공개 메소드

Serialises the specified filename.
public Serialise ( string filename ) : void
filename string The filename.
리턴 void

SplitUp() 공개 메소드

Splits up.
public SplitUp ( Bitmap b, int whiteToSpace = -1 ) : System.Drawing.Bitmap[][]
b System.Drawing.Bitmap The b.
whiteToSpace int default = will calculate
리턴 System.Drawing.Bitmap[][]

Train() 공개 메소드

take an image of a letter and a character of what it is, and train the ocr
public Train ( Bitmap b, char letterChar ) : bool
b System.Drawing.Bitmap The b.
letterChar char The letter character.
리턴 bool

Train() 공개 메소드

Trains the specified filename.
public Train ( string filename, string letters, int spaceForWhiteSpace = -1 ) : bool
filename string The filename.
letters string The letters.
spaceForWhiteSpace int The space for white space.
리턴 bool

프로퍼티 상세

HistogramHeight 공개적으로 프로퍼티

public int HistogramHeight
리턴 int

HistogramWidth 공개적으로 프로퍼티

public int HistogramWidth
리턴 int

Letters 공개적으로 프로퍼티

public List Letters
리턴 List

WhiteBitmap 공개적으로 정적으로 프로퍼티

The white bitmap
public static Bitmap,System.Drawing WhiteBitmap
리턴 System.Drawing.Bitmap