whatisgithub

What is safevision-python?

guardex-security/safevision-python — explained in plain English

Analysis updated 2026-05-18

0PythonAudience · developerComplexity · 2/5Setup · easy

In one sentence

A Python client for the SafeVision API that detects unsafe image content and can automatically blur or pixelate it.

Mindmap

mindmap
  root((SafeVision SDK))
    What it does
      Scans images
      Detects unsafe content
      Censors regions
    Tech stack
      Python
      Hosted API
    Use cases
      Content moderation
      Auto blur or pixelate
    Audience
      App developers
      Trust and safety teams

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Scan user-uploaded images for NSFW content, gore, weapons, or blood before showing them.

USE CASE 2

Automatically blur or pixelate flagged regions of an image with one API call.

USE CASE 3

Add content moderation to an app without building your own image classifier.

What is it built with?

Python

How does it compare?

guardex-security/safevision-python0xallam/my-recipe0xhassaan/nn-from-scratch
Stars00
LanguagePythonPythonPython
Last pushed2022-11-22
MaintenanceDormant
Setup difficultyeasymoderatemoderate
Complexity2/52/54/5
Audiencedevelopergeneraldeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Requires an active SafeVision account and API key since moderation runs on their servers, not locally.

So what is it?

SafeVision Python SDK is the official Python client library for a hosted image moderation service called SafeVision. Instead of building your own system to detect inappropriate content in images, you send an image to SafeVision's API through this library, and the service tells you whether the image contains things like sexually explicit content, gore, weapons, or blood. After installing the package, you create a SafeVision client with an API key you get from SafeVision's own dashboard, then call scan on an image file. The result tells you whether the image is considered safe, which categories of unsafe content were detected along with their location in the image, and how long the check took. If the image is flagged as unsafe, you can call a second method, censor, which automatically blurs, pixelates, or blacks out the flagged regions and gives you back the edited image as bytes you can save to a file. The README documents two methods in total: scan, which returns the safety verdict and bounding boxes, and censor, which applies the chosen covering style to detected regions. Configuration is limited to an API key and, optionally, a different base URL if you are pointed at a different server than SafeVision's default one. This is a thin client library, so using it requires an active SafeVision account and API key from the service's own website, since the moderation itself happens on SafeVision's servers rather than on your own machine. The README does not state a license for the code, and points to SafeVision's own site for full documentation, getting an API key, and support.

Copy-paste prompts

Prompt 1
Show me how to install the SafeVision Python SDK and scan an image for unsafe content.
Prompt 2
Explain the difference between the scan and censor methods in this SDK.
Prompt 3
How would I use this library to automatically blur flagged regions in uploaded photos?
Prompt 4
What do I need from SafeVision's dashboard before I can use this SDK?

Frequently asked questions

What is safevision-python?

A Python client for the SafeVision API that detects unsafe image content and can automatically blur or pixelate it.

What language is safevision-python written in?

Mainly Python. The stack also includes Python.

How hard is safevision-python to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is safevision-python for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.