egirlskey/packages/backend
syuilo e560601815
feat: auto nsfw detection (#8840)
* feat: auto nsfw detection

* ✌️

* Update ja-JP.yml

* Update ja-JP.yml

* ポルノ判定のしきい値を高めに

* エラーハンドリングちゃんとした

* Update ja-JP.yml

* 感度設定を強化

* refactor

* feat: add video support for auto nsfw detection

* rename: image -> media

* .js

* fix: add missing error handling

* fix: use valid pathname instead of using filename due to invalid usage

* perf(nsfw-detection): decode frames

* disable detection of video for some reasons

* perf(nsfw-detection): streamify detection process for video

* disable disallowUploadWhenPredictedAsPorn option

* fix(nsfw-detection): improve reliability

* fix(nsfw-detection): use Math.ceil instead of Math.round

* perf(nsfw-detection): delete tmp frames after used

* fix(nsfw-detection): FSWatcher does not emit ready event

* perf(nsfw-detection): skip black frames

* refactor: strip exists check

* Update package.json

* めっちゃ変えた

* lint

* Update COPYING

* オプションで動画解析できるように

* Update yarn.lock

* Update CHANGELOG.md

Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
2022-07-07 21:06:37 +09:00
..
.vscode Update settings.json 2022-04-15 21:33:00 +09:00
assets feat: Add Badge Image to Push Notification (#8012) 2022-06-20 00:33:46 +09:00
migration feat: auto nsfw detection (#8840) 2022-07-07 21:06:37 +09:00
nsfw-model feat: auto nsfw detection (#8840) 2022-07-07 21:06:37 +09:00
src feat: auto nsfw detection (#8840) 2022-07-07 21:06:37 +09:00
test feat: auto nsfw detection (#8840) 2022-07-07 21:06:37 +09:00
.eslintignore use eslint 2021-11-12 10:35:41 +09:00
.eslintrc.cjs test: __dirnameはESModuleでは使えないので置き換えた (#8626) 2022-05-14 16:09:47 +09:00
.mocharc.json fix: mocha テストが動かないのを修正 v2 (#8892) 2022-06-26 19:16:32 +09:00
.npmrc
.yarnrc use eslint 2021-11-12 10:35:41 +09:00
jsconfig.json use eslint 2021-11-12 10:35:41 +09:00
ormconfig.js refactor: migrate to typeorm 3.0 (#8443) 2022-03-26 15:34:00 +09:00
package.json feat: auto nsfw detection (#8840) 2022-07-07 21:06:37 +09:00
tsconfig.json update node to 18 2022-04-23 12:37:44 +09:00
watch.mjs implement dev command 2021-11-19 14:48:59 +09:00
yarn.lock feat: auto nsfw detection (#8840) 2022-07-07 21:06:37 +09:00