lines.textlines: Extract the polygons of the textlines

View source: R/textlinedetector.R

lines.textlinesR Documentation

Extract the polygons of the textlines

Description

Extract the polygons of the textlines as a cropped rectangular image containing the image content of the line segmented polygon

Usage

## S3 method for class 'textlines'
lines(x, image, crop = TRUE, channels = c("bgr", "gray"), ...)

Arguments

x

an object of class textlines as returned by image_textlines_astar or image_textlines_flor

image

an object of class magick-image

crop

extract only the bounding box of the polygon of the text lines

channels

either 'bgr' or 'gray' to work on the colored data or on binary greyscale data

...

further arguments passed on

Value

the object x where element textlines is replaced with the extracted polygons of text lines

Examples

## See the examples in ?image_textlines_astar or ?image_textlines_flor

image.textlinedetector documentation built on Nov. 10, 2023, 1:09 a.m.