- Overview
- Problem Statement
- Solution
- Demo
- UI Screenshots
- Tech Stack
- Current Challenges
- Future Improvements
- Installation and Usage
- Usage Instructions
- Performance Tips
- Contact
- License
- Acknowledgements
Auto Disclaimer is an automated tool that adds smoking disclaimers to movies by detecting smoking scenes. The tool uses computer vision and machine learning to identify frames containing smoking activities and overlays appropriate disclaimers, eliminating the need for manual frame-by-frame editing.
Movie editors currently spend significant time manually adding disclaimers to movies on a frame-by-frame basis whenever smoking scenes appear. This process is:
- ⏱️ Time-consuming
- ❌ Prone to human error
- 💰 Costly for production companies
Our solution automates the disclaimer addition process by:
- Processing movie files frame by frame
- Using the Moondream2 vision language model to detect smoking activities
- Automatically overlaying appropriate disclaimers on relevant frames
- Generating a new video with disclaimers integrated
Check out a sample processed video: Example Output
Main Interface | Processing Results |
![]() |
![]() |
Technology | Purpose |
---|---|
Python | Core programming language |
Moondream2 | Vision language model for smoking detection |
OpenCV | Movie processing and frame manipulation |
Gradio | User-friendly web interface |
Docker | Containerization for easy deployment |
Challenge | Description |
---|---|
Processing Speed | Takes ~4 minutes to process a 4-minute video at 5 FPS |
Model Limitations | Moondream2 (2B parameters) not optimized for smoking detection |
Resource Intensive | High computational requirements for full-length movies |
- 🧠 Develop a custom CNN model specifically trained on smoking detection data
- 🍺 Expand detection capabilities to include drinking scenes
- ⚡ Optimize processing pipeline for better performance
-
Clone the repository:
git clone https://github.com/kevinnadar22/AutoDisclaimer.git cd AutoDisclaimer
-
Build and run with Docker Compose:
docker-compose up -d
-
Access the application at
http://localhost:7860
in your browser
-
Clone the repository:
git clone https://github.com/kevinnadar22/AutoDisclaimer.git cd AutoDisclaimer
-
Install system dependencies:
sudo apt-get update && apt-get install -y libvips libgl1 libglib2.0-0
-
Install Python dependencies:
pip install -r requirements.txt
-
Run the application:
python gradio_app.py
-
Access the application at
http://localhost:7860
in your browser
- 📤 Upload a video file through the web interface
- Set the frames per second (FPS) for processing (lower values = faster processing but may miss some scenes)
- Select the detection method (point, detect, or query) - Point is the most accurate
- Optionally upload a custom disclaimer image
▶️ Click "Process Video" to start the detection and disclaimer addition- View the processing statistics and download the processed video when complete
Tip | Description |
---|---|
Lower FPS | Use 1-5 FPS for faster processing |
GPU Acceleration | Significantly improves processing speed |
Movie Splitting | Split long movies into smaller segments |
Detection Method | "Point" method is generally faster than others |
- Telegram: t.me/ask_Admin001
- Email: jesikamaraj@gmail.com
- Moondream2 by Vikhyat K for the efficient vision language model