https://github.com/everythingishacked/Pants Skip to content Sign up * Product + Features + Mobile + Actions + Codespaces + Packages + Security + Code review + Issues + Integrations + GitHub Sponsors + Customer stories * Team * Enterprise * Explore + Explore GitHub + Learn and contribute + Topics + Collections + Trending + Learning Lab + Open source guides + Connect with others + The ReadME Project + Events + Community forum + GitHub Education + GitHub Stars program * Marketplace * Pricing + Plans + Compare plans + Contact Sales + Education [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} everythingishacked / Pants Public * Notifications * Fork 0 * Star 36 A video filter to add pants or blur out your lower half on Zoom calls when you forget to wear pants 36 stars 0 forks Star Notifications * Code * Issues 0 * Pull requests 0 * Actions * Projects 0 * Wiki * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Wiki * Security * Insights This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. master Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags 1 branch 0 tags Code Latest commit Fletcher Heisler first ... fcf4fed May 8, 2022 first fcf4fed Git stats * 1 commit Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time pants first May 8, 2022 .gitignore first May 8, 2022 README.md first May 8, 2022 demo.gif first May 8, 2022 mediapipe pose landmarks numbered.png first May 8, 2022 pantser.py first May 8, 2022 requirements.txt first May 8, 2022 View code Pants filter Add pants or blur out everything from the waist down for extra safety on Zoom calls. README.md Pants filter Add pants or blur out everything from the waist down for extra safety on Zoom calls. View a demo and more background on the project at https://youtu.be/ ZHQ4XACBUqo demo The pants filter uses OpenCV and MediaPipe's Pose detection to add a real-time pants filter to video input. The result is piped to a virtual camera output using pyvirtualcam. To use the resulting output, you must have a virtual camera device. The easiest way to do this on any OS is to download and install OBS, open it up, then click "Start Virtual Camera" on the bottom right. You can now close OBS for good. With the pants filter running, select "OBS Virtual Camera" as your video source in Zoom/Teams/etc. Hit the p key on the preview window to toggle your pants among ten different styles, included in the pants folder as a standard PNG template. Hit ESC on the preview window to exit the pants filter, or CTRL+C to close the Python process. Optional flags: * --help - Display the below options * --input - Choose a camera or video file path (defaults to device 0) * --pants - Draw pants by default, instead of only blurring * --width - Proportional width of pants beyond mid-leg width (defaults to 0.4) * --flip - Flip along the y-axis for selfie view * --landmarks - Draw detected body landmarks from MediaPipe * --record - Write the output to a timestamped AVI recording in the current folder Example usage: * python pantser.py -h - Show all argument options * python pantser.py --input 2 --pants 1 --width .6 --flip 1 --landmarks 1 --record 1 - Camera device 2; slightly wider hips; flip the image; draw landmarks; generate a recording * python pantser.py -i "/Downloads/shakira.mp4" -w .9 - Use video file as input; extra hips About A video filter to add pants or blur out your lower half on Zoom calls when you forget to wear pants Resources Readme Stars 36 stars Watchers 1 watching Forks 0 forks Releases No releases published Packages 0 No packages published Languages * Python 100.0% * (c) 2022 GitHub, Inc. * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.