https://github.com/dheera/bokeh-camera Skip to content Sign up * Why GitHub? 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 }} dheera / bokeh-camera * Notifications * Star 65 * Fork 4 65 stars 4 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 main 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 2 branches 0 tags Code * Clone HTTPS GitHub CLI [https://github.com/d] Use Git or checkout with SVN using the web URL. [gh repo clone dheera] Work fast with our official CLI. Learn more. * Open with GitHub Desktop * Download ZIP Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Go back Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Go back Launching Xcode If nothing happens, download Xcode and try again. Go back Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit @dheera dheera Update README.md ... 28161aa Aug 31, 2021 Update README.md 28161aa Git stats * 27 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time images images May 26, 2021 BokehCamera.cpp comments May 28, 2021 CMakeLists.txt enable O3 optimization for loop vecotrization May 26, 2021 README.md Update README.md Aug 31, 2021 build-this build-this Jun 5, 2021 View code bokeh-camera Controls README.md bokeh-camera If you think the Google/Zoom segmentation-based background blur effects look kind of fake, this attempts to simulate a more realistic-looking bokeh using a RealSense D455 (for best results) or D435 camera on a virtual camera device that you can use from any conferencing software. Work in progress, code not yet cleaned up, but roughly: 1. Build requirements: + librealsense2-dev + libopencv-dev + cmake + g++ (or similar C++ compiler) 2. Run ./build-this 3. Ensure that you have the v4l2loopback kernel module + Ubuntu: sudo apt install v4l2loopback-dkms + Fedora/RHEL: sudo dnf install v4l2loopback 4. Set up a v4l2 loopback device at /dev/video20 sudo modprobe -r v4l2loopback # This one can fail if the module isn't loaded, that's okay sudo modprobe v4l2loopback devices=1 video_nr=20 exclusive_caps=1 5. Run `./BokehCamera 6. Select the virtual camera on Google Meet or Zoom or whatever you use Controls While it is running: Press 1 to send bokeh-fied image Press 2 to send a map of the computed amount of blur (white = don't blur, black = full blur) Press 3 to send the depth map Press 4 to send no-bokeh RGB Press [ or ] to refocus the image image image Will it work on a D415/L515/T265? Probably not but go ahead and try, hack at it, submit a pull request. About No description, website, or topics provided. Resources Readme Releases No releases published Packages 0 No packages published Contributors 2 * @dheera dheera Dheera Venkatraman * @benjaoming benjaoming Benjamin Balder Bach Languages * C++ 95.5% * CMake 4.3% * Shell 0.2% * (c) 2021 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.