Last updated:
0 purchases
flutter nude detector
flutter_nude_detector #
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
copied to clipboard
Download .tflite model and save it in:
project/
assets/
ml_models/
nude.tflite
copied to clipboard
Modify pubspec.yaml file
flutter:
assets:
- assets/ml_models/
copied to clipboard
Now you are ready to use the package 🎉
🧑🏻💻 Usage #
final hasNudity = await FlutterNudeDetector.detect(path: imagePath);
copied to clipboard
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
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.