C# Class Ocronet.Dynamic.Utils.OcrRoutine

Show file Open project: nickun/OCRonet

Public Properties

Property Type Description
bgcheck bool

Public Methods

Method Description
Invert ( Bytearray a ) : void
average_on_border ( Bytearray a ) : int
background_seems_black ( Bytearray a ) : bool
background_seems_white ( Bytearray a ) : bool
binarize_simple ( Bytearray image ) : int
binarize_simple ( Bytearray result, Bytearray image ) : int
binarize_with_threshold ( Bytearray result, Bytearray image, int threshold ) : void
binarize_with_threshold ( Bytearray result, Floatarray image, float threshold ) : void
binarize_with_threshold ( Bytearray image, int threshold ) : void
binsmooth ( Bytearray binary, Floatarray input, float sigma ) : void
optional_check_background_is_darker ( Bytearray a ) : void
optional_check_background_is_lighter ( Bytearray a ) : void
scale_to ( Floatarray v, Floatarray sub, int csize, float noupscale = 1.0f, float aa = 1.0f ) : void
skeletal_features ( Bytearray endpoints, Bytearray junctions, Bytearray image, float presmooth, float skelsmooth ) : void
threshold_frac ( Bytearray thresholded, Floatarray input, float frac ) : void

Method Details

Invert() public static method

public static Invert ( Bytearray a ) : void
a Bytearray
return void

average_on_border() public static method

public static average_on_border ( Bytearray a ) : int
a Bytearray
return int

background_seems_black() public static method

public static background_seems_black ( Bytearray a ) : bool
a Bytearray
return bool

background_seems_white() public static method

public static background_seems_white ( Bytearray a ) : bool
a Bytearray
return bool

binarize_simple() public static method

public static binarize_simple ( Bytearray image ) : int
image Bytearray
return int

binarize_simple() public static method

public static binarize_simple ( Bytearray result, Bytearray image ) : int
result Bytearray
image Bytearray
return int

binarize_with_threshold() public static method

public static binarize_with_threshold ( Bytearray result, Bytearray image, int threshold ) : void
result Bytearray
image Bytearray
threshold int
return void

binarize_with_threshold() public static method

public static binarize_with_threshold ( Bytearray result, Floatarray image, float threshold ) : void
result Bytearray
image Floatarray
threshold float
return void

binarize_with_threshold() public static method

public static binarize_with_threshold ( Bytearray image, int threshold ) : void
image Bytearray
threshold int
return void

binsmooth() public static method

public static binsmooth ( Bytearray binary, Floatarray input, float sigma ) : void
binary Bytearray
input Floatarray
sigma float
return void

optional_check_background_is_darker() public static method

public static optional_check_background_is_darker ( Bytearray a ) : void
a Bytearray
return void

optional_check_background_is_lighter() public static method

public static optional_check_background_is_lighter ( Bytearray a ) : void
a Bytearray
return void

scale_to() public static method

public static scale_to ( Floatarray v, Floatarray sub, int csize, float noupscale = 1.0f, float aa = 1.0f ) : void
v Floatarray
sub Floatarray
csize int
noupscale float
aa float
return void

skeletal_features() public static method

public static skeletal_features ( Bytearray endpoints, Bytearray junctions, Bytearray image, float presmooth, float skelsmooth ) : void
endpoints Bytearray
junctions Bytearray
image Bytearray
presmooth float
skelsmooth float
return void

threshold_frac() public static method

public static threshold_frac ( Bytearray thresholded, Floatarray input, float frac ) : void
thresholded Bytearray
input Floatarray
frac float
return void

Property Details

bgcheck public static property

Check background. Abort on detecting an inverted image.
public static bool bgcheck
return bool