FLUTTER ECOSYSTEM

piekarskipiotr/flutter-nude-detector

Flutter 누드 감지 패키지。

flutter-nude-detector 프로젝트 이미지
Stars
4
Forks
4
최근 푸시(UTC)
2023. 11. 3.
프로젝트 상태
보관됨
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