Page 1 of 1

Unclear DetectBorder feature

Posted: Fri Apr 07, 2017 10:01 am
by isoler
Hello all,

we don't understand what the DetectBorder method does and how it works. Documentation just says:
Detects the border around the image.
Size of border around the image. Possible values: 0 - 100. Default value is 5.
We need to detect if there is a border on the image and remove it but we don't know the border size so how can we specify its size on the parameter? And what does the method when detects the border? Deletes it? Change the border color?

Thanks in advance.

Re: Unclear DetectBorder feature

Posted: Tue Apr 11, 2017 11:55 am
by Alex

The DetectBorder method:
  • finds the background color
  • finds the pixels with background color on the image border and determines the image border rectangle
  • inflates the image border rectangle if borderSize parameter is greater than 0
  • crops the image using the image border rectangle
Please try to use VintaSoft Document Cleanup .NET Plug-in if you need professional functionality for processing of document images.

Best regards, Alexander