An open API service indexing awesome lists of open source software.

https://github.com/tanvir-robin/google-ml-subject-segmentation-flutter

A implementation of Google ML Subject Segmentation Kit to Flutter App through method channel.
https://github.com/tanvir-robin/google-ml-subject-segmentation-flutter

flutter google-ml-kit image-processing java machine-learning method-channel

Last synced: about 2 months ago
JSON representation

A implementation of Google ML Subject Segmentation Kit to Flutter App through method channel.

Awesome Lists containing this project

README

        

# Flutter - Subject Segementer
## _Google ML Kit Implementation in Flutter using MethodChannel_

![hero.png](https://www.dropbox.com/scl/fi/8o3d1b6fpoonde4yp3ipt/hero.png?rlkey=0691kytekyhlmu50yg0wrpzl9&dl=0&raw=1) ![flutter5786-removebg-preview (1).png](https://www.dropbox.com/scl/fi/1f0n0i3cj5nx18294nqcq/flutter5786-removebg-preview-1.png?rlkey=jmqa9nk4mfno16o2k0s1fgle9&dl=0&raw=1)

#### Subject Segmentation is a ML model for Android provided by Google Machine Learning.There is not direct support to flutter of that kit. Here in this project, I have used flutter method channel to implement this.

- Pick any Image you want.
- Press on "Process Image" button.
- ✨Magic ✨

## Features

- Supports JPG, JPEG, PNG, WEBP

## Tech

- Flutter & Dart
- Google ML Kit
- Platform Specific Code (Java)
- Image conversion

## Installation

This project requires [Flutter SDK](https://flutter.dev/) to run.

Clone the repo to your local machine

```sh
cd
gh repo clone tanvir-robin/Google-ML-Subject-Segmentation-Flutter
```

Load the dependencies

```sh
flutter pub get all
```

> The project must be run on a real device to work on. This plugin doesn't support running on emulators.
> Connect your real device via USB cable and choose it on device panel

Run the project

```sh
flutter run
```

## Development

Want to contribute? Great!
Feel free to fork and create pull request.

## Glimps

![Glimps](https://github.com/tanvir-robin/Google-ML-Subject-Segmentation-Flutter/assets/95021955/34a527af-fd8e-4f6c-b865-827ba9ec1826)

## Read More
- [Subject Segmentation - Google ML Kit](https://developers.google.com/ml-kit/vision/subject-segmentation/android)
- [Method Channel - Flutter](https://docs.flutter.dev/platform-integration/platform-channels?tab=android-channel-java)