Filters and Image Processing
Image Filters
You can apply a series of filter, cropping an resizing operations to images. See the API reference for details on the supported operations:
imageCrop
imageFilter
See below for a list of available filters.imageResize
imageRotate
Images need to be provided in one of the supported formats.
Available Filters
There are a number of filters available that can help you improve your scan results. Most of the filters can also be configured. See the API reference for a list of available filters and their parameters.
Example
let image = ... // your image data
image = await ScanbotSDK.imageCrop(image, [{x: 0.1, y: 0.1}, {x: 0.9, y: 0.1}, {x: 0.9, y: 0.9}, {x: 0.1, y: 0.9}]);
image = await ScanbotSDK.imageRotate(image, "CLOCKWISE_90");
image = await ScanbotSDK.imageFilter(image, new ScanbotSDK.Config.ScanbotBinarizationFilter());
const jpegData = await ScanbotSDK.imageToJpeg(image);
Want to scan longer than one minute?
Generate a free trial license to test the Scanbot SDK thoroughly.
Get your free Trial LicenseWhat do you think of this documentation?
What can we do to improve it? Please be as detailed as you like.