lines.textlines {image.textlinedetector} | R 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 |
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
[Package image.textlinedetector version 0.2.3 Index]