git: 69ea87ff42e5 - main - misc/py-insightface: Add New Port
Jochen Neumeister <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.cvs.ports |
|---|---|
| Message-ID | <[email protected]> |
The branch main has been updated by joneum: URL: https://cgit.FreeBSD.org/ports/commit/?id=69ea87ff42e55c1620a380bdc4e782896a678823 commit 69ea87ff42e55c1620a380bdc4e782896a678823 Author: Jochen Neumeister <[email protected]> AuthorDate: 2026-08-16 17:57:03 +0000 Commit: Jochen Neumeister <[email protected]> CommitDate: 2026-08-16 18:03:15 +0000 misc/py-insightface: Add New Port Open source 2D and 3D face analysis library based on ONNX models executed with onnxruntime. Required by www/immich-ml for facial recognition. The upstream pretrained models are downloaded at runtime and licensed for non-commercial research use only. WWW: https://insightface.ai/ Sponsored by: Netzkommune GmbH --- misc/Makefile | 1 + misc/py-insightface/Makefile | 29 +++++++++++++++++++++++++++++ misc/py-insightface/distinfo | 3 +++ misc/py-insightface/pkg-descr | 9 +++++++++ 4 files changed, 42 insertions(+) diff --git a/misc/Makefile b/misc/Makefile index 249933e82e6a..64034f009de4 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -535,6 +535,7 @@ SUBDIR += py-ibm-cos-sdk-s3transfer SUBDIR += py-ibm-watsonx-ai SUBDIR += py-icoextract + SUBDIR += py-insightface SUBDIR += py-instructor SUBDIR += py-ipyfastscape SUBDIR += py-jiwer diff --git a/misc/py-insightface/Makefile b/misc/py-insightface/Makefile new file mode 100644 index 000000000000..c3d431d5fef9 --- /dev/null +++ b/misc/py-insightface/Makefile @@ -0,0 +1,29 @@ +PORTNAME= insightface +PORTVERSION= 1.0.1 +CATEGORIES= misc python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= [email protected] +COMMENT= Python library for 2D and 3D face analysis +WWW= https://insightface.ai/ + +LICENSE= MIT + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>0:math/py-numpy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}onnx>0:misc/py-onnx@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}onnxruntime>0:misc/py-onnxruntime@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}scikit-image>0:graphics/py-scikit-image@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}tqdm>0:misc/py-tqdm@${PY_FLAVOR} \ + opencv>0:graphics/opencv + +USES= python +USE_PYTHON= autoplist pep517 + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/misc/py-insightface/distinfo b/misc/py-insightface/distinfo new file mode 100644 index 000000000000..abdbb6f9021f --- /dev/null +++ b/misc/py-insightface/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1786859131 +SHA256 (insightface-1.0.1.tar.gz) = 27af24891bbba470cb3573b366a0fcca8989fc8503c9f8f281e8cba6fd716075 +SIZE (insightface-1.0.1.tar.gz) = 721597 diff --git a/misc/py-insightface/pkg-descr b/misc/py-insightface/pkg-descr new file mode 100644 index 000000000000..7511ff6d4ada --- /dev/null +++ b/misc/py-insightface/pkg-descr @@ -0,0 +1,9 @@ +InsightFace is an open source 2D and 3D face analysis library for +Python. It provides face detection, face recognition (embedding), +facial landmark localization and gender/age estimation based on +ONNX models executed with onnxruntime. + +The pretrained models provided by upstream are available for +non-commercial research purposes only and are downloaded at +runtime on first use. InsightFace is used by the Immich +machine-learning service for facial recognition.