Skip to content

A real-time virtual camera application that uses YOLOv8 segmentation to detect and isolate humans in the webcam feed, allowing user to: Blur your background ; Replace it with a custom image; Black out everything but person. All done locally, with FastAPI backend and a simple web interface for control.

License

Notifications You must be signed in to change notification settings

gouri1694/Virtual-Camera-Background-Modifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Virtual-Camera-Background-Modifier

A real-time virtual camera application that uses YOLOv8 segmentation to detect and isolate humans in the webcam feed — allowing user to: webcam feed — allowing you to:

  • Blur your background
  • Replace it with a custom image
  • Black out everything but human

All done locally, with FastAPI backend and a simple web interface for control.

Features

  • Real-time person segmentation using YOLOv8-seg.pt
  • Customizable blur intensity
  • Replace background with:
    • A black screen
    • A blurred version
    • A default image (default-office-animated.png)
  • MJPEG live preview in browser
  • Send processed feed to virtual webcam (via pyvirtualcam)
  • Control via web UI: start/stop, preview, FPS, blur, background type
  • List connected webcams
  • Runs on CPU, GPU (CUDA), or Apple Silicon (MPS)

Tech Stack

  • FastAPI – for REST API and backend
  • Ultralytics YOLOv8 – person segmentation
  • OpenCV – for video processing
  • PyVirtualCam – virtual webcam output
  • HTML/CSS/JS – frontend

About

A real-time virtual camera application that uses YOLOv8 segmentation to detect and isolate humans in the webcam feed, allowing user to: Blur your background ; Replace it with a custom image; Black out everything but person. All done locally, with FastAPI backend and a simple web interface for control.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published