Coder Social home page Coder Social logo

Comments (6)

ldsands avatar ldsands commented on July 20, 2024 2

I eventually figured it out and got it working. Though now I'm running Manjaro for unrelated reasons and installation there is trivial, so it's all moot to me now. I'll put my instructions (I created for myself) below. Maybe it'll be useful to someone else.

OBS Extensions

  • Install OBS Studio - sudo apt-get install obs-studio

    • Do not install using snap or flatpak
    sudo add-apt-repository ppa:obsproject/obs-studio
    sudo apt update
    sudo apt-get install -y \
        libc-dev-bin \
        libc6-dev git \
        build-essential \
        checkinstall \
        cmake \
        ffmpeg \
        v4l2loopback-dkms \ # this adds support for creating a virtual camera
        obs-studio \
        qtbase5-dev
  • OBS Plugin: Background Removal - This removes the background from the video in OBS

    cd ~/Downloads
    sudo apt install -y libopencv-dev language-pack-en wget git build-essential cmake
    # sudo apt install -y libobs-dev libopencv-dev language-pack-en wget git build-essential cmake
    wget https://github.com/microsoft/onnxruntime/releases/download/v1.7.0/onnxruntime-linux-x64-1.7.0.tgz
    sudo tar xzvf onnxruntime-linux-x64-1.7.0.tgz --strip-components=1 -C /usr/local/ --wildcards "*/include/*" "*/lib*/"
    # clone and enter the repo
    git clone https://github.com/royshil/obs-backgroundremoval.git
    cd obs-backgroundremoval
    # make and enter build directory
    mkdir build && cd build
    # compile the files needed for the plugin
    cmake .. && cmake --build . && sudo cmake --install .
    # add links because obs and the plugin are installed to different locations for older versions
    sudo ln -s /usr/local/lib/obs-plugins/obs-backgroundremoval.so /usr/lib/obs-plugins/
    sudo ln -s /usr/local/share/obs/obs-plugins/obs-backgroundremoval /usr/share/obs/obs-plugins/

from obs-backgroundremoval.

royshil avatar royshil commented on July 20, 2024

@koen-db can you plz make a pull request with this fix?

from obs-backgroundremoval.

ldsands avatar ldsands commented on July 20, 2024

How and where do you install libsimde-dev (I'm on KDE Neon which is built on 20.04)?

from obs-backgroundremoval.

royshil avatar royshil commented on July 20, 2024

@ldsands apt-get install will work?

from obs-backgroundremoval.

wallacemariadeandrade avatar wallacemariadeandrade commented on July 20, 2024

I had a problem with OpenCV version, as it was 4.2 and 4.5 or later was required! Solved it following this tutorial

I also had a problem with OrtSessionOptionsAppendExecutionProvider_DML, but I changed this line to OrtSessionOptionsAppendExecutionProvider_CPU at /obs-backgroundremoval/src/background-filter.cpp and after it the build ran perfectly

Thanks!

from obs-backgroundremoval.

royshil avatar royshil commented on July 20, 2024

latest builds take care of this

from obs-backgroundremoval.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.