Skip to content
pubscout

local_rembg

1.1.3, released 2 years ago by an unverified publisher

Offline background removal for images on Android and iOS.

WASM-ready
$ flutter pub add local_rembg
Source repository

What it does

A Flutter plugin that performs offline background removal and object/person detection on images. It supports both image paths and Uint8List inputs across Android and iOS platforms.

AI-written summary of version 1.1.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to remove image backgrounds offline without using an external API.
  • You are building a photo editing app for Android and iOS.
  • You need object and person detection for background segmentation.

Skip it when

  • You need background removal on platforms other than Android and iOS.
  • You require web or desktop support.

Strengths

  • Works completely offline without internet connection.
  • Supports both Android and iOS platforms.
  • Handles both person and object detection.

Weaknesses

  • Limited platform support (only Android and iOS).
  • No web or desktop support documented.

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
1

Requires iOS 15+ and Android 4.4+ (SDK 19). Add the dependency to pubspec.yaml.

Future<LocalRembgResultModel> removeBackground() async {
  LocalRembgResultModel localRembgResultModel = await LocalRembg.removeBackground(
     imagePath: 'Your Image Path',
     imageUint8List: null,
     cropTheImage: true,
  );
  return localRembgResultModel;
}

Alternatives

Packages that do the same job and could replace local_rembg.

Works with

Packages commonly used together with local_rembg: ones it builds on, ones built on it, and its own family.