Other packages > Find by keyword >

rembg  

Remove Image Backgrounds with Pre-Trained Segmentation Models
View on CRAN: Click here


Download and install rembg package within the R console
Install from CRAN:
install.packages("rembg")

Install from Github:
library("remotes")
install_github("cran/rembg")

Install by package version:
library("remotes")
install_version("rembg", "0.1.1")



Attach the package and use:
library("rembg")
Maintained by
Troy Hernandez
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2026-07-22
Latest Update: 2026-07-22
Description:
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.
How to cite:
Troy Hernandez (2026). rembg: Remove Image Backgrounds with Pre-Trained Segmentation Models. R package version 0.1.1, https://cran.r-project.org/web/packages/rembg. Accessed 24 Oct. 2026.
Previous versions and publish date:
No previous versions
Other packages that cited rembg R package
View rembg citation profile
Other R packages that rembg depends, imports, suggests or enhances
Complete documentation for rembg
Functions, R codes and Examples using the rembg R package
Full rembg package functions and examples
Downloads during the last 30 days

Today's Hot Picks in Authors and Packages

quickcode  
Quick and Essential 'R' Tricks for Better Scripts
The NOT functions, 'R' tricks and a compilation of some simple quick plus often used 'R' codes to im ...
Download / Learn more Package Citations See dependency  
extlasso  
Maximum Penalized Likelihood Estimation with Extended Lasso Penalty
Estimates coefficients of extended LASSO penalized linear regression and generalized linear models. ...
Download / Learn more Package Citations See dependency  
OOBCurve  
Out of Bag Learning Curve
Provides functions to calculate the out-of-bag learning curve for random forests for any measure tha ...
Download / Learn more Package Citations See dependency  
visdat  
Preliminary Visualisation of Data
Create preliminary exploratory data visualisations of an entire dataset to identify problems or une ...
Download / Learn more Package Citations See dependency  
funprog  
Functional Programming
High-order functions for data manipulation : sort or group data, given one or more auxiliary func ...
Download / Learn more Package Citations See dependency  
RcmdrPlugin.depthTools  
R Commander Depth Tools Plug-in
We provide an Rcmdr plug-in based on the depthTools package, which implements different robust stat ...
Download / Learn more Package Citations See dependency  

29,218

R Packages

247,686

Dependencies

77,281

Author Associations

29,081

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA