{"id":15116232,"url":"https://github.com/amirzenoozi/nsfw-classification","last_synced_at":"2025-07-09T09:32:20.273Z","repository":{"id":37264957,"uuid":"473140446","full_name":"amirzenoozi/nsfw-classification","owner":"amirzenoozi","description":"A Simple NSFW Classifier Based on Keras and Tensorflow","archived":false,"fork":false,"pushed_at":"2024-03-21T10:54:25.000Z","size":329,"stargazers_count":58,"open_issues_count":1,"forks_count":8,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-04T21:39:47.325Z","etag":null,"topics":["cli","keras-models","keras-tensorflow","nsfw","nsfw-classifier-api","nsfw-detection","nsfw-recognition","nudity","nudity-detection","porn-detection","rest-api","scene-detection","sexy","telegram-bot","telegram-bots","uvicorn"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amirzenoozi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"buy_me_a_coffee":"amirzenoozi","polar":"amirzenoozi"}},"created_at":"2022-03-23T10:34:11.000Z","updated_at":"2025-03-14T06:04:39.000Z","dependencies_parsed_at":"2024-11-20T11:18:35.921Z","dependency_job_id":"c5547e7f-f88a-407a-abee-f493449868ec","html_url":"https://github.com/amirzenoozi/nsfw-classification","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/amirzenoozi/nsfw-classification","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amirzenoozi%2Fnsfw-classification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amirzenoozi%2Fnsfw-classification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amirzenoozi%2Fnsfw-classification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amirzenoozi%2Fnsfw-classification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amirzenoozi","download_url":"https://codeload.github.com/amirzenoozi/nsfw-classification/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amirzenoozi%2Fnsfw-classification/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264431147,"owners_count":23607192,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","keras-models","keras-tensorflow","nsfw","nsfw-classifier-api","nsfw-detection","nsfw-recognition","nudity","nudity-detection","porn-detection","rest-api","scene-detection","sexy","telegram-bot","telegram-bots","uvicorn"],"created_at":"2024-09-26T01:44:14.481Z","updated_at":"2025-07-09T09:32:19.966Z","avatar_url":"https://github.com/amirzenoozi.png","language":"Python","funding_links":["https://buymeacoffee.com/amirzenoozi","https://polar.sh/amirzenoozi"],"categories":["Python"],"sub_categories":[],"readme":"# NSFW Classification ⛔\n\n![](https://github.com/amirzenoozi/nsfw-classification/blob/main/main.png)\n\nWe Use Pretrained Keras Model to Classify `NSFW` Content\n\n\n## Prequisites\nTo run bot you need CPU that supports AVX or AVX2 to run last versions of Tensorflow\nOtherwise you'll see output like this in your console:\n```bash\nIllegal instruction (core dumped)\n```\n### Requirements 📦\n\n```bash\npip install -r requirements.txt\n```\n\n\n## Classifier CLI Options 📋\n\n```bash\n--model     Model File Path                 #default: 'model/model.h5'\n--dir       Directory Path To Classify      #default: 'data/frames'\n--json      Json File Path                  #default: 'data/frames'\n```\n\nThen You Just Need To Run This\n\n```bash\npython main.py --dir PATH_TO_YOUR_DIR --model MODEL_FILE --jsob FOLDER_NAME\n```\n\n## Frame Extractor CLI Options 📋\n\n```bash\n--frame     Frame Threshold     #default: 1800 (Every Minutes)\n--src       Video File PATH     #default: 'sample.mp4'\n```\n\nThen You Just Need To Run This\n\n```bash\npython frame.py --frame FRAME_TH --src VIDEO_FILE\n```\n\n## How To Serve Telegram Bot 🤖\n\nFirstly, You Need To Get `API_TOKEN` from `@Bot_Father`. Then you need to put your token into '.env' file. Now just run:\n```bash\npython bot.py\n```\n\n## Rest API 📡\n\nYou Only Need To Run:\n```bash\nuvicorn server:app\n```\n\n## Features ✨\n\n- [x] Detect `Neutral` , `Porn` and `Sexy`\n- [x] CLI\n- [x] Telegram Bot\n- [x] Video Files\n- [x] Auto Scene Detect\n- [ ] Train Phase\n- [ ] Dataset\n- [ ] Rest API\n    - [x] Image Support\n    - [ ] Video Support\n    - [ ] GIF Support\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famirzenoozi%2Fnsfw-classification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famirzenoozi%2Fnsfw-classification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famirzenoozi%2Fnsfw-classification/lists"}