flutter_nude_detector 0.0.4 copy "flutter_nude_detector: ^0.0.4" to clipboard
flutter_nude_detector: ^0.0.4 copied to clipboard

flutter_nudity_detection is a comprehensive Flutter package that enables developers to detect nudity content in images with ease. It leverages the power of advanced machine learning algorithms to accu [...]

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
29
likes
140
points
14
downloads

Publisher

unverified uploader

Weekly Downloads

flutter_nudity_detection is a comprehensive Flutter package that enables developers to detect nudity content in images with ease. It leverages the power of advanced machine learning algorithms to accurately identify and flag explicit or adult content within images, ensuring a safer and more secure user experience.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, google_mlkit_image_labeling, path, path_provider

More

Packages that depend on flutter_nude_detector