local_rembg
이미지의 오프라인 백그라운드 제거를 위한 플러터 플러그인으로, 모바일 앱 내 사진 편집 기능을 강화하는 데 이상적입니다.
로컬 Rembg, 이미지에서 배경을 오프라인으로 제거하기 위한 Flutter 플러그인(안드로이드/IOS).
{"sdk":"flutter"}^2.0.2{"sdk":"flutter"}^3.0.0아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
The Background Removal Library is a powerful tool designed to seamlessly remove backgrounds from images in both Android and iOS platforms.This library provides developers with an easy-to-use interface to integrate background removal functionality into their mobile applications, enhancing user experience and enabling a wide range of creative possibilities.
Add the plugin package to the pubspec.yaml file in your project:
If you only require person detection on iOS,consider using version 0.0.8 to reduce your app's size.
dependencies:
local_rembg: ^1.1.3
Install the new dependency:
flutter pub get
Call the removeBackground function in your code:
Future<LocalRembgResultModel> removeBackground() async {
LocalRembgResultModel localRembgResultModel = await LocalRembg.removeBackground(
imagePath: // Your Image Path ,
imageUint8List: // Your image Uint8List ,
cropTheImage: // Crop the segmented image (Default true) ,
);
return localRembgResultModel;
}
Explore our Example Project to see how the Local Rembg SDK can be used in a Flutter application.
This library is provided under the Apache License.