mean_image (Image, ImageMean1, 3, 3)
mean_image (Image, ImageMean2, 50, 50)
dyn_threshold (ImageMean1, ImageMean2, RegionDynThresh, 35, 'light')
connection (RegionDynThresh, ConnectedRegions)
select_shape (ConnectedRegions, SelectedRegions, ['width','height'], 'and', [10,10], [50,60])
dilation_circle (SelectedRegions, RegionDilation, 2)
region_to_bin (RegionDilation, BinImage, 0, 255, Width, Height)
shape_trans (RegionDilation, RegionTrans, 'rectangle1')
sort_region (RegionTrans, SortedRegions, 'character', 'true', 'row')
read_ocr_class_mlp ('Pharma_0-9+.omc', OCRHandle)
do_ocr_multi_class_mlp (SortedRegions, BinImage, OCRHandle, Class, Confidence)
smallest_rectangle1 (SortedRegions, Row1, Column1, Row2, Column2)