mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
add deface
This commit is contained in:
parent
9866d864d6
commit
40cf4e8fb2
@ -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
17
deface/Dockerfile
Normal 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
21
deface/README.md
Normal 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
|
Loading…
Reference in New Issue
Block a user