readme docker install method

This commit is contained in:
13339479676 2021-12-31 23:38:11 +08:00
parent b26bd80d9c
commit 4ba64e6227
1 changed files with 11 additions and 0 deletions

View File

@ -55,6 +55,17 @@ webcam_opencv(device_index=0, quit_key='q', is_autoSaveFrame=False, frame_saveDi
```
#### :white_check_mark: 方法三docker image安装容器版
```shell
xhost +local:root # 配置xhost
sudo docker run --ipc=host -it -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY --device=/dev/video0:/dev/video0 opencv-webcam-script:v0.1 # 进入容器
python3 opencv_webcam.py # 运行脚本程序
```
<h3 align="center">使用教程</h3>
<hr>