openseeface: init at 1.20.4-unstable-2024-09-21 (#289617)

This commit is contained in:
misuzu 2024-12-05 22:06:15 +02:00 committed by GitHub
commit 92951015e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,52 @@
{
lib,
stdenvNoCC,
python3,
fetchFromGitHub,
makeWrapper,
enableVisualization ? false,
}:
let
python = python3.withPackages (
ps: with ps; [
(opencv4.override { enableGtk3 = enableVisualization; })
onnxruntime
pillow
numpy
]
);
in
stdenvNoCC.mkDerivation {
pname = "openseeface";
version = "1.20.4-unstable-2024-09-21";
src = fetchFromGitHub {
owner = "emilianavt";
repo = "OpenSeeFace";
rev = "e6e24efd2038ab778ac094bab21c2c18a7efbeb2";
hash = "sha256-pSZXD6UiKPd8sTagdA/I6bI8nWdF1c6SX2Bho+X7pX8=";
};
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
runHook preInstall
mkdir -p $out/share/openseeface
cp -r *.py models $out/share/openseeface
makeWrapper ${python.interpreter} "$out/bin/facetracker" \
--add-flags "$out/share/openseeface/facetracker.py"
runHook postInstall
'';
meta = {
description = "Robust realtime face and facial landmark tracking on CPU with Unity integration";
homepage = "https://github.com/emilianavt/OpenSeeFace";
license = lib.licenses.bsd2;
mainProgram = "facetracker";
maintainers = with lib.maintainers; [ tomasajt ];
};
}