C# Класс ARKBreedingStats.ArkOCR

Показать файл Открыть проект

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

Свойство Тип Описание
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