Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save umireon/e7582717c287ab185fb62d61effcd373 to your computer and use it in GitHub Desktop.
Save umireon/e7582717c287ab185fb62d61effcd373 to your computer and use it in GitHub Desktop.
obs-ocr flatpak
<?xml version="1.0" encoding="UTF-8"?>
<component type="addon">
<id>com.obsproject.Studio.Plugin.Ocr</id>
<extends>com.obsproject.Studio</extends>
<name>Ocr</name>
<summary>Remove the background from your camera video</summary>
<description>Remove the background from your camera video without a green screen. Optimized for person portrait views.</description>
<url type="homepage">https://github.com/occ-ai/obs-ocr</url>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-2.0</project_license>
<releases>
<release version="1.1.10" date="2024-01-09"/>
<release version="1.1.9" date="2024-01-04"/>
<release version="1.1.8" date="2023-12-19"/>
<release version="1.1.7" date="2023-10-11"/>
</releases>
<screenshots>
<screenshot type="default">
<caption>Background removal dialog</caption>
<image>https://github.com/occ-ai/obs-backgroundremoval/blob/main/demo.gif?raw=true</image>
</screenshot>
</screenshots>
</component>
id: com.obsproject.Studio.Plugin.Ocr
branch: stable
runtime: com.obsproject.Studio
runtime-version: stable
sdk: org.kde.Sdk//6.5
build-extension: true
separate-locales: false
appstream-compose: false
build-options:
prefix: /app/plugins/Ocr
cleanup:
- /include
- /share/opencv4
- /lib/cmake
- /bin
modules:
- name: obs-ocr
buildsystem: cmake-ninja
builddir: true
config-opts:
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
- -DCMAKE_POSITION_INDEPENDENT_CODE=ON
- -DENABLE_FRONTEND_API=ON
- -DENABLE_QT=ON
- -DCMAKE_COMPILE_WARNING_AS_ERROR=ON
- -DCUSTOM_OPENCV_URL=/run/build/obs-ocr/opencv-linux-v4.8.1-1-Release.tar.gz
- -DCUSTOM_OPENCV_HASH=SHA256=809922a7cc9f344a2d82a232ed7b02e122c82e77cba94b4047e666a0527cc00e
- -DCUSTOM_TESSERACT_URL=/run/build/obs-ocr/tesseract-linux-5.3.3-Release.tar.gz
- -DCUSTOM_TESSERACT_HASH=SHA256=f4cdcb9e86374bcb9fadcf23dbe0b097622bec3fcec352b78999f90b902df0a3
post-install:
- install -Dm644 --target-directory=${FLATPAK_DEST}/share/metainfo /run/build/obs-ocr/${FLATPAK_ID}.metainfo.xml
- appstream-compose --basename=${FLATPAK_ID} --prefix=${FLATPAK_DEST} --origin=flatpak
${FLATPAK_ID}
sources:
- type: archive
url: https://github.com/occ-ai/obs-ocr/releases/download/0.0.4/obs-ocr-0.0.4-source.tar.xz
sha256: 670066a7f409f2e91ed2f92cb2e73dc00a771cceabe3f6704f911323f4f0c6c1
x-checker-data:
type: git
tag-pattern: ^([\d.]+)$
- type: file
url: https://github.com/occ-ai/obs-backgroundremoval-dep-opencv/releases/download/v4.8.1-1/opencv-linux-v4.8.1-1-Release.tar.gz
sha256: 809922a7cc9f344a2d82a232ed7b02e122c82e77cba94b4047e666a0527cc00e
x-checker-data:
type: git
tag-pattern: ^([-\d.]+)$
- type: file
url: https://github.com/occ-ai/obs-ocr-deps/releases/download/5.3.3-1/tesseract-linux-5.3.3-Release.tar.gz
sha256: f4cdcb9e86374bcb9fadcf23dbe0b097622bec3fcec352b78999f90b902df0a3
x-checker-data:
type: git
tag-pattern: ^v([\d.]+)$
- type: file
path: com.obsproject.Studio.Plugin.Ocr.metainfo.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment