imagerExtra is a R package for image processing based on imager.
Clone or download

README.md

imagerExtra

Build Status CRAN Version License: GPL v3 codecov

About

imagerExtra is a R package for image processing based on the R package imager.

imagerExtra provides advanced functions for image processing.

See the vignette Getting Started with imagerExtara to know what functions imagerExtra provides.

See the introduction of imager if you don't know imager.

See the vignette of imager if you aren't familiar with imager.

Installation

You can install imagerExtra from CRAN or GitHub.

Run the following R code to install imagerExtra.

# install from CRAN
install.packages("imagerExtra")
# install from GitHub
devtools::install_github("ShotaOchi/imagerExtra")

Optical Character Recognition (OCR)

You need the R package tesseract to do OCR with imagerExtra.

See the installation guide of tesseract if you haven't installed tesseract.

Here is a small demo that shows imagerExtra can expand the scope of the application of tesseract.

library(imagerExtra)
# OCR doesn't work well for degraded images
plot(papers)
OCR(papers)
# OCR works well for images with high contrast and little noise
hello <- DenoiseDCT(papers, 0.01) %>% ThresholdAdaptive(., 0.1, range = c(0,1))
plot(hello)
OCR(hello)

Contribution

You can create issues for any bug report or suggestion on the issues page.

You're welcome to fork this repository and send me a pull request for bug fixes or additional features.

Development Blog

URL of development blog of imagerExtra is https://shotaochi.github.io/.