https://github.com/antoinegtir/background-remover
First Flutter package that remove background from selfie using Google ML Kit
https://github.com/antoinegtir/background-remover
android dart flutter ml package pub-dev
Last synced: 4 months ago
JSON representation
First Flutter package that remove background from selfie using Google ML Kit
- Host: GitHub
- URL: https://github.com/antoinegtir/background-remover
- Owner: Antoinegtir
- License: apache-2.0
- Created: 2023-12-28T17:19:18.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-04T11:05:31.000Z (over 1 year ago)
- Last Synced: 2025-10-23T04:57:54.882Z (4 months ago)
- Topics: android, dart, flutter, ml, package, pub-dev
- Language: Kotlin
- Homepage: https://pub.dev/packages/background_remover
- Size: 1.84 MB
- Stars: 25
- Watchers: 2
- Forks: 13
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: CODEOWNERS
- Security: SECURITY
- Authors: AUTHORS
Awesome Lists containing this project
README
# Background Remover
| Before | After
| ----------------------------------------------------- | ---------------------------------------------------- |
|
| 
## Overview
The `background_remover` package is the first Flutter plugin designed for easy integration of background removal functionality into Flutter applications. This package provides a straightforward way to pick images from the gallery and process them to remove their background.
## Features
- Image picking from gallery
- Background removal from images
- Display of images with and without background
## Getting Started
To use the `background_remover` package, follow these steps:
### Installation
Add `background_remover` to your `pubspec.yaml` file:
```yaml
dependencies:
flutter:
sdk: flutter
background_remover: ^1.0.0
```
### Import the Package
Import the package along with other required packages in your Dart file:
```dart
import 'package:background_remover/background_remover.dart';
```
### Usage
Here is a basic example of how to use the `background_remover` package in a Flutter application:
```dart
Uint8List imageBytes = your image as byte;
removeBackground(imageBytes: imageBytes).then((Uint8List backgroundRemoveBytes) {
// then do whatever you want with byte of images such as display it in image.memory()..
});
```
`removeBackground()` is the method that handles the background removal process.
## Contributing
Contributions to the `background_remover` package are welcome. Please feel free to fork the repository, make changes, and create a pull request to upgrade it.
## License
This package is licensed under the [Apache License](LICENSE).
---
This README provides a basic introduction to the `background_remover` package. It assumes the reader has a fundamental understanding of Flutter and Dart.