• Stars
    star
    107
  • Rank 321,653 (Top 7 %)
  • Language
    C++
  • Created over 3 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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.

More Repositories

1

rosshow

Visualize ROS topics inside a terminal with Unicode/ASCII art
Python
1,041
star
2

rosboard

ROS node that turns your robot into a web server to visualize ROS topics
JavaScript
833
star
3

android-wearcamera

Remotely control a phone camera with an Android Wear smartwatch
Java
170
star
4

shoji-lamps

OpenSCAD
167
star
5

ros-semantic-segmentation

ROS package for semantic segmentation
Python
104
star
6

magicimport.py

Python
95
star
7

rospy2

Python
85
star
8

mnist-clock

A clock that displays digits using randomly selected MNIST digits.
Python
81
star
9

ros-imu-bno055

ROS package for the BNO055 IMU via I2C
C++
77
star
10

android-wearface-matrix

"The Matrix" watch face for Android Wear
Java
76
star
11

scripts

personal scripts to make life easier
Python
67
star
12

fooplot

LGPL JavaScript embeddable graphing calculator with Google maps style panning and other features.
JavaScript
61
star
13

ros-pwm-pca9685

ROS package for PCA9685 16-channel PWM driver, used in motor and LED applications
C++
47
star
14

python-termgraphics

Library to draw Unicode braille art in a terminal
Python
39
star
15

android-wearmaps

Pannable maps for Android Wear
Java
37
star
16

android-attopedia

A smartwatch-friendly interface for Wikipedia
Java
32
star
17

android-sesame

Door opener
Java
30
star
18

shadow-clock

a wall clock
OpenSCAD
29
star
19

python-fordreader

Python library to read steering wheel angles and more from a Ford car over OBD
Python
26
star
20

aqi-monitor

Python
26
star
21

robot-luxo

JavaScript
25
star
22

robot-botparty

CSS
22
star
23

iceland-thermal

Python
19
star
24

roscpp2

C++
15
star
25

android-googlepinyin-dvorak

Dvorak version of Google Pinyin for Android
Smali
14
star
26

ros2-wifi-geolocation

Python
10
star
27

roslite.js

JavaScript
8
star
28

ros-power-ina219

ROS node for Texas Instruments INA219 current/power monitor
C++
8
star
29

big-yellow-proxxon-mf70-conversion

Proxxon MF70 mini-mill CNC conversion with 3D printed parts including y- and z-axis extensions
OpenSCAD
8
star
30

first-photon-imaging

first photon imaging
MATLAB
7
star
31

web-dheeranet

Personal website
HTML
6
star
32

ros-ford-can

ROS node for Ford vehicles to read steering wheel angle, speed, and much more over CAN
Python
5
star
33

robot-europa

ADAS system based on Jetson Xavier
C++
5
star
34

python-belleds

Python implementation of the Belleds API
Python
5
star
35

phd-thesis

phd-thesis
TeX
4
star
36

ros-motor-pololu-qik

ROS package for Pololu Qik motor controllers
C++
3
star
37

ros-motor-romeo-quad

ROS driver for Romeo BLE Quad
C++
3
star
38

ros2-home-assistant

Python
2
star
39

web-sustainabilitysummit

MIT Sustainability Summit website
Python
2
star
40

ros-motor-roboteq-modbus

C++
2
star
41

ros-system-stats

ROS package providing simple system statistics e.g. CPU, GPU usage
Python
2
star
42

watchdog

C++
1
star
43

hydraharp-tools

GNU C file reader for PicoQuant Hydraharp binary files (for Time-Correlated Single Photon Counting)
C
1
star
44

lists-of-things

1
star
45

ros-pynodelet

Python
1
star
46

photo-hacks

cameras + motors + arduinos
Arduino
1
star
47

ros-lidar-avoidance

C++
1
star
48

iot-arduino

C++
1
star
49

install-scripts

Because everything is so complicated to install these days.
Shell
1
star
50

dheera.github.io

JavaScript
1
star
51

ros-imu-bno055-arduino

C++
1
star