C# Класс OcrLibrary.Helpers.Screenshot

Screenshot class to do some pre-processing before running the OCR algorithm
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

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

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