add deface

This commit is contained in:
kev 2021-12-13 14:51:17 +08:00
parent 9866d864d6
commit 40cf4e8fb2
3 changed files with 39 additions and 0 deletions

View File

@ -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

17
deface/Dockerfile Normal file
View File

@ -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"]

21
deface/README.md Normal file
View File

@ -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