NudeNet wrapper made to provide a simple cli interface to the library

Overview

Nudenet Wrapper.

Small warpper script for NudeNet Made to provide a small and easy to use cli interface with the library.

You can indicate a single image from command line and Wrapper script will run in through NudeNet and output both Classification score and the image labeled with detections via bounding boxes. It also provides an option to output labeled image to disk:

Example usage

python3  lewd_detector.py  --probability 0.15  --mode base images/image.png --outfile results/image.png
You might also like...
 Microsoft Azure CLI - Azure Command-Line Interface
Microsoft Azure CLI - Azure Command-Line Interface

A great cloud needs great tools; we're excited to introduce Azure CLI, our next generation multi-platform command line experience for Azure.

moviepy-cli: Command line interface for MoviePy.

Moviepy-cli is designed to apply several video editing in a single command with Moviepy as an alternative to Video-cli.

A Python package for a basic CLI and GUI user interface
A Python package for a basic CLI and GUI user interface

Bun Bun (Basic user interface) is a small Python package for a basic user interface. Table of contents Introduction Installation Usage Known issues an

Quo is a Python based toolkit for writing Command-Line Interface(CLI) applications.
Quo is a Python based toolkit for writing Command-Line Interface(CLI) applications.

Quo is a Python based toolkit for writing Command-Line Interface(CLI) applications. Quo is making headway towards composing speedy and orderly CLI applications while forestalling any disappointments brought about by the failure to execute a CLI API. Simple to code, easy to learn, and does not come with needless baggage.

Program Command Line Interface (CLI) Sederhana: Pemesanan Nasi Goreng Hekel

Program ini merupakan aplikasi yang berjalan di dalam command line (terminal). Program ini menggunakan built-in library python yaitu argparse yang dapat menerima parameter saat program ini dijalankan melalui terminal atau CLI.

CLI Web-CAT interface for people who use VIM.

CLI Web-CAT CLI Web-CAT interface. Installation git clone https://github.com/phuang1024/cliwebcat cd cliwebcat python setup.py bdist_wheel sdist cd di

RSS reader client for CLI (Command Line Interface),

rReader is RSS reader client for CLI(Command Line Interface)

The Prisma Cloud CLI is a command line interface for Prisma Cloud by Palo Alto Networks.
The Prisma Cloud CLI is a command line interface for Prisma Cloud by Palo Alto Networks.

Prisma Cloud CLI The Prisma Cloud CLI is a command line interface for Prisma Cloud by Palo Alto Networks. Support This project has been developed by P

An awesome Python wrapper for an awesome Docker CLI!
An awesome Python wrapper for an awesome Docker CLI!

An awesome Python wrapper for an awesome Docker CLI!

Comments
  • General suggestions

    General suggestions

    Your wrapper turned out amazing, thank you again for posting it. I have a few suggestions for improvement, however.

    1. Make it able to complete a batch of images in a directory by itself. I can run a batch using the following script, however it really slows down my computer if I'm doing any more than 20 images per batch because it seems to be trying to run each image simultaneously. My suggestion would be to program it so that if you set the input to a directory, rather than a filename, it will process each file in said directory, and that, similarly, if you enter only a directory in the output it will place the labeled images in the selected directory. In this example, ./unlabeled/ and ./labeled/ are directories contained within the same directory that both lewd_detectory.py and my "lewd_batcher.py" are stored in.
    # lewd_batcher.py
    import subprocess
    from pathlib import Path
    
    for file in Path("./unlabeled").iterdir():
        uC = "./unlabeled/"+file.__str__()[11:]
        c = "./labeled/"+file.__str__()[11:]
        command = ["python3",  "lewd_detector.py", "--probability", "0.15", "--mode", "base", uC, "--outfile", c]
        subprocess.Popen(command)
    
    1. Make it easier to turn off the visualizations for each image. I can't seem to get --noviz to work correctly, which is why it isn't in my batching script above. If it was something such as viz=y or viz=n, then I believe it would be easier.
    2. Lastly, If you really want your wrapper to take off, provide arguments that allow people to blacklist certain tags from being displayed/labeled/censored, allow people to choose whether or not the boxes are labeled or censored, or whether the lewdness rating and threshold appear in the labeled images.

    Keep up the good job Technic.

    opened by FK2169 0
Owner
null
A simple CLI based any Download Tool, that find files and let you stream or download thorugh WebTorrent CLI or Aria or any command tool

Privateer A simple CLI based any Download Tool, that find files and let you stream or download thorugh WebTorrent CLI or Aria or any command tool How

Shreyash Chavan 2 Apr 4, 2022
Simple CLI interface for linear task manager

Linear CLI (Unmaintained) Simple CLI interface for linear task manager Usage Install: pip install linearcli Setup: Generate a pe

Mike Lyons 1 Jan 7, 2022
Ssl-tool - A simple interactive CLI wrapper around openssl to make creation and installation of self-signed certs easy

What's this? A simple interactive CLI wrapper around openssl to make self-signin

Aniket Teredesai 9 May 17, 2022
Sink is a CLI tool that allows users to synchronize their local folders to their Google Drives. It is similar to the Git CLI and allows fast and reliable syncs with the drive.

Sink is a CLI synchronisation tool that enables a user to synchronise local system files and folders with their Google Drives. It follows a git C

Yash Thakre 16 May 29, 2022
AWS Interactive CLI - Allows you to execute a complex AWS commands by chaining one or more other AWS CLI dependency

AWS Interactive CLI - Allows you to execute a complex AWS commands by chaining one or more other AWS CLI dependency

Rafael Torres 2 Dec 10, 2021
Python-Stock-Info-CLI: Get stock info through CLI by passing stock ticker.

Python-Stock-Info-CLI Get stock info through CLI by passing stock ticker. Installation Use the following command to install the required modules at on

Ayush Soni 1 Nov 5, 2021
Yts-cli-streamer - A CLI movie streaming client which works on yts.mx API written in python

YTSP It is a CLI movie streaming client which works on yts.mx API written in pyt

null 1 Feb 5, 2022
[WIP]An ani-cli like cli tool for movies and webseries

mov-cli A cli to browse and watch movies. Installation This project is a work in progress. However, you can try it out python git clone https://github

null 166 Dec 30, 2022
A supercharged AWS command line interface (CLI).

SAWS Motivation AWS CLI Although the AWS CLI is a great resource to manage your AWS-powered services, it's tough to remember usage of: 70+ top-level c

Donne Martin 5.1k Jan 5, 2023