Learn R Programming

handwriter (version 3.2.4)

processHandwriting: Process Handwriting by Component

Description

The main driver of handwriting processing. Takes in an image of thinned handwriting created with thinImage() and splits the the handwriting into shapes called graphs. Instead of processing the entire document at once, the thinned writing is separated into connected components and each component is split into graphs.

Usage

processHandwriting(img, dims)

Value

A list of the processed image

Arguments

img

Thinned binary image created with thinImage().

dims

Dimensions of thinned binary image.

Examples

Run this code
twoSent_document <- list()
twoSent_document$image <- twoSent
twoSent_document$thin <- thinImage(twoSent_document$image)
twoSent_processList <- processHandwriting(twoSent_document$thin, dim(twoSent_document$image))

Run the code above in your browser using DataLab