Spaces:
Sleeping
Sleeping
File size: 2,062 Bytes
9012453 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
---
title: DeceptivePatternDetector
emoji: π¨
colorFrom: purple
colorTo: red
sdk: gradio
sdk_version: 5.46.0
app_file: app.py
pinned: false
license: cc-by-nc-4.0
---
# π Deceptive Pattern Detector
An AI-powered tool that analyzes website screenshots to detect potentially deceptive design patterns (also known as "dark patterns").
## π Features
- **Image Upload**: Upload screenshots of websites for analysis
- **OCR Analysis**: Extracts text and UI elements from images
- **Element Detection**: Identifies buttons, checkboxes, and other interactive elements
- **AI Analysis**: Uses Google Gemini AI to classify potential deceptive patterns
- **Pattern Categories**: Detects various types including:
- Confirm-shaming
- Urgency manipulation
- Scarcity tactics
- Misdirection
- Privacy violations
- And more...
## π How to Use
1. **Upload Image**: Take a screenshot of a website and upload it
2. **API Key**: Enter your Google Gemini API key ([Get one here](https://makersuite.google.com/app/apikey))
3. **Analyze**: Click the analyze button and wait for results
4. **Review**: Examine the detected patterns and explanations
## π§ Requirements
- Google Gemini API key for AI analysis
- Google Cloud Vision API credentials (optional, for enhanced OCR)
## π οΈ Technical Details
This tool combines:
- **Computer Vision**: For UI element detection
- **OCR**: For text extraction using Google Cloud Vision
- **AI Analysis**: Using Google Gemini for pattern classification
- **Rule-based Fallbacks**: For basic detection when AI is unavailable
## β οΈ Disclaimer
This tool uses AI analysis and may not catch all deceptive patterns or may flag legitimate design elements. The results should be used as a supplementary guide and not as a definitive assessment.
## ποΈ Architecture
- **Frontend**: Gradio interface
- **Backend**: Python with simplified computer vision
- **AI**: Google Gemini for pattern analysis
- **Deployment**: HuggingFace Spaces compatible
## π License
MIT License - See LICENSE file for details. |