搜尋套件、儲存庫與 APP 分類

GitHub 儲存庫piekarskipiotr/flutter-nude-detector

flutter-nude-detector

Flutter 裸露檢測套件。

flutter-nude-detector 專案封面
星標
4
分支
4
最近推送(UTC)
2023年11月3日
專案狀態
已封存

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

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
Piotr Piekarski GitHub avatar
GitHub 作者

Piotr Piekarski ↗

I build mobile apps 🤓💙

Poland
語言DartRubySwiftKotlinObjective-C

分類

使用的依賴

依賴清單 7 項

如何選擇適合專案的儲存庫?

先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。

  1. 透過儲存庫名稱、作者或描述搜尋,再依技術分類縮小範圍。
  2. 綜合星標、分支與最近推送比較專案;星標反映社群關注,不保證品質。
  3. 使用前在 GitHub 確認 README、授權條款與 Issues。

來源與維護

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗