Skip to main content

Cucumber is a free and lightweight vision classifier to detect nsfw, gore, scam, neutral from images

Project description

Cucumber 🥒

Cucumber is a free and lightweight python library to detect nsfw, gore, scam, neutral from images. It utilizes machine learning vision model to do so.

Installation

pip install cucumberify

NOTE FOR WINDOWS USER: This library uses a small compiled extension on Windows (sdist install). So you must install Microsoft Visual C++ Build Tools first.

  1. Download and install: https://visualstudio.microsoft.com/visual-cpp-build-tools/

  2. During setup, select: "Desktop development with C++"

  3. Then run:

python -m pip install --upgrade pip setuptools wheel
pip install cucumberify

Example usage (Local Image)

from cucumberify import cucumber
print(cucumber("car.jpg"))

Response example

{'nsfw': 0.0, 'gore': 0.0, 'scam': 0.0, 'neutral': 1.0}

Example usage (Image URL)

from cucumberify import cucumber
print(cucumber('https://cdni.lamalinks.com/1280/1/171/32937397/32937397_001_8121.jpg'))

Response example

{'nsfw': 0.9, 'gore': 0.0, 'scam': 0.0, 'neutral': 0.0}

Note that the values are floating points between 0 and 1

Made with ♥️ by Blaze

Feel free to DM me on discord if there's any issues :>

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

cucumberify-1.1.1.tar.gz (100.7 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

cucumberify-1.1.1-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (263.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

cucumberify-1.1.1-cp39-cp39-macosx_11_0_arm64.whl (48.3 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

Details for the file cucumberify-1.1.1.tar.gz.

File metadata

  • Download URL: cucumberify-1.1.1.tar.gz
  • Upload date:
  • Size: 100.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for cucumberify-1.1.1.tar.gz
Algorithm Hash digest
SHA256 2dde7589f992da6d57a49e52ec71cde589e3a887dd23f0e02fec1fba296070e7
MD5 7d53442754b29997a4e64737778b1d4d
BLAKE2b-256 53671de9908c368082a5808b820278dd046cc9e2e80a6d38db04c127e36e8076

See more details on using hashes here.

File details

Details for the file cucumberify-1.1.1-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for cucumberify-1.1.1-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ef2a3881658f4db72d32b27e9618c08d4122e764aa6d93d63a360cf04e4fdbb4
MD5 f48dc8faf5c7554865433c43fcae4535
BLAKE2b-256 920a14b793768153b200d982dfbeadf4f34fffe46eab2c5e043a13ce44947517

See more details on using hashes here.

File details

Details for the file cucumberify-1.1.1-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for cucumberify-1.1.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 51fe5b43088c2ee9e8f0f6bb177260d5f61b7ab136e3c775116b8b4991b2135b
MD5 36fa3fa6b3ec3810514c0c830b6819fa
BLAKE2b-256 88b4fbbc5ce77b1647530113dc5c295baf7397b05107843e2a1b83b8d4e798a4

See more details on using hashes here.

Supported by

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