readme docker install method
This commit is contained in:
parent
b26bd80d9c
commit
4ba64e6227
11
README.md
11
README.md
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue