C# 클래스 ARKBreedingStats.ArkOCR

파일 보기 프로젝트 열기: cadon/ARKStatsExtractor

공개 프로퍼티들

프로퍼티 타입 설명
ARKProcess System.Diagnostics.Process
alphabet ].Bitmap[
currentResolution int
hashMap List>.Dictionary
lastLetterPositions Point>.Dictionary
reducedAlphabet ].Bitmap[
statPositions Point>.Dictionary

공개 메소드들

메소드 설명
ArkOCR ( ) : System
CalibrateFromImage ( int resolution, Bitmap source, string textInImage ) : void
GetGreyScale ( Bitmap source, bool writingInWhite = false ) : Bitmap
PercentageMatch ( Bitmap img1, Bitmap img2 ) : float
SubImage ( Bitmap source, int x, int y, int width, int height ) : Bitmap
calibrate ( Bitmap screenshot ) : bool
doOCR ( string &OCRText, string &dinoName, string useImageFilePath = "", bool changeForegroundWindow = true ) : float[]
isDinoInventoryVisible ( ) : bool
lastLetterPosition ( Bitmap source ) : int
removePixelsUnderThreshold ( Bitmap source, int threshold ) : Bitmap

비공개 메소드들

메소드 설명
AddBitmapToDebug ( Bitmap bmp ) : PictureBox
GenerateLetterImagesFromFont ( Int16 pixelSize ) : void
HasWhiteInVerticalLine ( Bitmap source, int posXInImage ) : bool
StoreImageInAlphabet ( int resolution, char letter, Bitmap source, int letterStart, int letterEnd ) : void
letterRect ( Bitmap source, int hStart, int hEnd ) : Rectangle
readImage ( int resolution, Bitmap source, bool onlyMaximalMatches, bool onlyNumbers, bool writingInWhite = true ) : string
readImageAtCoords ( int resolution, Bitmap source, int x, int y, int width, int height, bool onlyMaximalMatches, bool onlyNumbers, bool writingInWhite = true ) : string
setDebugPanel ( System.Windows.Forms.FlowLayoutPanel OCRDebugLayoutPanel ) : void

메소드 상세

ArkOCR() 공개 메소드

public ArkOCR ( ) : System
리턴 System

CalibrateFromImage() 공개 메소드

public CalibrateFromImage ( int resolution, Bitmap source, string textInImage ) : void
resolution int
source System.Drawing.Bitmap
textInImage string
리턴 void

GetGreyScale() 공개 메소드

public GetGreyScale ( Bitmap source, bool writingInWhite = false ) : Bitmap
source System.Drawing.Bitmap
writingInWhite bool
리턴 System.Drawing.Bitmap

PercentageMatch() 공개 메소드

public PercentageMatch ( Bitmap img1, Bitmap img2 ) : float
img1 System.Drawing.Bitmap
img2 System.Drawing.Bitmap
리턴 float

SubImage() 공개 메소드

public SubImage ( Bitmap source, int x, int y, int width, int height ) : Bitmap
source System.Drawing.Bitmap
x int
y int
width int
height int
리턴 System.Drawing.Bitmap

calibrate() 공개 메소드

public calibrate ( Bitmap screenshot ) : bool
screenshot System.Drawing.Bitmap
리턴 bool

doOCR() 공개 메소드

public doOCR ( string &OCRText, string &dinoName, string useImageFilePath = "", bool changeForegroundWindow = true ) : float[]
OCRText string
dinoName string
useImageFilePath string
changeForegroundWindow bool
리턴 float[]

isDinoInventoryVisible() 공개 메소드

public isDinoInventoryVisible ( ) : bool
리턴 bool

lastLetterPosition() 공개 메소드

public lastLetterPosition ( Bitmap source ) : int
source System.Drawing.Bitmap
리턴 int

removePixelsUnderThreshold() 공개 메소드

public removePixelsUnderThreshold ( Bitmap source, int threshold ) : Bitmap
source System.Drawing.Bitmap
threshold int
리턴 System.Drawing.Bitmap

프로퍼티 상세

ARKProcess 공개적으로 프로퍼티

public Process,System.Diagnostics ARKProcess
리턴 System.Diagnostics.Process

alphabet 공개적으로 프로퍼티

public Bitmap[,] alphabet
리턴 ].Bitmap[

currentResolution 공개적으로 프로퍼티

public int currentResolution
리턴 int

hashMap 공개적으로 프로퍼티

public Dictionary> hashMap
리턴 List>.Dictionary

lastLetterPositions 공개적으로 프로퍼티

public Dictionary lastLetterPositions
리턴 Point>.Dictionary

reducedAlphabet 공개적으로 프로퍼티

public Bitmap[,] reducedAlphabet
리턴 ].Bitmap[

statPositions 공개적으로 프로퍼티

public Dictionary statPositions
리턴 Point>.Dictionary