FLUTTER ECOSYSTEM

Antoinegtir/background-remover

Google ML Kit를 사용하여 셀피에서 배경을 제거하는 최초의 Flutter 패키지

배경 제거 프로젝트 이미지
Stars
24
Forks
13
최근 푸시(UTC)
2024. 8. 4.
프로젝트 상태
활성
Antoine GitHub avatar
GITHUB User

Antoine ↗

21. 🇫🇷, Founder at Wellnotes, ex Founding engineer at Vibes

언어KotlinDartJava

기술 주제

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 3 개
  • flutter{"sdk":"flutter"}
  • flutter_test개발 의존성{"sdk":"flutter"}
  • flutter_lints개발 의존성^2.0.0

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

Background Remover

Before After
https://firebasestorage.googleapis.com/v0/b/test-bdb24.appspot.com/o/before.png?alt=media&token=1f1787f4-1d3d-4b25-8f3e-3fd50b1db408 https://firebasestorage.googleapis.com/v0/b/test-bdb24.appspot.com/o/after.png?alt=media&token=5c65be26-9f14-48fb-bb41-6e7a41de613d

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:

dependencies:
  flutter:
    sdk: flutter
  background_remover: ^1.0.0
Import the Package

Import the package along with other required packages in your Dart file:

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:

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.


This README provides a basic introduction to the background_remover package. It assumes the reader has a fundamental understanding of Flutter and Dart.