GetRectangles

GetRectangles(string, AreasType, bool)

Detects text areas on image. Automatic image skew correction is not applied. Supports GIF, PNG, JPEG, BMP, TIFF, JFIF.

public List<Rectangle> GetRectangles(string fullPath, AreasType areasType = AreasType.PARAGRAPHS, 
    bool detectAreas = true)
ParameterTypeDescription
fullPathStringPath to the image.
areasTypeAreasTypeDeterminates wich rectangles to return - line or paragraphs.
detectAreasBooleanEnable automatic text areas detection.

Return Value

List of detected text areas or lines.

See Also


GetRectangles(MemoryStream, AreasType, bool)

Detects text areas on image. Automatic image skew correction is not applied. Supports GIF, PNG, JPEG, BMP, TIFF, JFIF.

public List<Rectangle> GetRectangles(MemoryStream image, 
    AreasType areasType = AreasType.PARAGRAPHS, bool detectAreas = true)
ParameterTypeDescription
imageMemoryStreamMemory stream containing the image.
areasTypeAreasTypeDeterminates wich rectangles to return - line or paragraphs.
detectAreasBooleanEnable automatic text areas detection.

Return Value

List of detected text areas or lines.

See Also