scale(value) |
Scales the image up or down |
rotate(degrees) |
Rotates the image |
crop(x, y, width, height) |
Crops the image |
deskew([maxDegrees]) |
Deskew the image - optionally you can specify the max degrees |
grayscale() |
Converts the image to grayscale |
invert() |
Color inverts the image |
sharpen([filterHalfWidth, fractionOfEdge]) |
Sharpens the image (for gray/color images) - optionally specify the sharpen params |
bgNorm([reduction, size, bgValue]) |
Normalizes background (gray/color) - optionally specify the normalization params |
contrastNorm([size, minDiff, smooth]) |
Normalizes contrast (gray only) - optionally specify the normalization params |
detectEdge([horizontal, vertical]) |
Detects edge (gray only) - optionally specify the params |
bin1([windowHalfWidth, factor, subdivisions]) |
Binarizes gray images into binrary (black/white) - optional params |
autoRotate([confThreshold]) |
Auto rotates page (binary only) - deskew and binarize images first |