diff --git a/README.md b/README.md index 0a17575..9bc647f 100644 --- a/README.md +++ b/README.md @@ -152,6 +152,7 @@ A collection of delicious docker recipes. - [x] cmus - [x] cmus-arm - [x] darkice :musical_note: +- [x] deface - [x] editly :tv: - [x] ffmpeg - [x] ffmpeg-arm diff --git a/deface/Dockerfile b/deface/Dockerfile new file mode 100644 index 0000000..9560c99 --- /dev/null +++ b/deface/Dockerfile @@ -0,0 +1,17 @@ +# +# Dockerfile for deface +# + +FROM debian:bullseye +MAINTAINER EasyPi Software Foundation + +RUN set -xe \ + && apt update \ + && apt install -y curl ffmpeg git libsm6 libxext6 python3 python3-distutils \ + && curl https://bootstrap.pypa.io/get-pip.py | python3 \ + && pip3 install --no-cache-dir git+https://github.com/ORB-HD/deface \ + && apt remove -y curl git \ + && rm -rf /var/lib/apt/lists/* + +ENTRYPOINT ["deface"] +CMD ["--help"] diff --git a/deface/README.md b/deface/README.md new file mode 100644 index 0000000..9693a1a --- /dev/null +++ b/deface/README.md @@ -0,0 +1,21 @@ +deface +====== + +[deface][1] is a simple command-line tool for automatic anonymization of faces in videos or photos. + +## Tutorial + +```bash +# create an alias +$ alias deface='docker run --rm -u $(id -u):$(id -g) -v $PWD:/data -w /data vimagick/deface' + +# download a image +$ wget https://github.com/ORB-HD/deface/raw/master/examples/city.jpg + +# process the image +$ deface city.jpg +Input: city.jpg +Output: city_anonymized.jpg +``` + +[1]: https://github.com/ORB-HD/deface