we don't understand what the DetectBorder method does and how it works. Documentation just says:
Detects the border around the image. borderSize
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?