From owner-svn-ports-all@freebsd.org Thu Jul 20 11:54:01 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 03AF3C0A9AE; Thu, 20 Jul 2017 11:54:01 +0000 (UTC) (envelope-from ehaupt@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C757268178; Thu, 20 Jul 2017 11:54:00 +0000 (UTC) (envelope-from ehaupt@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v6KBrx7C003612; Thu, 20 Jul 2017 11:53:59 GMT (envelope-from ehaupt@FreeBSD.org) Received: (from ehaupt@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v6KBrxCN003607; Thu, 20 Jul 2017 11:53:59 GMT (envelope-from ehaupt@FreeBSD.org) Message-Id: <201707201153.v6KBrxCN003607@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ehaupt set sender to ehaupt@FreeBSD.org using -f From: Emanuel Haupt Date: Thu, 20 Jul 2017 11:53:59 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r446258 - in head/graphics: . facedetect facedetect/files X-SVN-Group: ports-head X-SVN-Commit-Author: ehaupt X-SVN-Commit-Paths: in head/graphics: . facedetect facedetect/files X-SVN-Commit-Revision: 446258 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jul 2017 11:54:01 -0000 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 +# $FreeBSD$ + +PORTNAME= facedetect +PORTVERSION= 0.1 +DISTVERSIONPREFIX= v +CATEGORIES= graphics + +MAINTAINER= ehaupt@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 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/