svn commit: r446258 - in head/graphics: . facedetect facedetect/files
Emanuel Haupt
ehaupt at FreeBSD.org
Thu Jul 20 11:54:01 UTC 2017
Author: ehaupt
Date: Thu Jul 20 11:53:59 2017
New Revision: 446258
URL: https://svnweb.freebsd.org/changeset/ports/446258
Log:
Add facedetect 0.1, simple face detector for batch processing.
Added:
head/graphics/facedetect/
head/graphics/facedetect/Makefile (contents, props changed)
head/graphics/facedetect/distinfo (contents, props changed)
head/graphics/facedetect/files/
head/graphics/facedetect/files/patch-facedetect (contents, props changed)
head/graphics/facedetect/pkg-descr (contents, props changed)
Modified:
head/graphics/Makefile
Modified: head/graphics/Makefile
==============================================================================
--- head/graphics/Makefile Thu Jul 20 10:42:36 2017 (r446257)
+++ head/graphics/Makefile Thu Jul 20 11:53:59 2017 (r446258)
@@ -177,6 +177,7 @@
SUBDIR += exiftran
SUBDIR += exiv2
SUBDIR += exrtools
+ SUBDIR += facedetect
SUBDIR += farbfeld
SUBDIR += feh
SUBDIR += fig2sxd
Added: head/graphics/facedetect/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/facedetect/Makefile Thu Jul 20 11:53:59 2017 (r446258)
@@ -0,0 +1,34 @@
+# Created by: Emanuel Haupt <ehaupt at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= facedetect
+PORTVERSION= 0.1
+DISTVERSIONPREFIX= v
+CATEGORIES= graphics
+
+MAINTAINER= ehaupt at FreeBSD.org
+COMMENT= Simple face detector for batch processing
+
+LICENSE= GPLv2+
+LICENSE_FILE= ${WRKSRC}/COPYING.txt
+
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/cv.py:graphics/py-opencv
+
+USES= python:run shebangfix
+USE_GITHUB= yes
+NO_BUILD= yes
+NO_ARCH= yes
+
+GH_ACCOUNT= wavexx
+
+SHEBANG_FILES= facedetect
+PLIST_FILES= bin/facedetect
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
+ ${WRKSRC}/${PORTNAME}
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+
+.include <bsd.port.mk>
Added: head/graphics/facedetect/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/facedetect/distinfo Thu Jul 20 11:53:59 2017 (r446258)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1500542394
+SHA256 (wavexx-facedetect-v0.1_GH0.tar.gz) = d0e6814af5ffdb9bf064cfeb1fe78966fd98700e245650e3033dcdf64bf74f44
+SIZE (wavexx-facedetect-v0.1_GH0.tar.gz) = 121053
Added: head/graphics/facedetect/files/patch-facedetect
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/facedetect/files/patch-facedetect Thu Jul 20 11:53:59 2017 (r446258)
@@ -0,0 +1,11 @@
+--- facedetect.orig 2017-07-20 10:43:10 UTC
++++ facedetect
+@@ -34,7 +34,7 @@ if 'cv' in dir(cv2):
+
+
+ # Profiles
+-DATA_DIR = '/usr/share/opencv/'
++DATA_DIR = '%%LOCALBASE%%/share/OpenCV/'
+ CASCADES = {}
+
+ PROFILES = {
Added: head/graphics/facedetect/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/facedetect/pkg-descr Thu Jul 20 11:53:59 2017 (r446258)
@@ -0,0 +1,9 @@
+facedetect is a simple face detector for batch processing. It answers the basic
+question: "Is there a face in this image?" and gives back either an exit code or
+the coordinates of each detected face in the standard output.
+
+The aim is to provide a basic command-line interface that's consistent and easy
+to use with software such as ImageMagick, while progressively improving the
+detection algorithm over time.
+
+WWW: https://www.thregr.org/~wavexx/software/facedetect/
More information about the svn-ports-head
mailing list