Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shotaochi/imagerextra
imagerExtra is an R package for image processing based on imager.
https://github.com/shotaochi/imagerextra
image-processing imager r
Last synced: about 1 month ago
JSON representation
imagerExtra is an R package for image processing based on imager.
- Host: GitHub
- URL: https://github.com/shotaochi/imagerextra
- Owner: ShotaOchi
- License: gpl-3.0
- Created: 2018-05-24T12:06:40.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T20:40:46.000Z (almost 2 years ago)
- Last Synced: 2024-10-28T17:32:16.262Z (about 2 months ago)
- Topics: image-processing, imager, r
- Language: C++
- Homepage: https://CRAN.R-project.org/package=imagerExtra
- Size: 589 KB
- Stars: 11
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# imagerExtra
[![Build Status](https://github.com/ShotaOchi/imagerExtra/workflows/R-CMD-check/badge.svg)](https://github.com/ShotaOchi/imagerExtra/actions)
[![CRAN Version](https://www.r-pkg.org/badges/version/imagerExtra)](https://cran.r-project.org/package=imagerExtra)
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
[![codecov](https://codecov.io/gh/ShotaOchi/imagerExtra/branch/master/graph/badge.svg)](https://codecov.io/gh/ShotaOchi/imagerExtra)## About
imagerExtra is an R package for image processing based on the R package [imager](https://github.com/dahtah/imager).imagerExtra provides advanced functions for image processing.
See the vignette [Getting Started with imagerExtra](https://cran.r-project.org/package=imagerExtra/vignettes/gettingstarted.html) to know what functions imagerExtra provides.
See the [introduction of imager](http://dahtah.github.io/imager/) if you don't know imager.
See the [vignette of imager](https://CRAN.R-project.org/package=imager/vignettes/gettingstarted.html) if you aren't familiar with imager.
## Installation
You can install imagerExtra from CRAN or GitHub.Run the following R code to install imagerExtra.
```r
# install from CRAN
install.packages("imagerExtra")
# install from GitHub
devtools::install_github("ShotaOchi/imagerExtra")
```## Optical Character Recognition (OCR)
You need the R package [tesseract](https://github.com/ropensci/tesseract#tesseract) to do OCR with imagerExtra.See the [installation guide of tesseract](https://github.com/ropensci/tesseract#installation) if you haven't installed tesseract.
Here is a small demo that shows imagerExtra can expand the scope of the application of tesseract.
```r
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](https://github.com/ShotaOchi/imagerExtra/issues).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/](https://shotaochi.github.io/).