Using Kinect v1 camera as a chromakey or webcam.
That's it: no need for a messy green screen behind you to record videos!
- 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
- 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.
- Thanks to Oscar Aceña for his work on ocv-virtual-cam, on which this project has a large basis.
- Thanks to the ROS community for providing this article.