C# 클래스 OcrLibrary.Helpers.Screenshot

Screenshot class to do some pre-processing before running the OCR algorithm
상속: IDisposable
파일 보기 프로젝트 열기: sealuzh/PersonalAnalytics 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Image System.Drawing.Bitmap

공개 메소드들

메소드 설명
Crop ( ) : void

Crops the image (removes some toolbars)

Dispose ( ) : void

try to free up memory garbage collector

Resize ( ) : void

need to resize the image to 300dpi, otherwise tesseract will not be able to recognize anything TODO: often fails due to some memory problems (invalid parameter)

Save ( string name = "screenshot", bool forced = false ) : void

Helper function to save an image to the desktop

Screenshot ( Bitmap image ) : System
SubtractMedianBlur ( ) : void

Filter: Median Blur Subtract the medium blur (block size ~letter size) from the image

ToBinary ( ) : void

Filter: Threshold (Binary) Binarize the image (threshold)

ToGrayscale ( ) : void

Filter: Grayscale convert to grayscale

메소드 상세

Crop() 공개 메소드

Crops the image (removes some toolbars)
public Crop ( ) : void
리턴 void

Dispose() 공개 메소드

try to free up memory garbage collector
public Dispose ( ) : void
리턴 void

Resize() 공개 메소드

need to resize the image to 300dpi, otherwise tesseract will not be able to recognize anything TODO: often fails due to some memory problems (invalid parameter)
public Resize ( ) : void
리턴 void

Save() 공개 메소드

Helper function to save an image to the desktop
public Save ( string name = "screenshot", bool forced = false ) : void
name string
forced bool
리턴 void

Screenshot() 공개 메소드

public Screenshot ( Bitmap image ) : System
image System.Drawing.Bitmap
리턴 System

SubtractMedianBlur() 공개 메소드

Filter: Median Blur Subtract the medium blur (block size ~letter size) from the image
public SubtractMedianBlur ( ) : void
리턴 void

ToBinary() 공개 메소드

Filter: Threshold (Binary) Binarize the image (threshold)
public ToBinary ( ) : void
리턴 void

ToGrayscale() 공개 메소드

Filter: Grayscale convert to grayscale
public ToGrayscale ( ) : void
리턴 void

프로퍼티 상세

Image 공개적으로 프로퍼티

public Bitmap,System.Drawing Image
리턴 System.Drawing.Bitmap