-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.github, ci: Add dlib-models package flow for Fedora
- Loading branch information
Showing
4 changed files
with
31 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#! /bin/bash | ||
|
||
mkdir -p ${DESTDIR}data | ||
|
||
mkdir ${DESTDIR}data/dlib_hog_model | ||
curl -LO https://github.com/norihiro/obs-face-tracker/releases/download/0.7.0-hogdata/frontal_face_detector.dat.bz2 | ||
bunzip2 < frontal_face_detector.dat.bz2 > ${DESTDIR}data/dlib_hog_model/frontal_face_detector.dat | ||
git clone --depth 1 https://github.com/davisking/dlib-models | ||
mkdir ${DESTDIR}data/{dlib_cnn_model,dlib_face_landmark_model} | ||
bunzip2 < dlib-models/mmod_human_face_detector.dat.bz2 > ${DESTDIR}data/dlib_cnn_model/mmod_human_face_detector.dat | ||
bunzip2 < dlib-models/shape_predictor_5_face_landmarks.dat.bz2 > ${DESTDIR}data/dlib_face_landmark_model/shape_predictor_5_face_landmarks.dat | ||
cp dlib/LICENSE.txt ${DESTDIR}data/LICENSE-dlib | ||
cp dlib-models/LICENSE ${DESTDIR}data/LICENSE-dlib-models |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,13 +6,19 @@ License: GPLv3+ | |
|
||
Source0: %{name}-%{version}.tar.bz2 | ||
Source1: %{name}-%{version}-libvisca.tar.bz2 | ||
Source2: %{name}-%{version}-dlib-models.tar.bz2 | ||
Requires: obs-studio >= @OBS_VERSION@ | ||
BuildRequires: cmake, gcc, gcc-c++ | ||
BuildRequires: obs-studio-devel | ||
BuildRequires: qt6-qtbase-devel qt6-qtbase-private-devel | ||
BuildRequires: dlib-devel ffmpeg-free-devel sqlite-devel blas-devel lapack-devel | ||
# dlib-devel requires /usr/include/ffmpeg so that install ffmpeg-free-devel | ||
|
||
%package data | ||
Summary: Model file for %{name} | ||
BuildArch: noarch | ||
License: Nonfree | ||
|
||
%description | ||
This plugin tracks face of a person by detecting and tracking a face. | ||
|
||
|
@@ -21,9 +27,13 @@ the source is periodically taken to face detection algorithm. Once a face is | |
found, the face is tracked. Based on the location and the size of the face | ||
under tracking, the frame will be cropped. | ||
|
||
%description data | ||
Model files for @PLUGIN_NAME_FEDORA@. | ||
|
||
%prep | ||
%autosetup -p1 | ||
%setup -T -D -a 1 | ||
%setup -T -D -a 2 | ||
|
||
%build | ||
%{cmake} \ | ||
|
@@ -38,4 +48,7 @@ under tracking, the frame will be cropped. | |
|
||
%files | ||
%{_libdir}/obs-plugins/@[email protected] | ||
%{_datadir}/obs/obs-plugins/@PLUGIN_NAME@/ | ||
%{_datadir}/obs/obs-plugins/@PLUGIN_NAME@/locale/ | ||
|
||
%files data | ||
%{_datadir}/obs/obs-plugins/@PLUGIN_NAME@/*dlib* |