FLUTTER ECOSYSTEM

piekarskipiotr/flutter-nude-detector

Flutter न्यूड डिटेक्टर पैकेज।

flutter-nude-detector प्रोजेक्ट कवर
Stars
4
Forks
4
अंतिम पुश (UTC)
3 नव॰ 2023
प्रोजेक्ट स्थिति
आर्काइव
Piotr Piekarski GitHub avatar
GITHUB User

Piotr Piekarski ↗

I build mobile apps 🤓💙

Poland
भाषाएँDartRubySwiftKotlinObjective-C

तकनीकी विषय

उपयोग की गई निर्भरताएँ

निर्भरता सूची 7 आइटम

मूल README

यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।

README खोलें / बंद करें

flutter_nude_detector

style: very good analysis Powered by Mason License: MIT

An easy-to-use nudity detector build with google_mlkit_image_labeling package and using a pre-build .tflite model by nipunru from nsfw-detector-android repository.

Installation

Add package to your flutter project

flutter pub add flutter_nude_detector

Download .tflite model and save it in:

project/
    assets/
        ml_models/
            nude.tflite

Modify pubspec.yaml file

flutter:
  assets:
    - assets/ml_models/

Now you are ready to use the package 🎉

🧑🏻‍💻 Usage
final hasNudity = await FlutterNudeDetector.detect(path: imagePath);
Function properties — hasNudity
Property name Type Description
path String required argument
threshold double optional argument, default value is set to 0.7
modelAssetsPath String optional argument, default value is set to assets/ml_models/nude.tflite