getChars: Sweep each line of text in a text cavas to estimate character...

View source: R/textCanvas.R

getCharsR Documentation

Sweep each line of text in a text cavas to estimate character locations.

Description

None yet

Usage

getChars(canvas, lines)

Arguments

canvas

A N dimensional matrix (product of png::readPNG()) corresponding to bitmap image.

lines

Data.frame generated by applying guessLines() to canvas.

Details

None yet

Value

A data frame containing 1 row for each character in each line of canvas, and the following columns:

  1. line: Integer indicating line number, counting from the top of the canvas.

  2. char: Integer indicating the character number, counting from the left most.

  3. left: Integer indicating left-most extent of character in pixels.

  4. right: Integer indicating right-most extent of character in pixels.

Author(s)

Dave Braze <davebraze@gmail.com>


davebraze/FDBeye documentation built on April 28, 2022, 1:20 a.m.