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 year 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 (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T20:40:46.000Z (over 3 years ago)
- Last Synced: 2025-04-13T07:48:17.186Z (about 1 year ago)
- Topics: image-processing, imager, r
- Language: C++
- Homepage: https://CRAN.R-project.org/package=imagerExtra
- Size: 589 KB
- Stars: 11
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# imagerExtra
[](https://github.com/ShotaOchi/imagerExtra/actions)
[](https://cran.r-project.org/package=imagerExtra)
[](https://www.gnu.org/licenses/gpl-3.0)
[](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/).