forked from fangfufu/Linux-Fake-Background-Webcam
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
27 lines (26 loc) · 786 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
27 lines (26 loc) · 786 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
version: '3.7'
services:
bodypix:
image: bodypix
init: true
build:
context: ./bodypix
read_only: true
fakecam:
image: fakecam
init: true
build:
context: ./fakecam
read_only: true
volumes:
- ${BACKGROUND_IMAGE_PATH}:/src/background.jpg:ro
- ${FOREGROUND_IMAGE_PATH}:/src/foreground.jpg:ro
- ${FOREGROUND_MASK_IMAGE_PATH}:/src/foreground-mask.png:ro
devices:
# input (webcam)
- ${INPUT_DEVICE}:/dev/video0
# output (virtual webcam)
- ${OUTPUT_DEVICE}:/dev/video2
depends_on:
- bodypix
command: --bodypix-url http://bodypix:9000/ ${FAKE_PY_ADDITIONAL_OPTIONS_CPU}