/cronect

Background removal tool (chromakey-like) using a RGB-D camera

Primary LanguageC++GNU General Public License v3.0GPL-3.0

cronect

Using Kinect v1 camera as a chromakey or webcam.

That's it: no need for a messy green screen behind you to record videos!

Usage:

  • Install libfreenect, which are the drivers needed for interfacing with the Kinect (we also need the "c_sync" wrapper, but this one is included in the project).
  • Install openCV, so we can do image processing.
  • Run make setup-devices, which configures a virtual camera, using v4l2-loopback (video4linux2).
  • Run make && make run

Important: you need to add your user to some group, otherwise you'll need to run the executable as sudo

Current Issues:

  • Only Chromium based browsers detect the loopback camera because of a bug in v4l2loopack.
  • Perspective is wrong, so there's a significant offset in the captured image and the depth values.
  • Some noise appears on the image.

Results:

Thanks: