C# Class ARKBreedingStats.ArkOCR

Afficher le fichier Open project: cadon/ARKStatsExtractor

Méthodes publiques

Свойство Type Description
ARKProcess System.Diagnostics.Process
alphabet ].Bitmap[
currentResolution int
hashMap List>.Dictionary
lastLetterPositions Point>.Dictionary
reducedAlphabet ].Bitmap[
statPositions Point>.Dictionary

Méthodes publiques

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

Private Methods

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

Method Details

ArkOCR() public méthode

public ArkOCR ( ) : System
Résultat System

CalibrateFromImage() public méthode

public CalibrateFromImage ( int resolution, Bitmap source, string textInImage ) : void
resolution int
source System.Drawing.Bitmap
textInImage string
Résultat void

GetGreyScale() public méthode

public GetGreyScale ( Bitmap source, bool writingInWhite = false ) : Bitmap
source System.Drawing.Bitmap
writingInWhite bool
Résultat System.Drawing.Bitmap

PercentageMatch() public méthode

public PercentageMatch ( Bitmap img1, Bitmap img2 ) : float
img1 System.Drawing.Bitmap
img2 System.Drawing.Bitmap
Résultat float

SubImage() public méthode

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

calibrate() public méthode

public calibrate ( Bitmap screenshot ) : bool
screenshot System.Drawing.Bitmap
Résultat bool

doOCR() public méthode

public doOCR ( string &OCRText, string &dinoName, string useImageFilePath = "", bool changeForegroundWindow = true ) : float[]
OCRText string
dinoName string
useImageFilePath string
changeForegroundWindow bool
Résultat float[]

isDinoInventoryVisible() public méthode

public isDinoInventoryVisible ( ) : bool
Résultat bool

lastLetterPosition() public méthode

public lastLetterPosition ( Bitmap source ) : int
source System.Drawing.Bitmap
Résultat int

removePixelsUnderThreshold() public méthode

public removePixelsUnderThreshold ( Bitmap source, int threshold ) : Bitmap
source System.Drawing.Bitmap
threshold int
Résultat System.Drawing.Bitmap

Property Details

ARKProcess public_oe property

public Process,System.Diagnostics ARKProcess
Résultat System.Diagnostics.Process

alphabet public_oe property

public Bitmap[,] alphabet
Résultat ].Bitmap[

currentResolution public_oe property

public int currentResolution
Résultat int

hashMap public_oe property

public Dictionary> hashMap
Résultat List>.Dictionary

lastLetterPositions public_oe property

public Dictionary lastLetterPositions
Résultat Point>.Dictionary

reducedAlphabet public_oe property

public Bitmap[,] reducedAlphabet
Résultat ].Bitmap[

statPositions public_oe property

public Dictionary statPositions
Résultat Point>.Dictionary