Skip to content

PhilippMatthes/neural-greenscreen

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

Neural Greenscreen

Architecture

Realtime background removal with neural networks on mac os, providing a virtual camera, which can be accessed by third party applications. ➡️ Read the Medium article

Demo

Based on seanchas116/SimpleDALPlugin and johnboiles/coremediaio-dal-minimal-example.

Prerequesites

  • A system running mac os with a builtin webcam
  • Xcode

Setup

  • Check your webcam dimensions and change the code (and the background) if your webcam has a higher resolution than 1280 x 720
  • Build neural-greenscreen in Xcode
  • Copy neuralGreenscreenMain.plugin into /Library/CoreMediaIO/Plug-Ins/DAL
  • Open app that uses your webcam and choose Neural Greenscreen as camera input

You should see the background being replaced.

Troubleshooting

DAL plugins access very low level mac os interfaces. It could be that the plugin is not detected or crashes depending on your system or app. If you find a problem, report it so that we can fix it. Here is a recommended workflow:

  • Check your logs (using the mac os console, search for neural)
  • Open an issue explaining your problem

License

This project is licensed under MIT License.