Learn R Programming

image.textlinedetector (version 0.2.3)

lines.textlines: 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 textlines
lines(x, image, crop = TRUE, channels = c("bgr", "gray"), ...)

Value

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

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

Examples

Run this code
## See the examples in ?image_textlines_astar or ?image_textlines_flor

Run the code above in your browser using DataLab