DocumentImage.extractRoiWithColor Method¶
Module: DocumentImage
Definition¶
Extracts a region of interest in the image according to the given bounds.
extract_roi_with_color(self, bounds: Rectangle, color_red: int, color_green: int, color_blue: int) -> DocumentImage
Parameters
boundsRectanglein Bounds of the crop to extract.color_redintin Background color red (from 0 to 255)color_greenintin Background color green (from 0 to 255)color_blueintin Background color blue (from 0 to 255)
Returns
The extracted region of interest.
Exceptions
An error has occurred during Document Library execution.
DocumentImage extractRoiWithColor(Rectangle bounds, int colorRed, int colorGreen, int colorBlue)
Parameters
boundsRectanglein Bounds of the crop to extract.colorRedintin Background color red (from 0 to 255)colorGreenintin Background color green (from 0 to 255)colorBlueintin Background color blue (from 0 to 255)
Returns
The extracted region of interest.
Exceptions
An error has occurred during Document Library execution.
public DocumentImage ExtractRoiWithColor(Rectangle bounds, int colorRed, int colorGreen, int colorBlue)
Parameters
boundsRectanglein Bounds of the crop to extract.colorRedintin Background color red (from 0 to 255)colorGreenintin Background color green (from 0 to 255)colorBlueintin Background color blue (from 0 to 255)
Returns
The extracted region of interest.
Exceptions
An error has occurred during Document Library execution.
public DocumentImage extractRoiWithColor(Rectangle bounds, int colorRed, int colorGreen, int colorBlue) throws DocumentException
Parameters
boundsRectanglein Bounds of the crop to extract.colorRedintin Background color red (from 0 to 255)colorGreenintin Background color green (from 0 to 255)colorBlueintin Background color blue (from 0 to 255)
Returns
The extracted region of interest.
Exceptions
An error has occurred during Document Library execution.
public func extractRoiWithColor(bounds: Rectangle, colorRed: Int32, colorGreen: Int32, colorBlue: Int32) throws -> DocumentImage
Parameters
boundsRectanglein Bounds of the crop to extract.colorRedInt32in Background color red (from 0 to 255)colorGreenInt32in Background color green (from 0 to 255)colorBlueInt32in Background color blue (from 0 to 255)
Returns
The extracted region of interest.
Exceptions
An error has occurred during Document Library execution.
int id3DocumentImage_ExtractRoiWithColor (
ID3_DOCUMENT_IMAGE hDocumentImage,
ID3_DOCUMENT_RECTANGLE hBounds,
int colorRed,
int colorGreen,
int colorBlue,
ID3_DOCUMENT_IMAGE hDocumentImageRoi)
Parameters
hDocumentImageID3_DOCUMENT_IMAGEin Handle to the DocumentImage object.hBoundsID3_DOCUMENT_RECTANGLEin Bounds of the crop to extract.colorRedintin Background color red (from 0 to 255)colorGreenintin Background color green (from 0 to 255)colorBlueintin Background color blue (from 0 to 255)hDocumentImageRoiID3_DOCUMENT_IMAGEout The extracted region of interest.
Returns