Last active
October 24, 2022 17:38
-
-
Save tam7t/dfc8d08ee1042de52921f2cd8a0ce2db to your computer and use it in GitHub Desktop.
obs-backgroundremover v0.4.0 flatpak
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<component type="addon"> | |
<id>com.obsproject.Studio.Plugin.backgroundremoval</id> | |
<extends>com.obsproject.Studio</extends> | |
<name>obs-backgroundremoval Plugin</name> | |
<summary> An OBS plugin for removing background in portrait images (video), making it easy to replace the background when screen recording.</summary> | |
<url type="homepage">https://github.com/royshil/obs-backgroundremoval</url> | |
<metadata_license>CC0-1.0</metadata_license> | |
<project_license>MIT</project_license> | |
</component> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# build into folder "build-dir": | |
# $ flatpak-builder build-dir com.obsproject.Studio.Plugin.backgroundremoval.yaml --force-clean | |
# | |
# install: | |
# $ flatpak-builder --user --install --force-clean build-dir com.obsproject.Studio.Plugin.backgroundremoval.yaml | |
id: com.obsproject.Studio.Plugin.backgroundremoval | |
branch: stable | |
runtime: com.obsproject.Studio | |
runtime-version: stable | |
sdk: org.kde.Sdk//5.15-21.08 | |
build-extension: true | |
separate-locales: false | |
appstream-compose: false | |
build-options: | |
prefix: /app/plugins/backgroundremoval | |
modules: | |
# onnxruntime has a bash+python+cmake build script - just download/use pre-compiled library | |
# https://onnxruntime.ai/docs/build/inferencing.html | |
- name: onnxruntime | |
buildsystem: simple | |
sources: | |
- type: archive | |
url: https://github.com/microsoft/onnxruntime/releases/download/v1.11.1/onnxruntime-linux-x64-1.11.1.tgz | |
sha256: ddc03b5ae325c675ff76a6f18786ce7d310be6eb6f320087f7a0e9228115f24d | |
build-commands: | |
- mkdir -p ${FLATPAK_DEST}/include ${FLATPAK_DEST}/lib | |
- mv include/* ${FLATPAK_DEST}/include | |
- mv lib/* ${FLATPAK_DEST}/lib | |
# https://docs.opencv.org/4.x/db/d05/tutorial_config_reference.html | |
- name: opencv | |
buildsystem: cmake | |
config-opts: | |
- "-DCMAKE_BUILD_TYPE=Release" | |
- "-DBUILD_LIST=imgproc" | |
cleanup: | |
- "/bin" | |
builddir: true | |
sources: | |
- type: archive | |
url: https://github.com/opencv/opencv/archive/refs/tags/4.5.5.tar.gz | |
sha256: a1cfdcf6619387ca9e232687504da996aaa9f7b5689986b8331ec02cb61d28ad | |
- name: obs-backgroundremoval | |
buildsystem: cmake | |
builddir: true | |
config-opts: | |
- -DLIBOBS_INCLUDE_DIR=/app/include/obs | |
- -DOnnxruntime_INCLUDE_DIR=/app/plugins/backgroundremoval/include | |
- -DOnnxruntime_LIBRARIES=/app/plugins/backgroundremoval/lib/libonnxruntime.so | |
sources: | |
- type: git | |
url: https://github.com/royshil/obs-backgroundremoval.git | |
tag: v0.4.0 | |
commit: 4f0348a15103cd4e516d94b629851208280cd4d4 | |
- name: appdata | |
buildsystem: simple | |
build-commands: | |
- install -Dm644 --target-directory=${FLATPAK_DEST}/share/metainfo ${FLATPAK_ID}.metainfo.xml | |
- appstream-compose --basename=${FLATPAK_ID} --prefix=${FLATPAK_DEST} --origin=flatpak ${FLATPAK_ID} | |
sources: | |
- type: file | |
path: com.obsproject.Studio.Plugin.backgroundremoval.metainfo.xml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"skip-icons-check": true, | |
"only-arches": ["x86_64"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment