C# 클래스 ExplOCR.ImageLetters

파일 보기 프로젝트 열기: ThoroughlyLostExplorer/ExplOCR

공개 메소드들

메소드 설명
CleanupKerning ( Bytemap sourceFrame, bool number ) : List
CopyRectangle ( Bytemap source, Rectangle area ) : Bytemap

Copy a portion of an existing Bytemap into a new Bytemap. The rectangles that describe the position of the source and the selected area are all relative to the original page bitmap that the OCR is processing.

GetLetterImage ( Bitmap baseBmp, Rectangle frame, Size dimension ) : byte[]
GetPrimitiveLetters ( Bitmap bmp, Rectangle line ) : List
GetPrimitiveLines ( Bitmap bmp ) : List
IsNewHeadlineWord ( List letters, int i ) : bool
IsNewWord ( List letters, int i, bool small ) : bool

비공개 메소드들

메소드 설명
CopyLetter ( Bytemap source, Rectangle area, Size size ) : Bytemap

Copy a portion of an existing Bytemap into a new Bytemap. The new bytemap will always have a size of 'size' (typically a NN letter) regardless of the size of area. Pruning and zero-padding are used to ensure this. No data outside 'area' is copied. The rectangles that describe the position of the source and the selected area are all relative to the original page bitmap that the OCR is processing.

ExtractBytes ( Bitmap source ) : Bytemap
FloodFill ( int originalValue, byte targetValue, Size frame, byte letterBuf, bool number ) : void
FloodFillColumn ( int originalValue, byte targetValue, int a, Size frame, byte letterBuf, bool number ) : bool
GetRowHistogram ( Bitmap bmp, int y, int height ) : int[]
GetSubRect ( Rectangle r, byte letterBuf, int value ) : Rectangle
ImproveDescriptionLines ( Bitmap bmp, TextSection description ) : TextSection
RefinePartition ( ExplOCR.PageSections pageSections, Bitmap binary ) : ExplOCR.PageSections

메소드 상세

CleanupKerning() 공개 정적인 메소드

public static CleanupKerning ( Bytemap sourceFrame, bool number ) : List
sourceFrame Bytemap
number bool
리턴 List

CopyRectangle() 공개 정적인 메소드

Copy a portion of an existing Bytemap into a new Bytemap. The rectangles that describe the position of the source and the selected area are all relative to the original page bitmap that the OCR is processing.
public static CopyRectangle ( Bytemap source, Rectangle area ) : Bytemap
source Bytemap
area System.Drawing.Rectangle
리턴 Bytemap

GetLetterImage() 공개 정적인 메소드

public static GetLetterImage ( Bitmap baseBmp, Rectangle frame, Size dimension ) : byte[]
baseBmp System.Drawing.Bitmap
frame System.Drawing.Rectangle
dimension System.Drawing.Size
리턴 byte[]

GetPrimitiveLetters() 공개 정적인 메소드

public static GetPrimitiveLetters ( Bitmap bmp, Rectangle line ) : List
bmp System.Drawing.Bitmap
line System.Drawing.Rectangle
리턴 List

GetPrimitiveLines() 공개 정적인 메소드

public static GetPrimitiveLines ( Bitmap bmp ) : List
bmp System.Drawing.Bitmap
리턴 List

IsNewHeadlineWord() 공개 정적인 메소드

public static IsNewHeadlineWord ( List letters, int i ) : bool
letters List
i int
리턴 bool

IsNewWord() 공개 정적인 메소드

public static IsNewWord ( List letters, int i, bool small ) : bool
letters List
i int
small bool
리턴 bool