Comments (11)
@spamnick After your command git clone ...
you have to do cd obs-backgroundremoval
.
But then I have an issue while running the command cmake .. && cmake --build . && cmake --install .
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find LibObs (missing: LIBOBS_INCLUDE_DIR)
I installed all the dependencies like it was said in the REAME.md of the project, anyone has an idea?
from obs-backgroundremoval.
You forgot a git clone https://github.com/royshil/obs-backgroundremoval.git
Example:
git clone https://github.com/royshil/obs-backgroundremoval.git
cd obs-backgroundremoval
mkdir build && cd build
cmake .. && cmake --build . && cmake --install .
from obs-backgroundremoval.
@fubar-coder So all commands in myDir:
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
tar xzvf onnxruntime-linux-x64-1.7.0.tgz --strip-components=1 -C /usr/local/ --wildcards "*/include/*" "*/lib*/"
git clone https://github.com/royshil/obs-backgroundremoval.git
mkdir build && cd build
cmake .. && cmake --build . && cmake --install .
Right?
from obs-backgroundremoval.
Yes, you need to make a change to the source code and add obs
to the list of path prefixes (see PR #45).
There are other commands to execute after a successful installation, because obs-studio gets installed to /usr/..., while the plugin gets installed to /usr/local/...:
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/
You may use mv
instead of ln -s
if you don't intend to update the plugin from the source code.
BTW: You don't need to/cannot install libobs-dev
, but this is not an issue, because all necessary files are already installed by obs-studio (from the ppa, not the Ubuntu-provided one).
from obs-backgroundremoval.
So all commands in myDir:
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
tar xzvf onnxruntime-linux-x64-1.7.0.tgz --strip-components=1 -C /usr/local/ --wildcards "*/include/*" "*/lib*/"
git clone https://github.com/royshil/obs-backgroundremoval.git
cd obs-backgroundremoval
mkdir build && cd build
cmake .. && cmake --build . && cmake --install .
Right?
from obs-backgroundremoval.
from obs-backgroundremoval.
- If you use obs-studio from the ppa (
ppa:obsproject/obs-studio
), do not installlibobs-dev
- Execute all commands up until (and including)
mkdir build && cd build
(but excluding thecmake
commands) - Then, before the
cmake
commands, apply the changes in the PR #45 - Execute the
cmake .. && cmake --build . && cmake --install .
commands - Execute the
ln -s ...
commands I wrote in the comment above
from obs-backgroundremoval.
Yes, you need to make a change to the source code and add
obs
to the list of path prefixes (see PR #45).There are other commands to execute after a successful installation, because obs-studio gets installed to /usr/..., while the plugin gets installed to /usr/local/...:
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/You may use
mv
instead ofln -s
if you don't intend to update the plugin from the source code.BTW: You don't need to/cannot install
libobs-dev
, but this is not an issue, because all necessary files are already installed by obs-studio (from the ppa, not the Ubuntu-provided one).
Hi @fubar-coder - is it possible to include this in the readme? the links were fundamental to get it working
from obs-backgroundremoval.
I don't know cmake good enough (or even at all), but it would be the better solution if you'd be able to specify the install path when calling cmake --install
- including a hint in the README file. Using the links is IMHO the worse solution. It seems that it's common practice to install everything that's custom-built below /usr/local
, so the default behavior is correct, but - in our case - undesirable.
from obs-backgroundremoval.
I don't understand why there can't be precompiled ready to go so we just unzip or tar zxf the archive, then dump the directories into ~/.config/obs-studio/plugins
like the instructions for other plugins say to do. Can we have something like that @royshil ? Or is there a reason why it needs to go into /usr/...
, with or without the symlinks?
The instructions for building from source were very unclear, at least I was able to find this issue, and hopefully, pr #45 has been incorporated into the Master branch, since that is seemingly where we're going to pull the source from to build it.
Right?
Thanks :)
from obs-backgroundremoval.
ubuntu versions now work
from obs-backgroundremoval.
Related Issues (20)
- Background removal doesn't work nicely with the Source Clone plugin from Exeldro. HOT 7
- Can this plugin remove the background of a game card instead of a human portrait? HOT 18
- The latest update for OBS Back ground removal will not load because of Microsoft Defender SmartScreen HOT 6
- Latest update seems to break silhouette coherence HOT 2
- Huge latency issue in Linux HOT 6
- Support more than one person HOT 3
- DirectML not working with AMD RX 7800 XT
- Obs does not start after installing the background removal tool HOT 8
- Tremendous latency apon diabling source HOT 13
- Version 1.1.13 doesn't work HOT 16
- Background removal
- Not able to update the obs on `linux` HOT 3
- OBS does not load plugin HOT 6
- Plugin loads, but doesn't do anything HOT 5
- be able to capture full dody and hands as they extend out to point HOT 3
- Background color setting is missing from background removal advanced settings HOT 1
- Build issue on Fedora 40: failed to set dynamic section sizes: bad value HOT 7
- Feature request: Face tracking HOT 1
- fail to build on arm64 ubuntu jammy HOT 8
- OBS launch error after installing plugin HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obs-backgroundremoval.