Comments (5)
btw i added support for all accepted color spaces in OBS:
enum video_format {
VIDEO_FORMAT_NONE,
/* planar 420 format */
VIDEO_FORMAT_I420, /* three-plane */
VIDEO_FORMAT_NV12, /* two-plane, luma and packed chroma */
/* packed 422 formats */
VIDEO_FORMAT_YVYU,
VIDEO_FORMAT_YUY2, /* YUYV */
VIDEO_FORMAT_UYVY,
/* packed uncompressed formats */
VIDEO_FORMAT_RGBA,
VIDEO_FORMAT_BGRA,
VIDEO_FORMAT_BGRX,
VIDEO_FORMAT_Y800, /* grayscale */
/* planar 4:4:4 */
VIDEO_FORMAT_I444,
};
from obs-backgroundremoval.
yep seems like the output format of your camera YU12 is not YUV422_UYVY like the filter expects...
i havn't yet had time fork the code so it finds the right input pixel format... working on it! :D
from obs-backgroundremoval.
Ah, that would make sense. I noticed I had my v4l2-siource set to YUV12 instead of YUV422. Setting it didn't make the plugin crash. Thank you!
from obs-backgroundremoval.
@HenkKalkwater can you please share your build steps on linux? e.g. did you apt
or yum
something, and how did you build? just cmake .. && cmake --build .
?
from obs-backgroundremoval.
I had to change the declaration order in the obs_source_info
-struct to match the declaration order of OBS, to avoid a critical compiler warning with GCC:
diff --git a/src/background-filter.cpp b/src/background-filter.cpp
index bf534a8..5b26276 100644
--- a/src/background-filter.cpp
+++ b/src/background-filter.cpp
@@ -288,9 +288,9 @@ struct obs_source_info test_filter = {
.output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_ASYNC,
.get_name = filter_getname,
.create = filter_create,
- .update = filter_update,
.destroy = filter_destroy,
- .filter_video = filter_render,
- .get_properties = filter_properties,
.get_defaults = filter_defaults,
+ .get_properties = filter_properties,
+ .update = filter_update,
+ .filter_video = filter_render,
};
On OpenSUSE, I needed to install obs-studio-devel opencv-devel
using zypper and I installed onnx-runtime by downloading the tarball from https://github.com/microsoft/onnxruntime/releases/tag/v1.7.0 and moving the contents to /usr/local
like this:
/usr/local
├── include
│ └── onnxruntime
│ └── core
│ ├── providers
│ │ └── cpu
│ │ └── cpu_provider_factory.h
│ └── session
│ ├── cuda_provider_factory.h
│ ├── onnxruntime_c_api.h
│ ├── onnxruntime_cxx_api.h
│ ├── onnxruntime_cxx_inline.h
│ └── onnxruntime_session_options_config_keys.h
└── lib
├── libonnxruntime.so
└── libonnxruntime.so.1.7.0 -> libonnxruntime.so
I couldn't find working OpenSUSE packages for onnxruntime, neither in the official repo's or in the Open Build System.
I'm aware the cuda_provider_factory.h
is in the wrong location, but I have no idea where to put it exactly.
After that, cmake .. && cmake build
as you described and afterwards moving the files like this:
~/.config/obs-studio
└── plugins
└── obs-backgroundremoval
├── bin
│ └── 64bit
│ └── obs-backgroundremoval.so
└── data
├── locale
│ └── en-US.ini
└── SINet_Softmax.onnx
from obs-backgroundremoval.
Related Issues (20)
- Plugin installs, loads, but does not appear in filter list HOT 3
- [NixOS] Unable to get model filename models/mediapipe.onnx HOT 3
- Keeps crashing OBS HOT 5
- It doesn't show up in any Filter. HOT 13
- Cache TensorRT modules HOT 5
- I could not understand how to use the new version of this plugin. HOT 7
- Upgrade to ONNXRuntime v1.17.1 HOT 2
- Even if you check Disable update check, it will be displayed every time you start OBS. HOT 2
- 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
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.