{"id":28294128,"url":"https://github.com/vishnu-tppr/camouflage-ai","last_synced_at":"2026-04-30T13:32:42.719Z","repository":{"id":293708061,"uuid":"984901625","full_name":"Vishnu-tppr/Camouflage-AI","owner":"Vishnu-tppr","description":"🎥 Camouflage-AI – A fast and flexible AI tool for removing video backgrounds using YOLOv8 segmentation. Customize with solid colors, blur, or images. Built with Python \u0026 CustomTkinter for a stunning desktop experience.","archived":false,"fork":false,"pushed_at":"2025-05-18T05:44:41.000Z","size":41205,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-30T13:32:31.876Z","etag":null,"topics":["ai-desktop-app","ai-projects","ai-tool","ai-video-editor","background-removal","camouflage-ai","gui","image-segmentation","machine-learning","open-source-project","opencv","python","top-github-projects","video-ai","video-processing","vishnu-cse","yolov8-segmentation"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Vishnu-tppr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-16T17:48:39.000Z","updated_at":"2026-04-22T12:27:47.000Z","dependencies_parsed_at":"2025-05-16T18:49:59.432Z","dependency_job_id":null,"html_url":"https://github.com/Vishnu-tppr/Camouflage-AI","commit_stats":null,"previous_names":["vishnu-tppr/camouflage-ai"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Vishnu-tppr/Camouflage-AI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vishnu-tppr%2FCamouflage-AI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vishnu-tppr%2FCamouflage-AI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vishnu-tppr%2FCamouflage-AI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vishnu-tppr%2FCamouflage-AI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vishnu-tppr","download_url":"https://codeload.github.com/Vishnu-tppr/Camouflage-AI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vishnu-tppr%2FCamouflage-AI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32466333,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-desktop-app","ai-projects","ai-tool","ai-video-editor","background-removal","camouflage-ai","gui","image-segmentation","machine-learning","open-source-project","opencv","python","top-github-projects","video-ai","video-processing","vishnu-cse","yolov8-segmentation"],"created_at":"2025-05-22T07:15:24.699Z","updated_at":"2026-04-30T13:32:42.694Z","avatar_url":"https://github.com/Vishnu-tppr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🖼️ Camouflage AI – Smart Video Background Remover 🎥🧠\n\n\u003e 🎯 An AI-powered desktop tool for removing video backgrounds using **YOLOv8 segmentation**.\n\n\u003e 🎨 Choose solid colors, images, or blur effects as your new backdrop — it's fast, clean, and stunningly simple!\n\n---\n\n## 📌 Table of Contents\n\n- [✨ Features](#-features)\n- [📸 Demo Screenshots](#-demo-screenshots)\n- [🧠 How It Works](#-how-it-works)\n- [📁 File Structure](#-file-structure)\n- [⚙️ Requirements](#-requirements)\n- [🚀 How to Run](#-how-to-run)\n- [🧩 Technologies Used](#-technologies-used)\n- [👨🏻‍💻 Author](#-author)\n- [📜 License](#-license)\n\n---\n\n## ✨ Features\n\n- 🧍‍♂️ **AI-Powered Person Segmentation** – Detects humans using `YOLOv8n-seg`.\n- 🎨 **Background Options**:\n  - Solid color picker 🎨\n  - Custom background image 🖼️\n  - Gaussian blur effect 🔍\n- 📂 **Video File Input** – Select and process any video file.\n- 🔄 **Progress Tracking** – Real-time status updates with loading bars.\n- 🧠 **Lightweight YOLOv8n Model** – Fast, accurate, and ideal for personal devices.\n- 🖥️ **Cross-compatible** – Works on both CPU and GPU environments.\n\n---\n\n## 📸 Demo Screenshots\n![Screenshot 2025-05-16 224741](https://github.com/user-attachments/assets/19f6379f-be12-48da-9900-4fb0ae2a0f38)\n![Screenshot 2025-05-16 221116](https://github.com/user-attachments/assets/2fb29eda-9f6b-49df-9951-e57cb9d0dc70)\n![Screenshot 2025-05-16 221130](https://github.com/user-attachments/assets/75556332-15d5-4bed-9807-89564494235d)\n![Screenshot 2025-05-16 221258](https://github.com/user-attachments/assets/d03c90df-c265-465c-b248-6face805e649)\n![Screenshot 2025-05-16 225424](https://github.com/user-attachments/assets/d095e2c9-99a3-4645-8a66-608d62c512ae)\n![Screenshot 2025-05-16 221314](https://github.com/user-attachments/assets/db1e042d-a354-4409-8a34-2ba9bd74be3a)\n![Screenshot 2025-05-16 221333](https://github.com/user-attachments/assets/1455e6b6-00af-4637-9838-05b10228b259)\n![Screenshot 2025-05-16 221835](https://github.com/user-attachments/assets/d3feec9f-510c-4694-a3e8-e88070b16726)\n![Screenshot 2025-05-16 225528](https://github.com/user-attachments/assets/0d7c12b9-4567-447f-a32e-62e41f6e3883)\n\n\n\n---\n\n## 🧠 How It Works\n\n### 1️⃣ YOLOv8 Segmentation\n\n```python\nfrom ultralytics import YOLO\nmodel = YOLO(\"yolov8n-seg.pt\")\nresults = model.track(frame, persist=True, classes=0)\n````\n\nDetects the person (class ID 0) and generates binary masks for each frame.\n\n---\n\n### 2️⃣ Background Replacement\n\nBased on your choice:\n\n* **Color**: Overlays the mask with the selected RGB color.\n* **Image**: Resizes and merges a new image background.\n* **Blur**: Applies `cv2.GaussianBlur()` behind the person.\n\n```python\nmask = masks[0]\ninverse_mask = cv2.bitwise_not(mask)\nforeground = cv2.bitwise_and(frame, frame, mask=mask)\nbackground = cv2.bitwise_and(chosen_bg, chosen_bg, mask=inverse_mask)\nfinal = cv2.add(foreground, background)\n```\n\n---\n\n## 📁 File Structure\n\n```\n📦 CamouflageAI/\n ┣ 📄 Camouflage AI.py         # GUI App using CustomTkinter\n ┣ 📄 process_video.py         # Main processing logic with YOLO\n ┣ 📄 requirements.txt         # Dependencies\n ┗ 📄 README.md                # You’re here!\n```\n\n---\n\n## ⚙️ Requirements\n\nInstall all required packages with:\n\n```bash\npip install -r requirements.txt\n```\n\n**Or manually:**\n\n```bash\npip install customtkinter opencv-python numpy rembg pillow tkinter moviepy matplotlib scikit-image tqdm pyperclip\n```\n\n📝 Tested with Python 3.10+ on Windows\n\n---\n\n## 🚀 How to Run\n\n```bash\npython \"Camouflage AI.py\"\n```\n\n✅ Make sure `process_video.py` is in the same directory.\n🖼️ Output videos are automatically saved in the `output/` folder.\n\n---\n\n## 🧩 Technologies Used\n\n* [Python 3](https://www.python.org/)\n* [Ultralytics YOLOv8](https://github.com/ultralytics/ultralytics)\n* [OpenCV](https://opencv.org/)\n* [CustomTkinter](https://github.com/TomSchimansky/CustomTkinter)\n* [NumPy](https://numpy.org/)\n* [Pillow (PIL)](https://pypi.org/project/Pillow/)\n* [Torch (PyTorch)](https://pytorch.org/)\n\n---\n\n## 👨🏻‍💻 Author\n\nMade with ❤️ by [**Vishnu**](https://www.linkedin.com/in/vishnu-v-31583b327/)\n\n\u003e “Build with passion, debug with precision.” 🔥\n\n---\n\n## 📜 License\n\nThis project is open-source and licensed under the **MIT License**.\n\n---\n\n🌟 If you found this useful, leave a ⭐ on the repo and share it!\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvishnu-tppr%2Fcamouflage-ai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvishnu-tppr%2Fcamouflage-ai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvishnu-tppr%2Fcamouflage-ai/lists"}