Remove the background from an image using pre-trained deep learning segmentation models ('U-2-Net', 'ISNet', 'BiRefNet' and others) run through the 'ONNX' Runtime via the 'onnxr' package. Given an image, a model predicts a foreground alpha matte which is composited into a cutout with a transparent (or solid-colour) background; optional closed-form alpha matting (ported from 'pymatting') refines soft edges. An R port of the Python 'rembg' package (<https://github.com/danielgatis/rembg>). Models are downloaded on first use and cached in a per-user cache directory.
| Version: | 0.1.1 |
| Imports: | onnxr, jpeg, png, Matrix, tools, utils |
| Suggests: | tinytest, openssl |
| Published: | 2026-07-22 |
| DOI: | 10.32614/CRAN.package.rembg |
| Author: | Troy Hernandez |
| Maintainer: | Troy Hernandez <troy at cornball.ai> |
| BugReports: | https://github.com/cornball-ai/rembg/issues |
| License: | MIT + file LICENSE |
| URL: | https://github.com/cornball-ai/rembg |
| NeedsCompilation: | no |
| Materials: | README, NEWS |
| CRAN checks: | rembg results |
| Reference manual: | rembg.html , rembg.pdf |
| Package source: | rembg_0.1.1.tar.gz |
| Windows binaries: | r-devel: rembg_0.1.1.zip, r-release: rembg_0.1.1.zip, r-oldrel: not available |
| macOS binaries: | r-release (arm64): rembg_0.1.1.tgz, r-oldrel (arm64): rembg_0.1.1.tgz, r-release (x86_64): rembg_0.1.1.tgz, r-oldrel (x86_64): rembg_0.1.1.tgz |
Please use the canonical form https://CRAN.R-project.org/package=rembg to link to this page.
Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.
This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.