Package: rembg
Type: Package
Title: Remove Image Backgrounds with Pre-Trained Segmentation Models
Version: 0.1.1
Date: 2026-07-13
Authors@R: c(
    person("Troy", "Hernandez", email = "troy@cornball.ai",
           role = c("aut", "cre"),
           comment = c(ORCID = "0009-0005-4248-604X")),
    person("cornball.ai", role = "cph"),
    person("Daniel", "Gatis", role = "cph",
           comment = "Author of the Python 'rembg' package this is ported from"))
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.
License: MIT + file LICENSE
URL: https://github.com/cornball-ai/rembg
BugReports: https://github.com/cornball-ai/rembg/issues
Imports: onnxr, jpeg, png, Matrix, tools, utils
Suggests: tinytest, openssl
Encoding: UTF-8
RoxygenNote: 7.3.2
NeedsCompilation: no
Packaged: 2026-07-14 01:39:13 UTC; troy
Author: Troy Hernandez [aut, cre] (ORCID:
    <https://orcid.org/0009-0005-4248-604X>),
  cornball.ai [cph],
  Daniel Gatis [cph] (Author of the Python 'rembg' package this is ported
    from)
Maintainer: Troy Hernandez <troy@cornball.ai>
Repository: CRAN
Date/Publication: 2026-07-22 07:30:07 UTC
Built: R 4.5.2; ; 2026-07-22 11:59:57 UTC; unix
