ai_sensitive_content_classifier library

A classifier for detecting sensitive content in text or images using Google's Gemini API.

This implementation supports image classification from raw bytes, ui.Image, or Flutter ImageProvider sources, and classifies both visual and textual content into categories such as gore, nudity, racism, or notSensitive.

To use this class, instantiate it with a required API key and optionally customize parameters like temperature, model, topP, etc.

Classes

AiSensitiveContentDetector
A service class that uses the Google Generative AI Gemini model to classify text and/or image input as sensitive or not.

Enums

SensitiveClassificanResult
Enum representing all possible classification outcomes for sensitive content detection.