From 7c884abbd187d0bfefccf1512da9e01a91614f35 Mon Sep 17 00:00:00 2001 From: kev Date: Fri, 27 May 2016 09:42:43 +0800 Subject: [PATCH] add facedetect --- facedetect/Dockerfile | 17 +++++++++++++++++ facedetect/README.md | 16 ++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 facedetect/Dockerfile create mode 100644 facedetect/README.md diff --git a/facedetect/Dockerfile b/facedetect/Dockerfile new file mode 100644 index 0000000..ecc087f --- /dev/null +++ b/facedetect/Dockerfile @@ -0,0 +1,17 @@ +# +# Dockerfile for facedetect +# + +FROM debian:jessie +MAINTAINER kev + +RUN set -xe \ + && apt-get update \ + && apt-get install -y curl python python-opencv libopencv-dev \ + && curl -sSL https://github.com/wavexx/facedetect/raw/master/facedetect > /usr/local/bin/facedetect \ + && chmod +x /usr/local/bin/facedetect \ + && ln /dev/null /dev/raw1394 \ + && rm -rf /var/lib/apt/lists/* + +ENTRYPOINT ["facedetect"] +CMD ["--help"] diff --git a/facedetect/README.md b/facedetect/README.md new file mode 100644 index 0000000..c89d65b --- /dev/null +++ b/facedetect/README.md @@ -0,0 +1,16 @@ +facedetect +========== + +[facedetect][1] 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. + +Quick Start +----------- + +``` +$ alias facedetect='docker run --rm -v `pwd`:/work -w /work vimagick/facedetect' +$ facedetect image.png +``` + +[1]: http://www.thregr.org/~wavexx/software/facedetect/