Skip to main content

A command line tool to censor words in an image.

Project description

censor-this


censor-this is a Python command line tool that allows you to censor words in an image.

Installation

Install Tesseract https://github.com/tesseract-ocr/tessdoc/blob/main/Installation.md#introduction

pip install censor-this

Commands

add

censor-this add [word]

Adds a "censor word".

Args

  • word - The "censor word" that will be added.
    [required]

remove

censor-this remove [word]

Removes a censor word.

Args

  • word - The censor word that will be removed.
    [required]

clear

censor-this clear

Removes all censor words.

censor-words

censor-this censor-words

Prints all censor words.

image

censor-this image [path]

Censors all censor words from an image or directory of images with blur, then outputs the results to ./censor-this-output.

Args

  • path - The path to the image/directory.
    [example: this/is/the/path/to/the/image.png] [required]
  • --censor-all | --all | -a - Censor all words in an image.
    [example: --censor-all]
  • --min-conf | --conf | -m - The minimum confidence that will be required for a word to be censored.
    [example: --min-conf=40.0] [default: 90.0] FLOAT
  • --bar-color | --color | -c - The color the censor bar will be. When not present censor bar will default to blur. Must be in hex format.
    [example: --bar-color=#FFA200 ] [default: None] TEXT

Example

  1. Add words that you want to censor.
censor-this add best # adding best to censor words
censor-this add worst # adding worst to censor words
censor-this add age # adding age to censor words
censor-this add foolishness # adding foolishness to censor words
  1. Censor the words in the image.
censor-this image ./imgs/example.png --bar-color=#FFA200
  1. Retrieve output from ./censor-this-output.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

censor-this-0.1.2.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

censor_this-0.1.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file censor-this-0.1.2.tar.gz.

File metadata

  • Download URL: censor-this-0.1.2.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.8.10 Linux/5.10.16.3-microsoft-standard-WSL2

File hashes

Hashes for censor-this-0.1.2.tar.gz
Algorithm Hash digest
SHA256 691347e879dceb24071e9d47c4cc9bc1c76e7007c8424da5aa979faa245743aa
MD5 88f17875c1e773b0bebbd09199eca8c9
BLAKE2b-256 4bf7c31ca76db37a0ed6928de92e426c916972c8ba40ba12a82cf432de1fc550

See more details on using hashes here.

File details

Details for the file censor_this-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: censor_this-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.8.10 Linux/5.10.16.3-microsoft-standard-WSL2

File hashes

Hashes for censor_this-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 163df72dd50a801b743825010cabc0c92561a039e84c06c3f52886f0df44b6a9
MD5 323605998de53c8ea60ab5039a843baf
BLAKE2b-256 990f3a5fd0396e5768583a1260b8cc4c9e88b868a71fcfcc1754b0068fcde1bc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page