Learn R Programming

handwriter (version 3.1.1)

processDocument: Process Document

Description

Load a handwriting sample from a PNG image. Then binarize, thin, and split the handwriting into graphs.

Usage

processDocument(path)

Value

The processed document as a list

Arguments

path

File path for handwriting document. The document must be in PNG file format.

Examples

Run this code
image_path <- system.file("extdata", "phrase_example.png", package = "handwriter")
doc <- processDocument(image_path)
plotImage(doc)
plotImageThinned(doc)
plotNodes(doc)

Run the code above in your browser using DataLab